Open leonsp opened 9 years ago
I'm seeing the same thing without the annotate gem (Rails 3.2.13).
The same thing with (1.1.0) bundle exec sidekiq
(Rails 4.2.5)
I'm getting the same error when I run bundle exec sidekiq
too.
Any ideas on how to fix this?
This only seems to happen on my development stage
In my fork I just removed the apparently unnecessary folder app/controllers/rails-client-logger and it seems to work with Sidekiq, however tests are failing.
cc @girishso
If I run "bundle exec annotate" on my Rails 3.x application, I get this error:
/Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:378:in'
const_defined?': wrong constant name Rails-client-logger (NameError) from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:378:in
local_const_defined?' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:365:inblock in qualified_const_defined?' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:364:in
each' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:364:ininject' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:364:in
qualified_const_defined?' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:125:inblock in watch_namespaces' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:123:in
map' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:123:inwatch_namespaces' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:636:in
new_constants_in' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:455:inload_file' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:342:in
require_or_load' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:302:independ_on' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:214:in
require_dependency' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.1.12/lib/rails/engine.rb:417:inblock (2 levels) in eager_load!' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.1.12/lib/rails/engine.rb:416:in
each' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.1.12/lib/rails/engine.rb:416:inblock in eager_load!' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.1.12/lib/rails/engine.rb:414:in
each' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.1.12/lib/rails/engine.rb:414:ineager_load!' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.1.12/lib/rails/application/railties.rb:8:in
each' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.1.12/lib/rails/application/railties.rb:8:inall' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.1.12/lib/rails/engine.rb:412:in
eager_load!' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.1.12/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/annotate-2.6.5/lib/annotate.rb:109:in
eager_load' from /Users/username/.rvm/gems/ruby-1.9.3-p484/gems/annotate-2.6.5/bin/annotate:155:in<top (required)>' from /Users/username/.rvm/gems/ruby-1.9.3-p484/bin/annotate:23:in
load' from /Users/username/.rvm/gems/ruby-1.9.3-p484/bin/annotate:23:in `I can reproduce it by opening up Rails console (bundle exec rails c) and running these two lines of code: