-
Notifications
You must be signed in to change notification settings - Fork 228
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
OSX - Watching 3 or more directories fails #23
Comments
Any ideas, @octplane? |
The test failure seems to be because fsevent-rust resolves symlinks here in cf::str_path_to_cfstring_ref. Then the test asserts it got an event on I'm not sure if the resolution of symlinks at that place is expected or not. If it is then the tests can be fixed by resolving the symlink before asserting. |
Oops my comment may be a bit misleading. While it is an issue it's not the issue as you can see the directory events expected in |
There's an issue open for symlinks iirc. On my phone, can't check. On Sat, 29 Aug 2015 16:21 Jake Kerr notifications@github.com wrote:
|
Oops, didn't receive any notification about this bug until yesterday. Sorry for the delay, I'll look into it quickly... |
The runloop stuff is a bit curious. I have made my binding testable and I does not fail with three folder to listen. It does none of the stop/start of rsnotify https://github.com/passcod/rsnotify/blob/master/src/fsevent.rs#L223 (which I'm not sure it the right way to do) However, the FSEvent API resolves all symlinks when calling back its listener and I suppose this behavior is not compatible with the other bindings. Also, some events sent by the FSEvent API are from the 'past' (this is another very troublesome issue that might or might not be due the API itself...). All these difficulties will make testing this not cool :) But I'm on it :D |
@compressed, etc Does this still occur? |
Closing. Comment/reopen if it's still occurring. |
Hi,
I'm running OSX 10.10.4 and was trying to use the cargo watch tool, however it wasn't working. It seemed whenever the "benches" watch was added, cargo watch wouldn't watch anything...
Digging further, it seems something goes awry when adding the third watch. For the prior two watches, this condition is met (
fsevent.rs
line 62):On the third try however, that condition isn't met, and it makes its way all the way to this match (
fsevent.rs
line 78):And never makes it past there...
Let me know if you need more information.
Also, if I try running cargo test, it fails:
The text was updated successfully, but these errors were encountered: