New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uninitialized constant when running rake #1598
Comments
@tenderlove do you mind have a look? |
@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:
to 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? |
Rake 0.9 deprecated rake/rdoctask and replaced with rdoc/task. What's your rake version? Does it work in 1.9.2 with the same rake version as you used in 1.8.7 ? |
My rake version is 0.9.2. And yes, it does work in 1.9.2, maybe because require 'rdoc/rdoc' works on that ruby version. Thanks for helping! |
Ah, I didn't have the rdoc gem installed! So I was using the ancient rdoc
that is part of 1.8.7. Installing the gem fixed this.
So I guess this means that 3.0.9 introduces a dependency to rdoc?
|
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:
Thoughts? |
@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! |
It seems that if we're going to ship a task to build documentation using RDoc, we should add the proper dependency. |
This issue should be fixed now, if not please add a comment and I will take another look |
* 3-0-stable: Add support for using an ARCONFIG environment variable to specify the location of the config.yml file for running the tests Define ActiveSupport#to_param as to_str - closes #1663 Revert "Make sure that we don't perform in-place mutation on SafeBuffer string" Make sure that we don't perform in-place mutation on SafeBuffer string Update CHANGELOG to mention the json_escape change Ensure number helpers can handle HTML safe strings - closes #1597. ensuring that json_escape returns html safe strings when passed an html safe string Fix issue #1598 by adding a dependency to the RDoc gem. Make sure `escape_javascript` return `SafeBuffer` if the incoming argument is already html_safe Conflicts: actionpack/CHANGELOG
* 3-0-9: Preparing for 3.0.9 release avoid false positives caused by release candidates Preparing for 3.0.9.rc5 release bumping to rc4 Make sure that we don't perform in-place mutation on SafeBuffer string Update CHANGELOG to mention the json_escape change Ensure number helpers can handle HTML safe strings - closes #1597. bumping to rc3 since syck is not playing nicely bumping to 3.0.9.rc2 ensuring that json_escape returns html safe strings when passed an html safe string Make sure `escape_javascript` return `SafeBuffer` if the incoming argument is already html_safe Fix issue #1598 by adding a dependency to the RDoc gem. bumping to 3.0.9.rc1
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
I'm not sure what other info to provide?
The text was updated successfully, but these errors were encountered: