fava icon indicating copy to clipboard operation
fava copied to clipboard

BSD: Changes in file not detected

Open zbklzp opened this issue 1 year ago • 3 comments

Hi,

Thanks for the work you are doing with fava. This is a great tool. I use it to display a file that I modify by hand. Before my changes was detected and the autoreload worked perfectly. Now with 1.28 and 1.29, the changes are not detected and I have to restart fava to see them. I tried on FreeBSD and OpenBSD, the behaviour is the same.

Is there a command line option to rescan the file or something else to do ?

Thanks for your help.

zbklzp avatar Dec 22 '24 19:12 zbklzp

The file watching now uses watchfiles (which is much more perfomant than the previous file polling). I'm not sure how well that works, an investigation and possible fixes on BSD would be welcome. There's also a CLI flag to use the old polling watcher, see the help output

yagebu avatar Dec 23 '24 15:12 yagebu

Sorry, I didn't understood the --poll-watcher option usage. It works great. I am a really poor developer and have zero competence in python but I'll try to look at this and see what I'll find.

Thanks again for your help and work.

zbklzp avatar Dec 23 '24 16:12 zbklzp

I was also having trouble with file watching on OpenBSD. Passing --poll-watcher seems to fix it (thanks @yagebu).

falsifian avatar Mar 05 '25 01:03 falsifian