benzelano / test_lh_import

1 stars 0 forks source link

update to 1.0.1 from 1.0.0 causes AR 2.3.11 loading problems #81

Open benzelano opened 13 years ago

benzelano commented 13 years ago

Aaron Gibralter opened this issue

I upgraded to 1.0.1 from 1.0.0 and whenever I try to load my app environment I get this typoe of error:

Expected /.../myapp/app/models/user/extras.rb to define User::Extras

where user.rb has include User::Extras in it and my environment.rb has:

Rails::Initializer.run do |config|
  # Add model subdirectories.
  config.autoload_paths += Dir[
    File.join(Rails.root, ’app’, ’models’, ’**’)
  ].reject{ |f| !File.directory?(f) }
end

Any thoughts on why this may be happening now?

original LH ticket

This ticket has 0 attachment(s).

benzelano commented 13 years ago

Hmm, that’s interesting. Sorry to have caused the regression! I’m not entirely sure what could have caused it off the top of my head. There were a few changes made to scopes and defining helper methods that could potentially be related. In addition, I did also make a change to how the locale paths got defined in Rails 2.x integrations.

I’ll definitely be sure to take a look as soon as I can tonight. If you have any other information about the state machine, stack trace, ruby version, etc., that would be great!

benzelano commented 13 years ago

Aaron Gibralter commented

Here is a trace, though it contains no mention of state_machine... I just know that when I downgrade to 1.0.0, it works.

$ rake spec --trace rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) * Invoke spec (first_time) * Invoke db:test:load (first_time) * Invoke db:test:purge (first_time) * Invoke environment (first_time) ** Execute environment rake aborted! Expected /Users/me/myapp/app/models/membership/serialization.rb to define Membership::Serialization /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:452:in load_missing_constant’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:122:inconst_missing’ /Users/me/myapp/app/models/membership.rb:38 /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:406:in load_without_new_constant_marking’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:406:inload_file’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in new_constants_in’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:405:inload_file’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:285:in require_or_load’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:451:inload_missing_constant’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:106:in const_missing’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:118:inconst_missing’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/inflector.rb:364:in constantize’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/inflector.rb:363:ineach’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/inflector.rb:363:in constantize’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/core_ext/string/inflections.rb:162:inconstantize’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:157:in observed_class’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:183:inobserved_classes’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:166:in initialize’ /Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/singleton.rb:94:innew’ /Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/singleton.rb:94:in instance’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:38:ininstantiate_observers’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:36:in each’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:36:ininstantiate_observers’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:15:in define_dispatcher_callbacks’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:182:incall’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:182:in evaluate_method’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:166:incall’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:in run’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:ineach’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:in send’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:inrun’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:276:in run_callbacks’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:51:insend’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:51:in run_prepare_callbacks’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rails-2.3.11/lib/initializer.rb:631:inprepare_dispatcher’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rails-2.3.11/lib/initializer.rb:185:in process’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rails-2.3.11/lib/initializer.rb:113:insend’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rails-2.3.11/lib/initializer.rb:113:in run’ /Users/me/myapp/config/environment.rb:6 /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:inrequire’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in require’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:innew_constants_in’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in require’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rails-2.3.11/lib/tasks/misc.rake:4 /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:205:incall’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:205:in execute’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:200:ineach’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:200:in execute’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:158:ininvoke_with_call_chain’ /Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in synchronize’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:151:ininvoke_with_call_chain’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:176:in invoke_prerequisites’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:ineach’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:in invoke_prerequisites’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:157:ininvoke_with_call_chain’ /Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in synchronize’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:151:ininvoke_with_call_chain’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:176:in invoke_prerequisites’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:ineach’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:in invoke_prerequisites’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:157:ininvoke_with_call_chain’ /Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in synchronize’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:151:ininvoke_with_call_chain’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:176:in invoke_prerequisites’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:ineach’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:in invoke_prerequisites’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:157:ininvoke_with_call_chain’ /Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in synchronize’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:151:ininvoke_with_call_chain’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:144:in invoke’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:112:ininvoke_task’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:90:in top_level’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:90:ineach’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:90:in top_level’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:129:instandard_exception_handling’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:84:in top_level’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:62:inrun’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:129:in standard_exception_handling’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:59:inrun’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/bin/rake:31 /Users/me/.rvm/gems/ree-1.8.7-2011.03/bin/rake:19:in `load’ /Users/me/.rvm/gems/ree-1.8.7-2011.03/bin/rake:19 Tasks: TOP => spec => db:test:load => db:test:purge => environment

benzelano commented 13 years ago

Aaron Gibralter commented

Dammit, that got mangled...

$ rake spec --trace
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
** Invoke spec (first_time)
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Expected /Users/me/myapp/app/models/membership/serialization.rb to define Membership::Serialization
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:452:in `load_missing_constant’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:122:in `const_missing’
/Users/me/myapp/app/models/membership.rb:38
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:406:in `load_without_new_constant_marking’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:406:in `load_file’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in `new_constants_in’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:405:in `load_file’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:285:in `require_or_load’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:451:in `load_missing_constant’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:106:in `const_missing’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:118:in `const_missing’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/inflector.rb:364:in `constantize’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/inflector.rb:363:in `each’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/inflector.rb:363:in `constantize’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/core_ext/string/inflections.rb:162:in `constantize’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:157:in `observed_class’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:183:in `observed_classes’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:166:in `initialize’
/Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/singleton.rb:94:in `new’
/Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/singleton.rb:94:in `instance’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:38:in `instantiate_observers’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:36:in `each’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/observer.rb:36:in `instantiate_observers’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:15:in `define_dispatcher_callbacks’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:182:in `call’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:182:in `evaluate_method’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:166:in `call’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:in `run’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:in `each’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:in `send’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:90:in `run’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:276:in `run_callbacks’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:51:in `send’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rails-2.3.11/lib/initializer.rb:631:in `prepare_dispatcher’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rails-2.3.11/lib/initializer.rb:185:in `process’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rails-2.3.11/lib/initializer.rb:113:in `send’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rails-2.3.11/lib/initializer.rb:113:in `run’
/Users/me/myapp/config/environment.rb:6
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in `new_constants_in’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rails-2.3.11/lib/tasks/misc.rake:4
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:205:in `call’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:205:in `execute’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:200:in `each’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:200:in `execute’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:158:in `invoke_with_call_chain’
/Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in `synchronize’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:151:in `invoke_with_call_chain’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:176:in `invoke_prerequisites’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:in `each’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:in `invoke_prerequisites’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:157:in `invoke_with_call_chain’
/Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in `synchronize’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:151:in `invoke_with_call_chain’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:176:in `invoke_prerequisites’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:in `each’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:in `invoke_prerequisites’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:157:in `invoke_with_call_chain’
/Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in `synchronize’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:151:in `invoke_with_call_chain’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:176:in `invoke_prerequisites’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:in `each’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:174:in `invoke_prerequisites’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:157:in `invoke_with_call_chain’
/Users/me/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in `synchronize’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:151:in `invoke_with_call_chain’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/task.rb:144:in `invoke’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:112:in `invoke_task’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:90:in `top_level’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:90:in `each’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:90:in `top_level’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:129:in `standard_exception_handling’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:84:in `top_level’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:62:in `run’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:129:in `standard_exception_handling’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/lib/rake/application.rb:59:in `run’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/gems/rake-0.9.0/bin/rake:31
/Users/me/.rvm/gems/ree-1.8.7-2011.03/bin/rake:19:in `load’
/Users/me/.rvm/gems/ree-1.8.7-2011.03/bin/rake:19
Tasks: TOP => spec => db:test:load => db:test:purge => environment
benzelano commented 13 years ago

Hey Aaron -

I have a suspicion regarding what the issue is, but I can’t say for certain without a little more understanding of how User and User::Extras interact with each other. Let’s start with my guess: there seems to be a circular reference between User and User::Extras which causes the error. You could simulate it with the following files:

user.rb @@@ ruby class User include User::Extras end @@@

user/extras.rb @@@ ruby User.class eval do module Extras end end @@@

Now there was this change - https://github.com/pluginaweek/state_machine/commit/a58f5ee1cf21be469ced9c07bb231b0d1db8f64c - which could have caused the issue you’re seeing. Unfortunately, I haven’t been able to come up with an example scenario where it happens.

If there’s any chance you could provide more info about these files or perhaps chat on IRC about it, that’d be great. I definitely want to get this issue resolved asap.

benzelano commented 13 years ago

Hm it actually appears as though my example may have been a bit invalid since user/extras.rb wouldn’t actually end up defining User::Extras. Either way, I feel like the changeset I referenced is somehow causing this issue.

benzelano commented 13 years ago

Aaron Gibralter commented

Where can I find you on IRC?

benzelano commented 13 years ago

Aaron Gibralter commented

I have:

app/models/user.rb:

class User
  include User::Extras
end

app/models/user/extras.rb:

module User::Extras
  def foo
  end
end

Kind of like a soft-core https://github.com/jakehow/concerned_with...