Ruby debugger fails to install

This is using the Ruby plugin (v7.1.0.20150501) in IntelliJ (14.1.13). Things were working fine before I updated from 14.1.2 and a previous 7+ version of the plugin. My project uses JRuby 1.7.19, though I've since updated to JRuby 1.7.20 to see if that made a difference. It did not. Now when I tell it to install the latest debugger gem, I end up getting this error every time:

com.intellij.execution.ExecutionException: Failed to Install Gems. Following gems were not installed:
/Users/jecarnes/Library/Application Support/IntelliJIdea14/ruby/rb/gems/ruby-debug-ide-0.4.30.gem:  While executing gem ... (TypeError)
     can't convert nil into String

 at org.jetbrains.plugins.ruby.ruby.run.configuration.debugger.RubyDebugIdeGemHelper.getOrInstallDebugIdeGem(RubyDebugIdeGemHelper.java:312)
 at org.jetbrains.plugins.ruby.ruby.run.configuration.debugger.RubyDebugIdeGemHelper.getOrInstallDebugGem(RubyDebugIdeGemHelper.java:135)
 at org.jetbrains.plugins.ruby.ruby.run.configuration.RubyAbstractCommandLineState.selectDebugGemHelper(RubyAbstractCommandLineState.java:290)
 at org.jetbrains.plugins.ruby.ruby.run.configuration.RubyAbstractCommandLineState.createDefaultDebugCommandLine(RubyAbstractCommandLineState.java:206)
 at org.jetbrains.plugins.ruby.ruby.run.configuration.RubyAbstractCommandLineState.createDefaultCommandLine(RubyAbstractCommandLineState.java:168)
 at org.jetbrains.plugins.ruby.testing.testunit.runConfigurations.RTestUnitRunCommandLineState.createRunCommandLine(RTestUnitRunCommandLineState.java:65)
 at org.jetbrains.plugins.ruby.ruby.run.configuration.RubyAbstractCommandLineState.createCommandLineAndProcessHandler(RubyAbstractCommandLineState.java:95)
 at org.jetbrains.plugins.ruby.ruby.debugger.RubyDebugRunner.doExecute(RubyDebugRunner.java:77)
 at com.intellij.execution.runners.GenericProgramRunner.doExecute(GenericProgramRunner.java:50)
 at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:43)
 at com.intellij.execution.RunProfileStarter.execute(RunProfileStarter.java:39)
 at com.intellij.execution.impl.ExecutionManagerImpl$3.run(ExecutionManagerImpl.java:219)
 at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:146)
 at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:186)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
 at java.awt.EventQueue.access$400(EventQueue.java:82)
 at java.awt.EventQueue$2.run(EventQueue.java:676)
 at java.awt.EventQueue$2.run(EventQueue.java:674)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
 at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:734)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


Let me know what other info I can provide that would be of help.

- Jeff

6 comments
Comment actions Permalink

Are you able to install ruby-debug-ide from command line?

Regards, Oleg.

0
Comment actions Permalink

`gem install ruby-debug-ide -v 0.4.30` worked from the command-line against JRuby 1.7.20. Though IntelliJ doesn't see that gem when I try to debug.

0
Comment actions Permalink

Hi,

I've just tried to debug something with 1.7.20 and everything works fine :(
Could you please double-check that the project uses the same sdk/gemset as you used to install ruby-debug-ide.

Also I'd suggest to create a new gemset (if you use rvm) or new sdk and use it for the project to check if the problem reproducible for you with clean sdk/gemset

Regards, Oleg.

0
Comment actions Permalink

Aha! It looks like I had manually overridden the SDK in my run configuration to be 1.7.19 for some reason (as opposed to the project SDK). So when I was using 1.7.20, when I went to debug it was still using 1.7.19. So with 1.7.20, I don't have this problem. If I switch back to 1.7.19, however, I still see this issue. As mentioned, before I upgraded IntelliJ and the Ruby plugin last week, JRuby 1.7.19 was working just fine, including that day. Immediately after updating is when I started seeing this issue.

0
Comment actions Permalink

Ok, so are you able to manually install ruby-debug-ide to the sdk?

Regards, Oleg.

0
Comment actions Permalink

Confirmed. By simply doing `gem install ruby-debug-ide 0.4.30` in my VM under the correct Ruby (I'm using rbenv) the SDK would pick it up.

I also found out, however, that simply saying "no" to updating to the latest ruby-debug-ide also worked - it just used 0.4.28 and went about its business. Of course if someone happens to be debugging in IntelliJ/RubyMine for the first time under JRuby 1.7.19, saying "no" would mean no debugging for you. In that situation you would have to do a manual install.

Thanks for the help!

0

Please sign in to leave a comment.