Skip to content
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

guard-livereload reports with undefined method epoll? error #188

Open
Marin-Kitagawa opened this issue Jan 5, 2021 · 5 comments
Open

guard-livereload reports with undefined method epoll? error #188

Marin-Kitagawa opened this issue Jan 5, 2021 · 5 comments

Comments

@Marin-Kitagawa
Copy link

The following error is thrown when bundle exec guard is executed.

18:27:17 - INFO - Run 'gem install win32console' to use color on Windows
#<Thread:0x000000000796e720 C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/guard-livereload-2.5.2/lib/guard/livereload/reactor.rb:11 run> terminated with exception (report_on_exception is true):
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/guard-livereload-2.5.2/lib/guard/livereload/reactor.rb:48:in `_start_reactor': undefined method `epoll?' for EventMachine:Module (NoMethodError)
Did you mean?  epoll
        from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/guard-livereload-2.5.2/lib/guard/livereload/reactor.rb:11:in `block in initialize'
18:27:18 - INFO - Guard is now watching at 'Z:/RoR_WS/demo_blog'
For a better Pry experience on Windows, please use ansicon:
  https://github.com/adoxa/ansicon
If you use an alternative to ansicon and don't want to see this warning again,
you can add "Pry.config.windows_console_warning = false" to your pryrc.
[1] guard(main)>

How to resolve this?

@Adr1ann
Copy link

Adr1ann commented Apr 6, 2021

Someone solved that?

@iseth
Copy link

iseth commented Nov 30, 2021

I am getting this error on mac. Any updates on this?

@Artemiy17
Copy link

Same problem on mac.

@ordinz
Copy link

ordinz commented Jan 20, 2022

Same issue here

@avk
Copy link

avk commented Jan 23, 2024

I had this problem, and I traced it to EventMachine itself.

It seems that the EventMachine object you get from require 'em/pure_ruby' doesn't have the same methods, like epoll?, as other builds.

I had to first remove the gem:

$ gem uninstall eventmachine

and then reinstall from an unreleased build via this in my Gemfile:

gem 'eventmachine', '= 1.3.0.dev.1', github: 'eventmachine/eventmachine', branch: 'master'

This idea and other approaches are described here: eventmachine/eventmachine#960

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants