-
Notifications
You must be signed in to change notification settings - Fork 248
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
Listen falls back to polling intermittently on script execution #61
Comments
Have you tried to increase latency (0.5) ? |
yes. tried 1.0 as well. same result Sent from my iPhone On 2012-09-05, at 2:08 AM, Thibaud Guillaume-Gentil notifications@github.com wrote:
|
Same on ruby 1.9.3? |
Oh and have you tried everything in the list? https://github.com/guard/listen#polling-fallback |
Yes, tried everything on the list. re: ruby 1.9.3 - the script needs to work with default osx ruby. So thats what I have setup on my system. |
Ok weird, can you try to launch the Listen spec suite on your system please. |
I'm seeing similar behavior: OSX: 10.8 There were two failures in the spec suite:
|
Ok I got the same issue sometimes, I'll try to have a look this week. We'll maybe need to increase latency.
|
I have create a new branch (adatper_work_test) to test specifically this issue, and it seems that adapter.wait_for_callback method do not wait enough. @Maher4Ever have you an idea about how to fix that? @mattgreen @meeech can you try to run
Thanks! |
@thibaudgg I tried running
@thibaudgg ps: i'm in the guard IRC room if you want to do this realtime. |
@thibaudgg thanks. works now.
Ran it 5 times, each time no failure. |
@meeech with the sleep 0.5 it seems to always works, but the |
@thibaudgg the 5 times i ran before, each time I just ran the test again, this time i got a failure:
Ran again a few time after this one failure, and no more failures. |
Ok so even with |
Tried the branch, can't get it to fail. |
@thibaudgg This issue seems to be Mac specific (which isn't at my disposal at the moment). I can't reproduce it on neither Windows nor Linux. I'll try to take a look at the problem this weekend on a Mac. |
@Maher4Ever awesome thanks! |
This issue was a tricky one, but I think a fixed the cause of the bug. Could you try the master branch and tell me if the fix works for you? |
@Maher4Ever working for me. Fired off the test script a number of times, never once fell back to polling. thanks! |
This issue is not resolved, please re-open. I'm still experiencing this with Listen 0.5.0 (Mac OSX 10.7.4). The error does not occur with Listen 0.4.7 |
@zakdances i closed it because the fix was on master, and its working. They haven't pushed out an update yet to rubygems. |
Is there an ETA for the rubygems push? |
master fixes this bug for me too. It doesn't really matter when it gets released on Rubygems. Point your Gemfile to the git repository in the mean time:
|
@Maher4Ever I'm ok for 0.5.1 if it's ok for you too :) gem 'listen', github: 'guard/listen' Is even better :) (Ruby 1.9 & Bundler 1.2) |
Thanks to everyone who helped track this bug down and test the fix. I just released 0.5.1 to rubygems. |
Sometimes when I run this code from CLI: https://gist.github.com/3628881,
Listen falls back to polling. No idea why.
When Listen works as expected, I can see in activity monitor 'fsevent_watch' process
When Listen falls back to polling, I can see 'fsevent_watch' process did not launch.
Not getting any error messages (beyond default 'Listen will be polling changes...')
Can you offer any advice on what I can do to gather more information to track down why this is happening?
Don't know if this is related to #60. I tried explicitly require'ing rb-fsevent in the script but that doesn't seem to make a difference.
OSX: 10.6.8
Ruby: 1.8.7
rb-fsevent: 0.9.1
Listen: 0.5.0
The text was updated successfully, but these errors were encountered: