guard / listen

The Listen gem listens to file modifications and notifies you about the changes.
https://rubygems.org/gems/listen
MIT License
1.91k stars 245 forks source link

Automatic file reloading stopped working #559

Closed asfarley closed 1 year ago

asfarley commented 2 years ago

I am using Rails 6.02, ruby 2.6.1, listen 3.1.5, spring-watcher-listen 2.0.1 under Ubuntu 18.04 in a VMWare Workstation virtual machine on a Windows 10 host.

In the past, I have been using RubyMine and as far as I remember, automatic source code reloading was working in development mode.

Now, it seems that automatic source-code reloading is not happening by default in development mode; I had to comment out this config line to get it working:

config.file_watcher = ActiveSupport::EventedFileUpdateChecker

I see a bunch of other reports of this issue happening under Docker, or under symlinked folders in Capistrano, or even when running directly under Windows. However, I do not see any reports of this issue occurring on Ubuntu in a VM.

Is this expected? I wish I knew what change caused this because I thought it was working recently.

asfarley commented 2 years ago

Also, I am developing within RubyMine and my environment uses rbenv.

LouisaNikita commented 2 years ago

我已收到你的邮件,谢谢!  

asfarley commented 1 year ago

This turned out to be related to previously reported issues where the amount of inotify watches was used up by a large amount of files in node_modules; using listener.ignore as suggested inside config/spring.rb fixed the issue.