Skip to content

Instantly share code, notes, and snippets.

@thomasn
Created January 16, 2011 21:59
Show Gist options
  • Save thomasn/782189 to your computer and use it in GitHub Desktop.
Save thomasn/782189 to your computer and use it in GitHub Desktop.
Installing the redmine_trackmine plugin breaks Rails
thomasn@wh19 ~/dev/nexus10/redmine $ RAILS_ENV=production rvm exec script/console
Loading production environment (Rails 2.3.5)
/home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
thomasn@wh19 ~/dev/nexus10/redmine $ git clone git://github.com/capita/redmine_trackmine.git vendor/plugins/redmine_trackmine
Cloning into vendor/plugins/redmine_trackmine...
remote: Counting objects: 2648, done.
remote: Compressing objects: 100% (1989/1989), done.
remote: Total 2648 (delta 509), reused 2583 (delta 469)
Receiving objects: 100% (2648/2648), 9.73 MiB | 2.62 MiB/s, done.
Resolving deltas: 100% (509/509), done.
thomasn@wh19 ~/dev/nexus10/redmine $ RAILS_ENV=production rvm exec script/console
Loading production environment (Rails 2.3.5)
/home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
/home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activerecord-2.3.5/lib/active_record/associations.rb:830:in `has_many': no such file to load -- active_record/associations/has_many_association (MissingSourceFile)
from (eval):3:in `has_many'
from /home/thomasn/dev/nexus10/redmine/app/models/project.rb:29
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:265:in `require_or_load'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:224:in `depend_on'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:136:in `require_dependency'
from /home/thomasn/dev/nexus10/redmine/vendor/plugins/redmine_trackmine/lib/project_patch.rb:1
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:265:in `require_or_load'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:224:in `depend_on'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:136:in `require_dependency'
from /home/thomasn/dev/nexus10/redmine/vendor/plugins/redmine_trackmine/init.rb:10:in `evaluate_init_rb'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/rails/plugin.rb:158:in `evaluate_init_rb'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/rails/plugin.rb:154:in `evaluate_init_rb'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/rails/plugin.rb:48:in `load'
from /home/thomasn/dev/nexus10/redmine/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in `load'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in `load_plugins'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `each'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `load_plugins'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/initializer.rb:369:in `load_plugins'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/initializer.rb:165:in `process'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
from /home/thomasn/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
from /home/thomasn/dev/nexus10/redmine/config/environment.rb:20
from /home/thomasn/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb/init.rb:254:in `require'
from /home/thomasn/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb/init.rb:254:in `load_modules'
from /home/thomasn/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb/init.rb:252:in `each'
from /home/thomasn/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
from /home/thomasn/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb/init.rb:21:in `setup'
from /home/thomasn/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/irb.rb:54:in `start'
from /home/thomasn/.rvm/rubies/ruby-1.8.7-p302/bin/irb:17
thomasn@wh19 ~/dev/nexus10/redmine $
@thomasn
Copy link
Author

thomasn commented Jan 16, 2011

To reproduce:

  • install rvm, config for ruby-1.8.7-p302
  • install Redmine - http://www.redmine.org/projects/redmine/wiki/RedmineInstall
  • test script/console works - all ok (see above)
  • clone redmine_trackmine into vendor/plugins (see above)
  • script/console now fails (see above)
  • after removing vendor/plugins/redmine_trackmine and retesting script/console all is fine again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment