gma / tconsole

Testing console for Rails. Helps out with test performance and also makes it easier to run specific tests
177 stars 18 forks source link

uninitialized constant Rake::DSL #19

Closed dapi closed 12 years ago

dapi commented 12 years ago
> tconsole

Welcome to tconsole. Type 'help' for help or 'exit' to quit.

Loading Rails environment...
(in /home/danil/code/blogs)
rake aborted!
uninitialized constant Rake::DSL
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.9.2.2/lib/rake/tasklib.rb:8:in `<class:TaskLib>'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.9.2.2/lib/rake/tasklib.rb:6:in `<module:Rake>'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.9.2.2/lib/rake/tasklib.rb:3:in `<top (required)>'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.9.2.2/lib/rake/testtask.rb:4:in `<top (required)>'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/test_unit/testing.rake:2:in `<top (requi
red)>'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/test_unit/railtie.rb:12:in `block in <cl
ass:TestUnitRailtie>'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/railtie.rb:183:in `call'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/railtie.rb:183:in `block in load_tasks'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/railtie.rb:183:in `each'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/railtie.rb:183:in `load_tasks'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/engine.rb:396:in `block in load_tasks'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/application/railties.rb:8:in `each'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/application/railties.rb:8:in `all'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/engine.rb:396:in `load_tasks'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/application.rb:103:in `load_tasks'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/danil/code/blogs/Rakefile:11:in `<top (required)>'
/home/danil/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2373:in `load'
/home/danil/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'
/home/danil/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
/home/danil/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
/home/danil/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/tconsole-1.0.0/lib/tconsole/server.rb:18:in `block in load_environment'
/home/danil/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
/home/danil/.rvm/gems/ruby-1.9.2-p290@global/gems/tconsole-1.0.0/lib/tconsole/server.rb:10:in `load_environment'
/home/danil/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/drb/drb.rb:1558:in `perform_without_block'
/home/danil/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/drb/drb.rb:1518:in `perform'
/home/danil/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/drb/drb.rb:1592:in `block (2 levels) in main_loop'
/home/danil/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/drb/drb.rb:1588:in `loop'
/home/danil/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/drb/drb.rb:1588:in `block in main_loop'
Error: Loading your environment failed.
    exit
Run options: --seed 20382
cmer commented 12 years ago

+1

nalanj commented 12 years ago

Just a quick check - what happens if you run 'bundle exec tconsole'?

cmer commented 12 years ago

Did the trick for me! Initially I didn't add tconsole to my gemfile, I just did "gem install tconsole". Thanks!

nalanj commented 12 years ago

Awesome! I haven't ever run tconsole with bundle exec, but I usually don't have to run anything with bundle exec. I'm going to leave this open and hopefully figure out some tricky way to get tconsole to make sure everything's loaded correctly with bundler.

Thanks for trying out tconsole - let me know what you think of it!

batasrki commented 12 years ago

@commondream unless it's managed through the Gemfile, I'm not sure you can do much. Loading it through the Gemfile, for me at least, links the binary correctly.

nalanj commented 12 years ago

Cool - I won't worry about it then.