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
WDM watcher breaks --watchdir parameter #63
Comments
Interesting... I let our Windows expert (@Maher4Ever) answer to that :) |
@thibaudgg the same problem here, after 4 months, I want to know whether there is an answer to solve this issue, thx :) |
@Maher4Ever can you look at it please? |
I tried to reproduces this issue today but I couldn't. I even tried with WDM v0.0.3, but everything worked fine. Do you know of any particular situation or configuration which triggers this issue? |
@Maher4Ever Great to have you back, a heartily welcome from my side! I hope all is fine with you and your studies. |
@Maher4Ever I can't either reproduce the issue, but I remember fighting with it for half a day. I don't remember what might have been special about my setup. By now I'm running a newer Ruby with a newer SDK, so probably a version issue there. (I tried reproducing with guard-1.3.3 and listen-0.5.2). Probably @windy has some ideas. Edit: Tried with 1.9.3-p194 in a VM. Cannot reproduce either. |
This may be related to to the this Ruby issue that only affects ruby 1.9.3p327 on Windows. |
@netzpirat Thanks man, I'm happy to be back :) Everything is going great right now, and I hope it's the same for you. |
Thank you for introducing me to the
--watchdir
parameter in a recent discussion.I tried guard with that parameter, but it seems to be broken on Windows. Through a lot of
puts
debugging I found that line 80 of the Windows adapter appears to delete the directories to watch such that subsequent calls use a "somewhat empty@directories
field. I.e.:Given
@directories
is["C:/Somewhere"]
before adapters/windows.rb:80 was runWhen adapters/windows.rb:80 was run
Then
@directories
is[""]
I know this sounds very strange (it indeed is), but given that WDM is a native gem, it might be that it frees some memory that it's not supposed to.
To fix the issue for me, I simply changed said line 80 to:
Here's my env:
Original error without the fix:
The text was updated successfully, but these errors were encountered: