-
Notifications
You must be signed in to change notification settings - Fork 332
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
Does fsevents_monitor can capture all file updates ? #265
Comments
This is the last batch, because native-platform uses macOs's fsevents to handle file events, which does not pickup all file changes. While `tail` is based on BSD's kqueue, and report correctly file changes. This finding has been confirmed with the tool fswatch (it implements various way to watch files ; on macos: fsevents, kqueue, or polling). Reference issues : * gradle/native-platform#269 * emcrisostomo/fswatch#265
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. 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 !
The text was updated successfully, but these errors were encountered: