我试图在rubymine中调试rake任务。我为此任务创建了调试配置。 Ruby SDK我选择了项目SDK。当我尝试运行时,我得到了:
Gem::LoadError: You have already activated rake 10.2.2, but your Gemfile requires rake 10.1.1. Prepending `bundle exec` to your command may solve this.
/home/arkency/RubyProject/trainer/config/boot.rb:6:in `<top (required)>'
/home/arkency/RubyProject/trainer/config/application.rb:1:in `<top (required)>'
/home/arkency/RubyProject/trainer/Rakefile:5:in `<top (required)>'
/home/tomek/.gem/ruby/1.9.1/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:86:in `debug_load'
/home/tomek/.gem/ruby/1.9.1/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:86:in `debug_program'
/home/tomek/.gem/ruby/1.9.1/gems/ruby-debug-ide-0.4.22/bin/rdebug-ide:110:in `<top (required)>'
当我从终端运行任务时,一切正常。我不知道rubymine从哪里拿到这个rake宝石。怎么检查?如何改变使用合适的宝石?谢谢你的所有答案。
答案 0 :(得分:4)
点击Run =&gt; Debug =&gt;编辑配置,选择Bundler选项卡并检查Run the script in context of the bundle