问题描述
我使用rubyMine,想要运行调试器,但是错误这个,我和waht需要做什么? /home/ivan/.rbenv/versions/2.3.1/bin/ruby -e $ stdout.sync = true; $ stderr.sync = true; load($ 0 = ARGV.shift)/ home / ivan /主机/课程/课程8 / bin / rake spec
测试开始于20:27 ...
/home/ivan/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0 /gems/bundler-1.12.4/lib/bundler/spec_set.rb:95:in`block in materialize':在任何源中找不到rake-11.3.0(Bundler :: GemNotFound)
另外我有 ruby-2.3.3
ruby -v
ruby 2.3.3p222(2016-11-21修订版56859)[x86_64-linux]
但我也有rvm
rvm env
export PATH =/ home / ivan / .rvm / gems / ruby-2.3.3 / bin:/home/ivan/.rvm/gems/ruby-2.3.3@global/bin: /home/ivan/.rvm/rubies/ruby-2.3.3/bin:$PATH
export GEM_HOME ='/ home / ivan / .rvm / gems / ruby-2.3.3'
export GEM_PATH ='/ home / ivan / .rvm / gems / ruby-2.3.3:/home/ivan/.rvm/gems/ruby-2.3.3@global'
export MY_RUBY_HOME ='/ home / ivan / .rvm / rubies / ruby-2.3.3'
export IRBRC ='/ home / ivan / .rvm / rubies / ruby-2.3.3 / .irbrc'
unset MAGLEV_HOME
unset RBXOPT
export RUBY_VERSION ='ruby-2.3.3 '
我做错了什么?
如何在Ruby Mine中更正配置调试器?
我怀疑你指向错误的SDK和宝石。
打开Rubymine首选项 - >语言&框架 - > Ruby SDK和Gems
选择正确的RVM gemset,然后在该面板下面直接点击绿色的勾号并应用更改。
顺便说一下,将以下内容添加到您的Gemfile中,运行 bundle install
,以便从rubyMine调试支持 -
group:development,:test do
gem'debase'
gem'ruby-debug-ide'
end
I used rubyMine and want to run debugger but have error what this ,mine and waht need to doing ? screen
/home/ivan/.rbenv/versions/2.3.1/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/ivan/host/courses/lesson8/bin/rake spec
Testing started at 20:27 ...
/home/ivan/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.4/lib/bundler/spec_set.rb:95:in `block in materialize': Could not find rake-11.3.0 in any of the sources (Bundler::GemNotFound)
Also I have ruby-2.3.3
ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
but I have rvm too
rvm env
export PATH="/home/ivan/.rvm/gems/ruby-2.3.3/bin:/home/ivan/.rvm/gems/ruby-2.3.3@global/bin:/home/ivan/.rvm/rubies/ruby-2.3.3/bin:$PATH"
export GEM_HOME='/home/ivan/.rvm/gems/ruby-2.3.3'
export GEM_PATH='/home/ivan/.rvm/gems/ruby-2.3.3:/home/ivan/.rvm/gems/ruby-2.3.3@global'
export MY_RUBY_HOME='/home/ivan/.rvm/rubies/ruby-2.3.3'
export IRBRC='/home/ivan/.rvm/rubies/ruby-2.3.3/.irbrc'
unset MAGLEV_HOME
unset RBXOPT
export RUBY_VERSION='ruby-2.3.3'
What I'm doing wrong ?How to correct config debugger in Ruby Mine ?
I suspect that you are pointing to the wrong SDK and gems.
Open Rubymine Preferences -> Language & Frameworks -> Ruby SDK and Gems
Select the correct RVM gemset, then press the green tick directly below that panel and apply your changes.
Incidentally, add the following to your Gemfile and run bundle install
, for debugging support from rubyMine -
group :development, :test do
gem 'debase'
gem 'ruby-debug-ide'
end
这篇关于RubyMine调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!