-
Notifications
You must be signed in to change notification settings - Fork 52
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
Filewatching fails silently with >4096 paths #48
Comments
Confirmed still an issue on 11.5.2, thanks for the repo case! One workaround that is actually more performant on macOS is to simply watch the containing folder e.g. for your repro case you can use |
Maybe we should update the README with this limit? |
I can include a README update with the changes I have queued for #37 . Trying to clean up the tests this evening |
* Return an error if FSEventStreamStart fails * Validate the 4096 path limit and error detection * Add notes for #46 and #48 limitations of macOS Co-authored-by: Martin Tournoij <[email protected]>
Before reporting an issue, please ensure you are using the latest release of fsevents.
Which version of macOS are you using?
Please describe the issue that occurred.
Filewatching with
fsevents.EventStream
works just fine for up to 4096 paths; from 4097 paths upwards, I don't seem to be getting any events (nor error messages).Are you able to reproduce the issue? Please provide steps to reproduce and a code sample if possible.
Repro case here (a small Go util that watches files specified as args, plus repro instructions).
FWIW, I think this may be an underlying problem with fsevents (because I could reproduce the problem with e.g. this fswatch util), but I'm not sure where to report; would be happy for guidance!
The text was updated successfully, but these errors were encountered: