-
-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hledger-ui --watch does not work with certain editors (gedit, IDEA) #1617
Comments
Thank you for bringing this to my attention. I see we had #836 some time ago. Do the sysctl parameters mentioned there give any clues ? |
I just increased the number of inotify watchers using these instructions. No change to I added the |
I confirm your exact scenario works normally on mac. Also, starting with
(until next keypress). |
I didn't see anything obvious at https://github.com/haskell-fswatch/hfsnotify/issues . Probably the next step is to make a minimal reproducing program and open a bug report there.. |
I made one change to the journal and saved it, and the
I do not know whether or not this is helpful. I am quite happy to hit |
Thanks! We'll get this fixed. |
How to watch hledger-ui fsnotify debug output:
|
At least two people have reported this problem, but I can't reproduce on a fresh arch system. @5833tP2, if you have time for further debugging, here or (quicker) on http://matrix.hledger.org or http://irc.hledger.org, I would appreciate your help; if not, no problem. Likewise if anyone else can reproduce this, please get in touch. Here's some version info from my arch linux system:
hledger-ui version doesn't seem to matter too much, I have tested both 1.21 and 1.22. |
I am unable to reproduce on the following system.
|
Also @5833tP2, what kind of filesystem are you on ? Mine is ext4:
|
I am also on ext4
|
It's a mystery. Is there anything else unusual about your test journal ? If it has more than just the one entry, try that:
|
My journal is just an ordinary ledger journal file. Plain text. Nothing weird. I just tested this ...
... and the Honestly, this is not a show-stopper problem so maybe we could park this for the time being. Pressing |
If you need to drop it I totally understand. You've been helpful already. For me and the project, it's important to fix this and you're the only person reproducing it so I'm just getting what info I can. :) |
I'm happy to help in any way I can, but might reach the limit of my technical competence soon :) |
On a Fedora 32 setup I cannot reproduce the error:
|
@simonmichael, I've emailed you. |
Progress! Thanks to @5833tP2 we found that it's editor related. |
#836 might be relevant, if gedit uses this "gocryptfs mount" somehow. If so we'd expect the |
See also #911. I have added https://hledger.org/dev/hledger-ui.html#watch-mode docs mentioning this issue. |
Open questions:
|
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 usingg
.System specifications
Arch Linux 5.12.13-arch1-2
hledger 1.21
Steps to reproduce
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.
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.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 pressingg
. The edited transaction is updated and now correctly shows as being reconciled*
.The text was updated successfully, but these errors were encountered: