Skip to content

hledger-ui --watch does not work with certain editors (gedit, IDEA) #1617

@Scratch7951

Description

@Scratch7951

Further to a recent thread on reddit about methods for reconciliation, there appears to be a bug with hledger-ui where it does not update automatically when changes to the journal file are saved. The workaround is to manually refresh using g.

System specifications

Arch Linux 5.12.13-arch1-2
hledger 1.21

Steps to reproduce

  1. Edit a journal file
    $ vim myfile.journal
    Change the flag on any unreconciled transaction in Account A by changing <blank> to *.
    Do not save yet.

  2. Open a new terminal window and start hledger-ui
    $ hledger-ui -f myfile.journal --watch
    Navigate to Account A and list the transactions so that the just-edited transaction is visible. It should not show a * flag.

  3. Return to the editor window and Save the file.

Expected behavior

The edited transaction is updated in the hledger-ui window and now shows *

Actual behavior

The edited transaction is not updated in the hledger-ui window.

Workaround

In the hledger-ui window, refresh the underlying data by pressing g. The edited transaction is updated and now correctly shows as being reconciled *.

Metadata

Metadata

Assignees

Labels

A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects3-fewAffects just a few users.annoyance3-blockerNew user experience or installability bug. A potential user could fail to get started.docsDocumentation-related.uiThe hledger-ui tool.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions