Open bric3 opened 3 years ago
Hi @bric3, I don't know, I'll try to reproduce it and investigate it
@emcrisostomo Hi, did you had the chance to investigate ?
I notice the same issue when I try to monitor node_modules folders created by pnpm using fsevent monitor. Seems like when the number of file changes is small, it's working fine. But whenever there's a large number of file changes, some are missing RANDOMLY.
The probabilistic nature of the issue may suggest it's some kind of buffer or queue size overflow?
@emcrisostomo is there any queue size parameter we can tweak?
Hi,
Thanks for this utility, this issue is more a question about fs events on macos than to report a problem, so when watching a file directly, I noticed that fs monitor don't report events on a log file, I'm using JetBrains IntelliJ IDEA log files as an example.
It seems that only
kqueue_monitor
is picking the events on this log file.However when I use some command lines to modify the file (additionnally to IntelliJ IDEA), then
fsevents_monitor
picks up some events, altthough they are not the same as those reported bykqueue_monitor
:Also, I tried to use
fswatch
to watch events on the parent directory:FS events monitor picks events the same events when touching or appending via a command line tool (
touch
orecho "" >>
), but not from the process (IntelliJ IDEA) that is really appending log messages.If using kqueue monitor for this folder, nothing gets captured unless I use the
-r
option, not even when the file modified with a command line tool (touch
orecho "" >>
).The documentation (1.14.0) suggests that fsevents is to be preferred on OSX, but is it really the prefered way if monitoring specific files. Or am I missing something ?
Thanks in advance for the feedback !