-
Notifications
You must be signed in to change notification settings - Fork 823
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
Filesystem watchers like libinotify do not work #216
Comments
Thanks for reporting the issue. Currently, only portions of procfs are implemented and there is limited inotify support. To get this on our priority list can you add it to our [UserVoice](https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash page) page? Thanks again for trying out WSL! |
I just added at UserVoice request for filesystem watchers & inotify. |
@patryk9200 Thanks! |
All of the node.js watch functions that I've tried fail on EPERM. I've ensured that all files and directories that it's trying to access have the proper ownership group and user. I even tried running watch tasks as the root user, and I receive the same eperm issue. I've also made sure that all of the files are listed inside the linux subsystem, and that I'm not trying to watch files mounted to /mnt/c/ |
JSMike: It does not work. This is why we opened this issue 😄 |
yes, I was just trying to add detail |
Thanks for the feedback. Inotify will not be fully supported in the Anniversary update, but we are tracking the work for future insider builds. If you haven't already, please vote on the user voice page for inotify (https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13469097-support-for-filesystem-watchers-like-inotify). |
I'm in the same boat #697 .. I have to go back to CygWin until we can see this resolved. I am very excited about this in Windows though. I spent a good day trying to get our dev kit working, and from what I can tell, the build is very solid. But yes, I also fell into missing proc/sys/net problems with mongo too so we will have to come back once these features are enabled. |
@SRGOM -- I don't know that there's automated telemetry, but users can vote on issues here: So Microsoft does have some information about both which features people want to use and how much they care about them. On that note -- have you voted for this issue there? It's relatively high on the list. |
Just posting here to show how much I would love to see this feature implemented |
@meffect if you haven't already, you should throw three votes at it on the UserVoice page linked above. It has gotten a lot of traction lately, but hasn't yet been tagged by the MS team. |
how about how to work around the issue in the meantime??? for example what config settings etc, need to be used for a basic rails 5x install? |
I generated my app with |
Thanks @jwsloan If you have already generated a rails app, here is what you have to do to fix:
#gem 'listen', '~> 3.0.5'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
#gem 'spring'
#gem 'spring-watcher-listen', '~> 2.0.0' I am not sure you have to comment out spring / spring-watcher-listen, but that works for me... Then in the development.rb comment out this line: #config.file_watcher = ActiveSupport::EventedFileUpdateChecker and of course bundle install... |
@MatheusRV |
|
I have still a problem with Jekyll and Ruby (installed from Auto-regeneration may not work on some Windows versions.
Please see: https://github.com/Microsoft/BashOnWindows/issues/216
If it does not work, please upgrade Bash on Windows or run Jekyll with --no-watch.
Auto-regeneration: enabled for '/mnt/d/gusbe/GitLab/dicas-para-alunos-da-dankicode'
#<Thread:0x000055823d03d378 /home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/bundler/gems/jekyll-4a875acb2616/lib/jekyll/command
s/serve/live_reload_reactor.rb:41 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
5: from /home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/bundler/gems/jekyll-4a875acb2616/lib/jekyll/commands/serve/live
_reload_reactor.rb:44:in `block in start'
4: from /home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run'
3: from /home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run_machine
'
2: from /home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/bundler/gems/jekyll-4a875acb2616/lib/jekyll/commands/serve/live
_reload_reactor.rb:47:in `block (2 levels) in start'
1: from /home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:531:in `start_serve
r'
/home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:531:in `start_tcp_server': no accep
tor (port is in use or requires root privileges) (RuntimeError)
bundler: failed to load command: jekyll (/home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/bin/jekyll)
RuntimeError: no acceptor (port is in use or requires root privileges)
/home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:531:in `start_tcp_server'
/home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:531:in `start_server'
/home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/bundler/gems/jekyll-4a875acb2616/lib/jekyll/commands/serve/live_reload_reacto
r.rb:47:in `block (2 levels) in start'
/home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run_machine'
/home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run'
/home/gusbemacbe/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/bundler/gems/jekyll-4a875acb2616/lib/jekyll/commands/serve/live_reload_reacto
r.rb:44:in `block in start' |
Using WSL2 with Ubuntu distribution and can confirm auto-regeneration is not working anymore (as it did with WSL1).
|
The filewatcher for vs code remote (latex build on change) as well as jest (--watch) or webpack (dev server) are all broken in WSL2. I assume it all falls under this issue?
|
Another data point that Jekyll watch it is not working on WSL2 with Ubuntu 20.04 |
An update, I've found a workaround to get it working in the short term. When I have the jekyll site on the C:/ drive e.g. Doing it this way means |
Unfortunately your hack did not work for me. See what and how I did. I tried to do what you got.
|
Thanks! This solved my issue with Angular as well! Moving my code from |
Is there any hack. for this? |
|
I manged to hack this together by creating a symlink from somewhere in my |
For anyone having trouble with jekyll, running with |
Regarding: #216 (comment)
Confirming this works for me too. More Info: Using:
Setup:
Live reloading & watching did not trigger without Regarding: #216 (comment) (626327824) + #216 (comment) (635393026) Confirming this also works using my setup. Live reloading & watching also works for me when:
|
It does work, but it increases the CPU load with 15-25% on a i9-9980HK processor with WSL 2. |
I also installed the wsd gem, as pointed here: https://jekyllrb.com/docs/installation/windows/#auto-regeneration
and then
|
@adam-dziedzic it's not a |
yeap but now year is 2023 ,the bug still not solve |
I ended up in a tangle with GH Pages as I tried to install missing components manually on a new system after seeing error messages from my script, rather than following the instructions. I answered "no" to a sudo prompt at install time, so the install created a local "vendors" directory via config, causing this error:
didn't work for me:
was very helpful as noted in jekyll/jekyll#8523
thanks @adam-dziedzic ! now working properly in WSL: |
The whole /proc/sys/fs structure is missing, too.
inotitywait does not get triggered by filesystem changes.
The text was updated successfully, but these errors were encountered: