-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Description
It seems that guard-livereload isn't supported on the latest Ruby 2.4+ on Windows.
Putting this into my Gemfile, and running bundle works fine:
group :development do
gem 'guard', require: false
gem 'guard-livereload', '~> 2.5'
gem 'guard-bundler'
endBut trying to initialise the Guardfile fails (note running just bundle exec guard init works fine):
C:\path>bundle exec guard init livereload
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
18:47:23 - INFO - Run 'gem install win32console' to use color on Windows
18:47:23 - ERROR - Could not load 'guard/livereload' or '~/.guard/templates/livereload' or find class Guard::Livereload
C:\path>ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32]
C:\path>rails -v
Rails 5.1.2
If I use a different Guardfile that's already initialised, and run bundle exec guard, everything explodes:
C:\path>bundle exec guard
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
18:49:06 - INFO - Run 'gem install win32console' to use color on Windows
18:49:06 - ERROR - Could not load 'guard/livereload' or find class Guard::Livereload
18:49:06 - ERROR - Error is: cannot load such file -- 2.4/rubyeventmachine
18:49:06 - ERROR - C:/Ruby/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.3-x64-mingw32/lib/rubyeventmachine.rb:2:in `require'
> [#] C:/Ruby/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.3-x64-mingw32/lib/rubyeventmachine.rb:2:in `<top (required)>'
> [#] C:/Ruby/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.3-x64-mingw32/lib/eventmachine.rb:8:in `require'
> ...
> [#] C:/Ruby/lib/ruby/gems/2.4.0/gems/guard-2.14.1/bin/_guard-core:11:in `<main>'
18:49:06 - ERROR - Invalid Guardfile, original error is:
> [#]
> [#] Could not load class: "Livereload",
> [#] backtrace:
> [#] (dsl)> C
Metadata
Metadata
Assignees
Labels
No labels