RubyMine调试器错误被锁定为rake

时间:2016-12-24 08:32:24

标签: ruby-on-rails ruby rubymine

当我启动调试器时出现错误并且不明白需要做什么来解决此问题

Fast Debugger (ruby-debug-ide 0.6.0, debase 0.2.1, file filtering is supported) listens on 0.0.0.0:51898
Uncaught exception: Your bundle is locked to rake (12.0.0), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of rake (12.0.0) has removed it. You'll need to update your bundle to a different version of rake (12.0.0) that hasn't been removed in order to install.

为什么bunble被锁定?我运行捆绑更新,但没有帮助

我转到run - > edit configurate转到按钮bundler和clik run the script in context of the bundle

在我的测试文件

运行shift + F9时仍然有错误
/home/ivan/.rvm/rubies/ruby-2.3.3/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/ivan/.rvm/gems/ruby-2.3.3/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --rubymine-protocol-extensions --port 52425 --host 0.0.0.0 --dispatcher-port 53157 -- /home/ivan/host/courses/lesson8/bin/rails test
Testing started at 10:57 ...
/home/ivan/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/definition.rb:179:in `rescue in specs': Your bundle is locked to sprockets (3.7.1), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of sprockets (3.7.1) has removed it. You'll need to update your bundle to a different version of sprockets (3.7.1) that hasn't been removed in order to install. (Bundler::GemNotFound)
from /home/ivan/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/definition.rb:173:in `specs'
from /home/ivan/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/definition.rb:233:in `specs_for'
from /home/ivan/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/definition.rb:222:in `requested_specs'
from /home/ivan/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/runtime.rb:118:in `block in definition_method'
from /home/ivan/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/runtime.rb:19:in `setup'
from /home/ivan/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler.rb:99:in `setup'
from /home/ivan/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.6/lib/bundler/setup.rb:20:in `<top (required)>'
from /home/ivan/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/ivan/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'

使用退出代码1完成处理

看起来小不同不像previus错误,但我仍然不能调试 什么我的 - 你的捆绑被锁定到链轮(3.7.1)?

我重新启动RubyMine但仍有错误,请查看screen_error

1 个答案:

答案 0 :(得分:0)

打开Rubymine首选项 - &gt;语言与框架 - &gt; Ruby SDK和Gems

选择正确的RVM gemset,然后按下该面板正下方的绿色勾号并应用更改。

顺便提一下,将以下内容添加到您的Gemfile并运行bundle install,以便从rubyMine调试支持 -

group :development, :test do
  gem 'debase'
  gem 'ruby-debug-ide'
end