-
Notifications
You must be signed in to change notification settings - Fork 235
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
FsEventsWatcher doesn't seem to work on OS X 10.10.5 #50
Comments
There's definitely something to do with with the file type, the way it's modified or permissions. I'm trying to tail The file apparently has extended attributes. If I do an -rw-r-----@ 1 root admin 1164847 Feb 1 16:00 system.log
com.apple.quarantine 32 |
I'm away from OS X until next week so I won't be able to dig further but my wild guess is that FSEvent has probably some limitation around extended attributes files. Note that rsnotify uses my library internally on OS X so the behavior difference is probably only a configuration detail. The actual issue should probably be sent upstream for further analysis (which would start by looking at stackoverflow opinion on the subject)...
|
I removed the special attribute and it didn't change anything (for either library). |
I wouldn't take this as very high priority. I only cared about MacOS because I was developing on a Mac. My ultimate targets are Linux and Windows. I'm just going to develop in Linux from now on. |
After some investigation, It appears this is a (security) limitation of the FSEvent API. I suggest we close that, maybe add a note somewhere in the doc regarding the fact that the PollWatcher might work around this issue. |
Sounds good. Can you draft something to that effect? I'll add it tonight. |
I believe the analysis in this thread to be wrong. I do not think See the discussion in #240 . |
I tried the example in the README.md file on current Rust (1.6.0) on my Mac (OS X version 10.10.5) and it doesn't seem to work. I tried using both the RecommendedWatcher and FsEventWatcher to watch /var/log/system.log. I tailed the file at the same time. I could see writes coming in on the tail, but I wasn't receiving any events from my watcher.
Edit: PollWatcher is working.
The text was updated successfully, but these errors were encountered: