#993·guard

Can't disable notifications

Author: taqCreated Sep 13, 2024Updated Sep 13, 2024

On an Rails 7.0.2 app running on Ruby 3.3.0/Ubuntu 24.04 I'm facing this kind of error, after running the test more than once:

E, [2024-09-13T08:00:36.062408 #29134] ERROR -- : Exception rescued in listen-run_thread:--=---=---=---=---=---=---=---=---=---=---=---=---] 0% Time: 00:00:00,  ETA: ??:??:??
INotify::QueueOverflowError: inotify event queue has overflowed.
/home/taq/.rvm/gems/ruby-3.3.0/gems/rb-inotify-0.11.1/lib/rb-inotify/event.rb:120:in `initialize'
/home/taq/.rvm/gems/ruby-3.3.0/gems/rb-inotify-0.11.1/lib/rb-inotify/event.rb:100:in `new'
/home/taq/.rvm/gems/ruby-3.3.0/gems/rb-inotify-0.11.1/lib/rb-inotify/event.rb:100:in `consume'
/home/taq/.rvm/gems/ruby-3.3.0/gems/rb-inotify-0.11.1/lib/rb-inotify/notifier.rb:299:in `read_events'
/home/taq/.rvm/gems/ruby-3.3.0/gems/rb-inotify-0.11.1/lib/rb-inotify/notifier.rb:259:in `process'
/home/taq/.rvm/gems/ruby-3.3.0/gems/rb-inotify-0.11.1/lib/rb-inotify/notifier.rb:231:in `block in run'
/home/taq/.rvm/gems/ruby-3.3.0/gems/rb-inotify-0.11.1/lib/rb-inotify/notifier.rb:228:in `synchronize'
/home/taq/.rvm/gems/ruby-3.3.0/gems/rb-inotify-0.11.1/lib/rb-inotify/notifier.rb:228:in `run'
/home/taq/.rvm/gems/ruby-3.3.0/gems/listen-3.9.0/lib/listen/adapter/linux.rb:38:in `_run'
/home/taq/.rvm/gems/ruby-3.3.0/gems/listen-3.9.0/lib/listen/adapter/base.rb:79:in `block in start'
/home/taq/.rvm/gems/ruby-3.3.0/gems/listen-3.9.0/lib/listen/thread.rb:26:in `rescue_and_log'
/home/taq/.rvm/gems/ruby-3.3.0/gems/listen-3.9.0/lib/listen/thread.rb:18:in `block in new'
--- Thread.new ---
/home/taq/.rvm/gems/ruby-3.3.0/gems/listen-3.9.0/lib/listen/adapter/base.rb:75:in `start'
/home/taq/.rvm/rubies/ruby-3.3.0/lib/ruby/3.3.0/forwardable.rb:240:in `start'
/home/taq/.rvm/gems/ruby-3.3.0/gems/listen-3.9.0/lib/listen/listener.rb:71:in `block in <class:Listener>'
/home/taq/.rvm/gems/ruby-3.3.0/gems/listen-3.9.0/lib/listen/fsm.rb:124:in `instance_eval'
/home/taq/.rvm/gems/ruby-3.3.0/gems/listen-3.9.0/lib/listen/fsm.rb:124:in `call'
/home/taq/.rvm/gems/ruby-3.3.0/gems/listen-3.9.0/lib/listen/fsm.rb:105:in `transition_with_callbacks!'
/home/taq/.rvm/gems/ruby-3.3.0/gems/listen-3.9.0/lib/listen/fsm.rb:72:in `transition'
/home/taq/.rvm/gems/ruby-3.3.0/gems/listen-3.9.0/lib/listen/listener.rb:92:in `start'
/home/taq/.rvm/gems/ruby-3.3.0/gems/guard-2.18.1/lib/guard/commander.rb:35:in `start'

Seems something related to the notification system. I tried to instruct Guard to avoid it using notification: off and even on CLI using --no-notify, but it does not seems to work. What am I missing? Thanks!