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
** ERROR: directory is already being watched! ** #34912
Comments
Please see this thread. #32700 |
Thanks for your report. This already fixed by #33822. Please see #32700 (comment) for a temporary solution. |
try this, it solves my problem. https://github.com/guard/listen/wiki/Duplicate-directory-errors |
y-yagi
added a commit
to y-yagi/rails
that referenced
this issue
Jun 2, 2019
`spring-watcher-listen` watch application root by default. https://github.com/jonleighton/spring-watcher-listen/blob/c4bfe15805867e229588e4b776a7b87438137094/lib/spring/watcher/listen.rb#L58 This is necessary to watch the file (e.g. `.ruby-version`) in the application root. By this `node_modules` also be watched, and it is a possibility to be shown a warning by `listen`. Related to rails#32700, rails#34912, rails/webpacker#1990. `listen` watches directory recursive by default, and it cannot avoid it. guard/listen#111 So If this warning happens, the only workaround the user can do is remove the gem. The issue is likely to occur more frequently in Rails 6 because `rails new` runs `webpacker:install` by default. Because of such a state, I think that we should not recommend to use `spring-watcher-listen`. Spring has polling watcher, restart process works without this `spring-watcher-listen`. Because of polling base, CPU load may be higher than listen base. Still I think that it is better than the warning comes out.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Someone help me get rid of this errors
Steps to reproduce
rails new sample_api --api
create-react-app
create-react-app client
bin/rails s
Expected behavior
Actual behavior
System configuration
Rails version: 5.2.2
Ruby version: 2.5.1-p57
OS macOS High Sierra version 10.13.2
The text was updated successfully, but these errors were encountered: