-
Notifications
You must be signed in to change notification settings - Fork 73
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
New files not automatically watched. #3
Comments
+1 would also like to be notified if this gets fixed. |
Detecting new files is currently not supported. This is mainly due to how rev works in the backend. It's pretty much the #1 feature I want to implement though, so it will be in there soon-(ish). There are various ways to go about it though and I still have to see which one's the most appropriate. I'll leave this issue open until the feature gets added. |
@jhelwig btw, as a temporary workaround there are two options:
|
Steven Parkes has a fork of watchr that uses EventMachine to get this functionality instead of rev. Last I spoke with him, I got the impression that it was functional, but there was still some work that he wanted to do. |
Thanks. Yeah I'm aware of his fork, playing with it atm actually. I've tried having an EM backend twice before (one attempt is still in a branch http://github.com/mynyml/watchr/blob/em/lib/watchr/event_handlers/unix.rb) so i'm pretty interested in his approach. One other solution I was considering is using inotify and kqueue directly (the earliest version of watchr used inotify directly http://github.com/mynyml/watchr/blob/f0a0b3045f4458cb973eb708cce3d4b3905ce2fe/lib/watchr/event_handlers/linux.rb) instead of the rev wrapper, since it allows more flexibility, including watching directories. That power would come with potential maintenance headaches though, so at this point smparkes's solution seems to be the most interesting one. |
Touching or reloading the script isn't really an option for me since that throws away the state I've been collecting up to that point. Would be nice to have this solved in rev. |
Any news on this front? |
+1 for this as well. I'm currently using a custom ruby project to run all my tests, linting, and compilation. I would love to abandon it in favour of watchr, but I can't without the ability to detect new files. |
Did anything change ? |
Has there been any progress with monitoring for new files? |
I just started using Guard. |
+1 |
still doesn't care about new files |
+1 |
1 similar comment
+1 |
+1 need it |
Me too! |
+1 |
+1, bummer this was never implemented |
+1 need it desperately |
use Guard instead. |
It's seem like still not supported by watchr. |
Touching the script doesn't cause new files to be detected for me. Can someone confirm or deny this? |
New files are not automatically picked up to be watched. watchr must be stopped & re-started for saved changes in new files to match a watched pattern.
Ubuntu w/ ext3 fs
watchr 0.5.7
rev 0.3.1
Not really a big deal. autotest has the same problem.
The text was updated successfully, but these errors were encountered: