rake says "cannot load such file -- source_annotation_extractor" during upgrade 1.4.0 to 2.0.2

Added by Александр Закревский about 10 years ago

I'm trying to upgrade 1.4.0 to 2.0.2
I've updated ruby to 1.9.3, rails to 3.2.5 (using bundle update)
Now trying to call "rake --trace generate_secret_token" when get:
rake aborted!
cannot load such file -- source_annotation_extractor
/var/www/redmine/lib/tasks/plugins.rake:1:in `require'
/var/www/redmine/lib/tasks/plugins.rake:1:in `<top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/engine.rb:425:in `load'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/engine.rb:425:in `block in load_tasks'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/engine.rb:425:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/engine.rb:425:in `load_tasks'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/application.rb:145:in `load_tasks'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/railtie/configurable.rb:30:in `method_missing'
/var/www/redmine/Rakefile:7:in `<top (required)>'
/usr/local/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load'
/usr/local/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:501:in `raw_load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:82:in `block in load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake/application.rb:81:in `load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:65:in `block in run'
/usr/local/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/usr/local/bin/rake:32:in `<main>'

It seems to me that rake can't find source_annotation_extractor.rb stored in /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails. How can I solve it? Maybe add something in the Rakefile or in Path? Thanks in advance!

Replies (1)

RE: rake says "cannot load such file -- source_annotation_extractor" during upgrade 1.4.0 to 2.0.2 - Added by Александр Закревский about 10 years ago

I disabled require 'source_annotation_extractor' in redmine/lib/tasks/plugin.rake and it went without errors. Redmine 2.0.3 started well, but I do feel something wrong going on with my rails installation! What made rake not see the rb?

(1-1/1)