ruby on rails - ERROR: 'rake/rdoctask' is obsolete and no longer supported -


out of blue, started getting following error message:

(in /users/me/.rvm/gems/ruby-1.9.3-p125@mysql2/gems/rails-0.9.5) rake aborted! error: 'rake/rdoctask' obsolete , no longer supported. use 'rdoc/task' (available in rdoc 2.4.2+) instead. /users/me/.rvm/gems/ruby-1.9.3-p125@mysql2/gems/rails-0.9.5/rakefile:3:in `<top (required)>' 

when rails s (in development environment terminal - mac mountain lion). application in production, went production environment, did bundle show, , modified gemfile, harcode gems versions.

here's have on my local development environment (what's producing error message).

actionmailer (3.2.3) actionpack (3.2.3) activemodel (3.2.3) activerecord (3.2.3) activeresource (3.2.3) activesupport (3.2.3) annotate (2.4.1.beta1) arel (3.0.2) bcrypt-ruby (3.0.1) bootstrap-datepicker-rails (0.6.15) bootstrap-sass (2.0.2) builder (3.0.4) bundler (1.1.3) coffee-rails (3.2.2) coffee-script (2.2.0) coffee-script-source (1.6.1) commonjs (0.2.6) devise (2.0.4) diff-lcs (1.1.3) erubis (2.7.0) execjs (1.4.0) factory_girl (3.2.0) factory_girl_rails (3.2.0) hike (1.2.1) i18n (0.6.4) journey (1.0.4) jquery-rails (2.0.2) json (1.7.1) less (2.2.2) less-rails (2.2.6) libv8 (3.3.10.4) mail (2.4.4) mime-types (1.21) multi_json (1.6.1) mysql2 (0.3.11) nokogiri (1.5.6) orm_adapter (0.0.7) polyglot (0.3.3) rack (1.4.5) rack-cache (1.2) rack-ssl (1.3.3) rack-test (0.6.2) rails (3.2.3) railties (3.2.3) rake (10.0.3) rdoc (3.4) rest-client (1.6.7) rspec (2.6.0) rspec-core (2.6.4) rspec-expectations (2.6.0) rspec-mocks (2.6.0) rspec-rails (2.6.1) sass (3.2.7) sass-rails (3.2.5) sprockets (2.1.3) stripe (1.7.0) therubyracer (0.10.1) thor (0.14.6) tilt (1.3.5) tinymce-rails (3.4.8) treetop (1.4.12) twitter-bootstrap-rails (2.1.0) tzinfo (0.3.37) uglifier (1.2.4) warden (1.1.1) webrat (0.7.1) 

i researched stackoverflow , web, , none of suggestions worked (changing rake gem version different. 0.8.7, etc., editing app rakefile suppress deprecation errors, etc.). added rdoc , in rakefile, required 'rdoc/task'

still, same error.

just else has had hassle. if me, problem current version of rails 4 , wanting use older version 3.0.7

if install rails fresh learn ,say, , tutorial using 3.0.x version of rails or job requires use of older version of rails.. can hole.

in case got 3.0.7 rails project dumped on me , told learn rails , make enhancements code.

so, started learning rails , following tutorial until got error when doing 'rake db:migrate'

rake aborted! error: 'rake/rdoctask' obsolete , no longer supported. use 'rdoc/task' (available in rdoc 2.4.2+) instead. /users/pj/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.0.7/lib/rails/tasks/documentation.rake:1:in `require' /users/pj/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.0.7/lib/rails/tasks/documentation.rake:1:in `<top (required)>' /users/pj/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.0.7/lib/rails/tasks.rb:15:in `load' /users/pj/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.0.7/lib/rails/tasks.rb:15:in `block in <top (required)>' 

this happened cos using older version of rails.. in case 3.0.7 if run 'bundle show', did then, may see using rake version 10.0.0 or that...and need running rake 0.9.2 ... problem coming from..

the solution me (a) add gem gemfile , (b) bundle install

so, in gemfile added:

gem 'rake', '0.9.2' 

then did

'bundle install' 

got message:

you have requested:   rake = 0.9.2  bundle has rake locked @ 10.1.0. try running `bundle update rake` 

and did that...

bundle update rake. 

and went fine.

then when did the'rake db:migrate' worked.

hope helps somebody. vida.

ps: if new rails, me, , inherit older rails app gods sake never run 'bundle update' or enter world of pain. command updates gems latest versions , end load of problems incompatibilities. way out of if lucky enough have git installed , can 'git checkout' go back...


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -