Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I have still rake/rdoctask deprecated warning

Tags:

I've made bundle update a now I have still rake/rdoctask deprecated warning after running rake command.

WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /home/cheetah/.rvm/gems/ruby-1.8.7-p302@tobiska/gems/rake-0.9.2.2/lib/rake/rdoctask.rb

I tried to read this tip http://matthew.mceachen.us/blog/howto-fix-rake-rdoctask-is-deprecated-use-rdoc-task-instead-1169.html but my Rakefile is OK.

I have no idea, how to solve this problem. Any tips? Thanks a lot.

Martin

like image 781
Martin Pešout Avatar asked Nov 03 '11 10:11

Martin Pešout


2 Answers

You can have multiple versions of rake on your system and you can view them by running

$ gem list
=> rake

(0.9.2.2, 0.9.2, 0.8.7) To define a version in my project, define it in the Gemfile as

gem 'rake', '0.8.7'

then run

bundle update rake

Your project version is now as specified in the Gemfile and your WARNING is now gone.

like image 141
Galuga Avatar answered Nov 15 '22 12:11

Galuga


In addition to change Gemfile and run 'bundle update rake' need run for me too:

gem uninstall rake -v 0.9.2.2
gem uninstall rake -v 0.9.2
gem install rake -v 0.8.7
like image 21
TatianaP Avatar answered Nov 15 '22 12:11

TatianaP