Debugger fails to install in Rubymine 2016.3.1 with Ruby 2.2.6
I just upgraded my Rubymine to 2016.3.1 and I can't get the debugger to work. I've looked at all of the available posts on this subject and the advice there doesn't seem to help. I can install debase and ruby-debug-ide just fine:
Alan-mbp2: ~/git_projects/constraints_theory +[master]
🚀 gem install ruby-debug-ide --pre
Fetching: ruby-debug-ide-0.6.1.beta4.gem (100%)
Building native extensions. This could take a while...
Successfully installed ruby-debug-ide-0.6.1.beta4
Parsing documentation for ruby-debug-ide-0.6.1.beta4
Installing ri documentation for ruby-debug-ide-0.6.1.beta4
Done installing documentation for ruby-debug-ide after 1 seconds
1 gem installed
Alan-mbp2: ~/git_projects/constraints_theory +[master]
🚀 gem install debase --pre
Fetching: debase-ruby_core_source-0.9.6.gem (100%)
Successfully installed debase-ruby_core_source-0.9.6
Fetching: debase-0.2.2.beta10.gem (100%)
Building native extensions. This could take a while...
Successfully installed debase-0.2.2.beta10
Parsing documentation for debase-ruby_core_source-0.9.6
Installing ri documentation for debase-ruby_core_source-0.9.6
Parsing documentation for debase-0.2.2.beta10
Installing ri documentation for debase-0.2.2.beta10
Done installing documentation for debase-ruby_core_source, debase after 18 seconds
2 gems installed
Alan-mbp2: ~/git_projects/constraints_theory +[master]
🚀 ruby -v
ruby 2.2.6p396 (2016-11-15 revision 56800) [x86_64-darwin15]
I've uninstalled all the debug gems and re-installed them and still can't get the debugger to install. Previously I was trying to do this on Ruby 2.2.4 with the same results. Then I upgraded to ruby 2.2.6 with the same results.
Here is the output from the log file when I attempt to install the debugger from the UI:
2017-02-11 16:27:45,963 [1250158] INFO - .ruby.ruby.run.RubyCommandLine - Executing [/Users/abaird/.rubies/ruby-2.2.6/bin/ruby -x /Users/abaird/.rubies/ruby-2.2.6/bin/gem --version], working dir =[/Users/abaird/.rubies/ruby-2.2.6/bin]
2017-02-11 16:27:47,494 [1251689] INFO - ails.preload.spring.SpringUtil - Moving Spring to /private/var/folders/4r/qv6l3srs4s3gzxln2j8xpx8h0000gn/T/RMSpring
2017-02-11 16:27:47,494 [1251689] INFO - .ruby.ruby.run.RubyCommandLine - Executing [/Users/abaird/.rubies/ruby-2.2.6/bin/ruby -x /Users/abaird/.rubies/ruby-2.2.6/bin/gem install debase-0.2.2.beta9.gem --no-rdoc --no-ri --user-install], working dir =[/Applications/RubyMine.app/Contents/rb/gems]
2017-02-11 16:27:54,205 [1258400] INFO - lugins.ruby.gem.GemInstallUtil - Installed gem: /Applications/RubyMine.app/Contents/rb/gems/debase-0.2.2.beta9.gem
2017-02-11 16:27:54,206 [1258401] INFO - ails.preload.spring.SpringUtil - Moving Spring to /private/var/folders/4r/qv6l3srs4s3gzxln2j8xpx8h0000gn/T/RMSpring
2017-02-11 16:27:54,206 [1258401] INFO - .ruby.ruby.run.RubyCommandLine - Executing [/Users/abaird/.rubies/ruby-2.2.6/bin/ruby -x /Users/abaird/.rubies/ruby-2.2.6/bin/gem --version], working dir =[/Users/abaird/.rubies/ruby-2.2.6/bin]
2017-02-11 16:27:54,532 [1258727] INFO - ails.preload.spring.SpringUtil - Moving Spring to /private/var/folders/4r/qv6l3srs4s3gzxln2j8xpx8h0000gn/T/RMSpring
2017-02-11 16:27:54,532 [1258727] INFO - .ruby.ruby.run.RubyCommandLine - Executing [/Users/abaird/.rubies/ruby-2.2.6/bin/ruby -x /Users/abaird/.rubies/ruby-2.2.6/bin/gem install ruby-debug-ide-0.6.1.beta3.gem --no-rdoc --no-ri --user-install], working dir =[/Applications/RubyMine.app/Contents/rb/gems]
2017-02-11 16:27:57,514 [1261709] INFO - lugins.ruby.gem.GemInstallUtil - Installed gem: /Applications/RubyMine.app/Contents/rb/gems/ruby-debug-ide-0.6.1.beta3.gem
2017-02-11 16:27:57,649 [1261844] INFO - tion.impl.ExecutionManagerImpl - Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist.
com.intellij.execution.ExecutionException: Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist.
at org.jetbrains.plugins.ruby.ruby.run.configuration.RubyAbstractCommandLineState$RubyDebugCommandLineDataBuilderBase.<init>(RubyAbstractCommandLineState.java:381)
at org.jetbrains.plugins.ruby.ruby.run.configuration.RubyAbstractCommandLineState.a(RubyAbstractCommandLineState.java:208)
at org.jetbrains.plugins.ruby.ruby.run.configuration.RubyAbstractCommandLineState.createDefaultCommandLine(RubyAbstractCommandLineState.java:172)
at org.jetbrains.plugins.ruby.testing.rspec.run.RSpecRunCommandLineState.createRunCommandLine(RSpecRunCommandLineState.java:78)
at org.jetbrains.plugins.ruby.ruby.run.configuration.RubyAbstractCommandLineState.createCommandLineAndProcessHandler(RubyAbstractCommandLineState.java:98)
at org.jetbrains.plugins.ruby.ruby.debugger.RubyDebugRunner$RubyDebugSessionBuilder.<init>(RubyDebugRunner.java:202)
at org.jetbrains.plugins.ruby.ruby.debugger.RubyDebugRunner.doExecute(RubyDebugRunner.java:65)
at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:43)
at com.intellij.execution.impl.ExecutionManagerImpl.a(ExecutionManagerImpl.java:381)
at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:91)
at com.intellij.openapi.application.TransactionGuardImpl.access$300(TransactionGuardImpl.java:41)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:116)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:126)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
at com.intellij.execution.impl.ExecutionManagerImpl.a(ExecutionManagerImpl.java:438)
at com.intellij.execution.impl.ExecutionManagerImpl.compileAndRun(ExecutionManagerImpl.java:293)
at com.intellij.execution.impl.ExecutionManagerImpl.startRunProfile(ExecutionManagerImpl.java:438)
at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:40)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:61)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:50)
at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:118)
at com.intellij.execution.impl.ExecutionManagerImpl.a(ExecutionManagerImpl.java:118)
at com.intellij.execution.impl.ExecutionManagerImpl.access$300(ExecutionManagerImpl.java:68)
at com.intellij.execution.impl.ExecutionManagerImpl$3.run(ExecutionManagerImpl.java:530)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:223)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:387)
at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:318)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:417)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:401)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:843)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:679)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2017-02-11 16:27:58,125 [1262320] INFO - ails.preload.spring.SpringUtil - Moving Spring to /private/var/folders/4r/qv6l3srs4s3gzxln2j8xpx8h0000gn/T/RMSpring
2017-02-11 16:27:58,125 [1262320] INFO - .ruby.ruby.run.RubyCommandLine - Executing [/Users/abaird/.rubies/ruby-2.2.6/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/abaird/.gem/ruby/2.1.2/bin/bundle check], working dir =[/Users/abaird/git_projects/constraints_theory]
I'm running the following version of Rubymine:
RubyMine 2016.3.1
Build #RM-163.9166.34, built on December 15, 2016
JRE: 1.8.0_112-release-408-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
请先登录再写评论。
Hello Alan,
could you please check how it goes in RubyMine 2017.1 EAP in case you start debugging. In addition, please check that those gems are listed in Settings | Ruby SDKs and Gems.