Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
uninitialized constant when running rake #1598
In my project, any rake invocation (eg. "rake -T --trace") yields the error below.
This does not happen in a fresh app. Here is my Gemfile.lock: https://gist.github.com/1016634
@vijaydev Thanks, but not really :)
I was just looking into this a bit more. It turns out that require 'rdoc/rdoc' fails on 1.8.7. And this is exactly what happens in railties-3.0.9.rc1/lib/rails/tasks/documentation.rake:4 (changed since 3.0.8).
It's very easy to reproduce:
In 3.0.9, the top of documentation.rake has changed from this:
And as I said in my previous comment, require 'rdoc/rdoc' fails on MRI/REE 1.8.7.
I'm sure there's reason for this change, but simply reverting it allows me to run rake again. I wonder what breaks?
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I found out that adding ruby-debug to the Gemfile reproduces this error.
This is why updating rdoc via RubyGems actually solved @chopmo's problem.
So, what should we do next? Here are some solutions:
@amatsuda For some reason I had completely missed the connection to ruby-debug, my bad :( Anyway, if 3. is acceptable, I definitely agree that this is the cleanest solution. BTW I'm surprised that this hasn't turned up before somewhere in Rails...
@vijaydev Sorry, your links would have been very helpful if I had checked them more thoroughly!