razum2um / lurker

📖 The ultimate tool for documenting and testing APIs in Rails
https://lurker.razum2um.me/lurker
MIT License
116 stars 22 forks source link

uninitialized constant Rails::Engine (NameError) #89

Closed edikgat closed 10 years ago

edikgat commented 10 years ago

tested at ruby mri 2.0.0-p576, 2.1.2, ubuntu 14.04 amd64

rake lurker:all --trace * Invoke lurker:all (first_time) * Invoke lurker:merchant (first_time) * Execute lurker:merchant /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bundler/gems/lurker-5d9f85972b89/lib/lurker/engine.rb:4:in <module:Lurker>': uninitialized constant Rails::Engine (NameError) from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bundler/gems/lurker-5d9f85972b89/lib/lurker/engine.rb:3:in<top (required)>' from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bundler/gems/lurker-5d9f85972b89/lib/lurker.rb:92:in <top (required)>' from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bundler/gems/lurker-5d9f85972b89/bin/lurker:11:inrequire' from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bundler/gems/lurker-5d9f85972b89/bin/lurker:11:in <top (required)>' from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bin/lurker:23:inload' from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bin/lurker:23:in <main>' ** Invoke lurker:user (first_time) ** Execute lurker:user /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bundler/gems/lurker-5d9f85972b89/lib/lurker/engine.rb:4:inmodule:Lurker': uninitialized constant Rails::Engine (NameError) from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bundler/gems/lurker-5d9f85972b89/lib/lurker/engine.rb:3:in <top (required)>' from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bundler/gems/lurker-5d9f85972b89/lib/lurker.rb:92:in<top (required)>' from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bundler/gems/lurker-5d9f85972b89/bin/lurker:11:in require' from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bundler/gems/lurker-5d9f85972b89/bin/lurker:11:in<top (required)>' from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bin/lurker:23:in load' from /home/eduard/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/bin/lurker:23:in

' * Execute lurker:all

aderyabin commented 10 years ago

@razum2um. Absolutely mad trace without description. It was detected under Rails 4.2.0beta2.

razum2um commented 10 years ago

@edikgat @aderyabin fixed

Probably rails/engine was automatically required on < 4.2 Thanks for report!