Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Undefined Rake::DSL in railtie documentation #4318

Closed
wants to merge 1 commit into from

4 participants

@threez

The raised exception:

$ bundle exec rake db:seed --trace
(in /Users/threez/Development/demail-ident/frontend)
rake aborted!
uninitialized constant Rake::DSL
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/railties-3.2.0.rc2/lib/rails/tasks/documentation.rake:11:in `RDocTaskWithoutDescriptions'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/railties-3.2.0.rc2/lib/rails/tasks/documentation.rake:10:in `(root)'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/railties-3.2.0.rc2/lib/rails/tasks/documentation.rake:245:in `load'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/railties-3.2.0.rc2/lib/rails/tasks/documentation.rake:245:in `load'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/railties-3.2.0.rc2/lib/rails/tasks.rb:15:in `(root)'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/railties-3.2.0.rc2/lib/rails/tasks.rb:5:in `each'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/railties-3.2.0.rc2/lib/rails/tasks.rb:5:in `(root)'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/railties-3.2.0.rc2/lib/rails/tasks.rb:6:in `(root)'
/Users/threez/Development/project/frontend/Rakefile:2383:in `load'
/Users/threez/Development/project/frontend/Rakefile:2383:in `raw_load_rakefile'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/rake-0.8.7/bin/rake:31:in `(root)'
/Users/threez/.rvm/gems/jruby-1.6.5@project/bin/rake:19:in `load'
/Users/threez/.rvm/gems/jruby-1.6.5@project/bin/rake:19:in `(root)'
@jeremy
Owner

What version of rake do you have bundled? bundle show rake

@threez

/Users/threez/.rvm/gems/jruby-1.6.5@project/gems/rake-0.8.7

@arunagw
Collaborator

I think after upgrading of your rake version this problem will solve.

Please let us know if that works for you so this issue can be closed.

@arunagw
Collaborator

Not be able to reproduce this with JRuby 1.6.7 and rails 3.2.2

Please reopen this if issue still exists for you.

Cheers!

@arunagw arunagw closed this
@joevandyk

I don't think this should be closed. I get this error when using rake 0.8.7 with jruby 1.6.7 on rails 3.2.3. If Rails depends on rake >= 0.9, that needs to be in the gemspec.

@joevandyk

New pull request here: #5919

@arunagw
Collaborator

ok thanks for PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 5, 2012
  1. @threez

    When i do rake db:seed with rails 3.2.0.rc2 the Rake::DSL is undefine…

    threez authored
    …d. Just don't include it then.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/tasks/documentation.rake
View
2  railties/lib/rails/tasks/documentation.rake
@@ -8,7 +8,7 @@ end
# Monkey-patch to remove redoc'ing and clobber descriptions to cut down on rake -T noise
class RDocTaskWithoutDescriptions < RDoc::Task
- include ::Rake::DSL
+ include ::Rake::DSL if defined? ::Rake::DSL
def define
task rdoc_task_name
Something went wrong with that request. Please try again.