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

Could not load the 'listen' gem #479

Closed
awead opened this issue Feb 23, 2017 · 6 comments
Closed

Could not load the 'listen' gem #479

awead opened this issue Feb 23, 2017 · 6 comments
Labels

Comments

@awead
Copy link
Contributor

awead commented Feb 23, 2017

Descriptive summary

When following the install instructions, rails new my_app -m https://raw.githubusercontent.com/projecthydra-labs/hyrax/master/template.rb

I get:

    generate    hyrax:install
/Users/awead/.gem/ruby/2.3.1/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require': Could not load the 'listen' gem. Add `gem 'listen'` to the development group of your Gemfile (LoadError)

The app seems to build fine, so I don't know if this is a real issue or not.

@awead awead added the question label Feb 23, 2017
@jcoyne
Copy link
Member

jcoyne commented Feb 23, 2017

@awead In hyku we don't have listen in the gemfile or Gemfile.lock. Try --skip-listen see cbeer/engine_cart#62

@awead
Copy link
Contributor Author

awead commented Feb 23, 2017

No effect if:
ENGINE_CART_RAILS_OPTIONS="--skip_listen" bundle exec rails new ...
Is there another method?

@jcoyne
Copy link
Member

jcoyne commented Feb 23, 2017

rails new my_app --skip_listen -m https://raw.githubusercontent.com/projecthydra-labs/hyrax/master/template.rb

@awead
Copy link
Contributor Author

awead commented Feb 23, 2017

Yep. Just tried that, thanks!

@awead awead closed this as completed Feb 23, 2017
@jcoyne
Copy link
Member

jcoyne commented Feb 23, 2017

The listen gem is causing nasty segfaults for me too:

       route  devise_for :users
/Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.9.8/lib/rb-fsevent/fsevent.rb:106: [BUG] rb_gc_mark(): 0x007fbecb00eda8 is T_NONE
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:
     * ~/Library/Logs/CrashReporter
     * /Library/Logs/CrashReporter
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   for more details.
Don't forget to include the above Crash Report log file in bug reports.

-- Control frame information -----------------------------------------------
c:0008 p:---- s:0032 e:000031 CFUNC  :new
c:0007 p:---- s:0029 e:000028 CFUNC  :popen
c:0006 p:0035 s:0024 e:000023 METHOD /Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.9.8/lib/rb-fsevent/fsevent.rb:106
c:0005 p:0008 s:0020 e:000019 METHOD /Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.9.8/lib/rb-fsevent/fsevent.rb:37
c:0004 p:0028 s:0014 e:000013 METHOD /Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68
c:0003 p:0010 s:0009 e:000008 BLOCK  /Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:77 [FINISH]
c:0002 p:0009 s:0006 e:000005 BLOCK  /Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6 [FINISH]
c:0001 p:---- s:0003 e:000002 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
/Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
/Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:77:in `block (2 levels) in _run_workers_in_background'
/Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.9.8/lib/rb-fsevent/fsevent.rb:37:in `run'
/Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.9.8/lib/rb-fsevent/fsevent.rb:106:in `open_pipe'
/Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.9.8/lib/rb-fsevent/fsevent.rb:106:in `popen'
/Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-fsevent-0.9.8/lib/rb-fsevent/fsevent.rb:106:in `new'

-- C level backtrace information -------------------------------------------

@jcoyne
Copy link
Member

jcoyne commented Feb 23, 2017

rails/rails#26158

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

No branches or pull requests

2 participants