depassion
asked on
RDoc uninitialized constant error rails 2.3.12
still troubleshooting:
[21:51:46]kevin[ndthub]$ rake -T
rake aborted!
uninitialized constant RDoc
*** LOCAL GEMS ***
actionmailer (2.3.12, 2.3.11)
actionpack (2.3.12, 2.3.11)
activerecord (2.3.12, 2.3.11)
activeresource (2.3.12, 2.3.11)
activesupport (2.3.12, 2.3.11)
babosa (0.3.5)
builder (3.0.0)
bundler (1.0.18)
hoptoad_notifier (2.4.11)
multi_json (1.0.3)
rack (1.1.2)
rails (2.3.12, 2.3.11)
rake (0.9.2, 0.9.0)
rdoc (3.9.4, 2.5.11, 2.4.3)
rdoc-data (2.5.3)
sqlite3 (1.3.4)
[21:54:01]kevin[ndthub]$ rvm gemset list
gemsets for ruby-1.8.7-p352 (found in /Users/kevin/.rvm/gems/rub y-1.8.7-p3 52)
global
=> rails2
[21:51:46]kevin[ndthub]$ rake -T
rake aborted!
uninitialized constant RDoc
*** LOCAL GEMS ***
actionmailer (2.3.12, 2.3.11)
actionpack (2.3.12, 2.3.11)
activerecord (2.3.12, 2.3.11)
activeresource (2.3.12, 2.3.11)
activesupport (2.3.12, 2.3.11)
babosa (0.3.5)
builder (3.0.0)
bundler (1.0.18)
hoptoad_notifier (2.4.11)
multi_json (1.0.3)
rack (1.1.2)
rails (2.3.12, 2.3.11)
rake (0.9.2, 0.9.0)
rdoc (3.9.4, 2.5.11, 2.4.3)
rdoc-data (2.5.3)
sqlite3 (1.3.4)
[21:54:01]kevin[ndthub]$ rvm gemset list
gemsets for ruby-1.8.7-p352 (found in /Users/kevin/.rvm/gems/rub
global
=> rails2
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
21:36:56]kevin[ndthub]$ rake --trace
rake aborted!
uninitialized constant RDoc
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/ext/m odule.rb:3 6:in `const_missing'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@rails2/ gems/rails -2.3.12/li b/tasks/do cumentatio n.rake:3
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/task_ manager.rb :207:in `in_namespace'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/dsl_d efinition. rb:95:in `namespace'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@rails2/ gems/rails -2.3.12/li b/tasks/do cumentatio n.rake:1
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@rails2/ gems/rails -2.3.12/li b/tasks/ra ils.rb:4:i n `load'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@rails2/ gems/rails -2.3.12/li b/tasks/ra ils.rb:4
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@rails2/ gems/rails -2.3.12/li b/tasks/ra ils.rb:4:i n `each'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@rails2/ gems/rails -2.3.12/li b/tasks/ra ils.rb:4
/Users/kevin/projects/ndth ub/Rakefil e:8:in `require'
/Users/kevin/projects/ndth ub/Rakefil e:8
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/rake_ module.rb: 25:in `load'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/rake_ module.rb: 25:in `load_rakefile'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/appli cation.rb: 495:in `raw_load_rakefile'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/appli cation.rb: 78:in `load_rakefile'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/appli cation.rb: 129:in `standard_exception_handli ng'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/appli cation.rb: 77:in `load_rakefile'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/appli cation.rb: 61:in `run'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/appli cation.rb: 129:in `standard_exception_handli ng'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/lib/ rake/appli cation.rb: 59:in `run'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@global/ gems/rake- 0.9.2/bin/ rake:32
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@rails2/ bin/rake:1 9:in `load'
/Users/kevin/.rvm/gems/rub y-1.8.7-p3 52@rails2/ bin/rake:1 9
rake aborted!
uninitialized constant RDoc
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/projects/ndth
/Users/kevin/projects/ndth
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
/Users/kevin/.rvm/gems/rub
OK; check out the comments on this post
http://weblog.rubyonrails.org/2011/6/8/ann-rails-2-3-12-has-been-released
It mentions some changes to your rakefile.
There's also this suggestion:
"It [dependency on the rdoc gem] is a shadow dependency that breaks functionality out of the box. Since it isn't required by core rails but only in the Rakefiles, I got away with "gem 'rdoc', :require => nil" in my Gemfile."
in this commit (https://github.com/rails/rails/commit/79aa54d0c781ea518e09d62c48e70d2d5619fe33) which is apparently the one that caused the breakage.
If that doesn't work, you might consider falling back to 2.3.11... or even upgrading to 3.0.x? (I'm still not on Rails 3.1 as it has a major change in asset (javascript, css, ...) handling)
http://weblog.rubyonrails.org/2011/6/8/ann-rails-2-3-12-has-been-released
It mentions some changes to your rakefile.
There's also this suggestion:
"It [dependency on the rdoc gem] is a shadow dependency that breaks functionality out of the box. Since it isn't required by core rails but only in the Rakefiles, I got away with "gem 'rdoc', :require => nil" in my Gemfile."
in this commit (https://github.com/rails/rails/commit/79aa54d0c781ea518e09d62c48e70d2d5619fe33) which is apparently the one that caused the breakage.
If that doesn't work, you might consider falling back to 2.3.11... or even upgrading to 3.0.x? (I'm still not on Rails 3.1 as it has a major change in asset (javascript, css, ...) handling)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
combination of advice on different sites
I also noticed that Rails 2.3.14 was released recently
http://weblog.rubyonrails.org/2011/8/16/ann-rails-2-3-14
and I see that it mentions a fix for "RDoc task errors" which might apply in your case.
http://weblog.rubyonrails.org/2011/8/16/ann-rails-2-3-14
and I see that it mentions a fix for "RDoc task errors" which might apply in your case.
ASKER
#Gemfile
gem "rails", "2.3.12"
gem "rdoc"
gem "rake", "0.8.7"
#Rakefile
require 'rake'
require 'rake/testtask'
require 'tasks/rails'
require 'rdoc/task'