Issues with Windows XP & Ruby Mine
This is a long standing issue I have had in installing Ruby Mine - version 1.5 as well as earlier. I am running Windows XP with a pretty vanilla installation of Ruby located in c:\ruby. However, after installation of Ruby Mine it recognizes the Ruby SDK correctly but shows no gems installed. If I try to install a plugin the UI indicates success but there is no gem installed. If I look in the log there is the following error message:
Assertion failed: gem install internal error
sdk: Ruby SDK 1.8.6 (C:\Ruby\bin\ruby.exe)
dependency: GemDependency{myName='rails', myVersion='2.3.1', myBound=EQUAL, myUrl='http://gems.rubyonrails.org/'}
rootpath: file:///Ruby/lib/ruby/gems/1.8/gems
gems:
broken root
specs:
broken specs
rootpath: file:///Documents and Settings/Owner/.gem/ruby/1.8;C/gems
gems:
broken root
specs:
broken spec
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at org.jetbrains.plugins.ruby.gem.GemManager.getInstalledGems(GemManager.java:250)
at org.jetbrains.plugins.ruby.gem.GemInstallUtil$2$1$1.run(GemInstallUtil.java:15)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:193)
at org.jetbrains.plugins.ruby.gem.GemInstallUtil$2$1.run(GemInstallUtil.java:2)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:3)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:111)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:93)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:257)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
at java.awt.Dialog$1.run(Dialog.java:1051)
at java.awt.Dialog$3.run(Dialog.java:1103)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1101)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:88)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:117)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:935)
at com.intellij.openapi.progress.util.ProgressWindow$MyDialog.show(ProgressWindow.java:78)
at com.intellij.openapi.progress.util.ProgressWindow.showDialog(ProgressWindow.java:7)
at com.intellij.openapi.progress.util.ProgressWindow$1$1.run(ProgressWindow.java:6)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:232)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:3)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:111)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:93)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:257)
at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:99)
at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:107)
at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:264)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.a(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.run(ProgressManagerImpl.java:90)
at org.jetbrains.plugins.ruby.gem.GemInstallUtil.installGems(GemInstallUtil.java:81)
at org.jetbrains.plugins.ruby.gem.GemInstallUtil.installGemsDependencies(GemInstallUtil.java:61)
at org.jetbrains.plugins.ruby.gem.GemInstallUtil.installGems(GemInstallUtil.java:44)
at org.jetbrains.plugins.ruby.gem.ui.AddGemDialog$11.run(AddGemDialog.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:193)
at org.jetbrains.plugins.ruby.gem.ui.AddGemDialog.doOKAction(AddGemDialog.java:181)
at com.intellij.openapi.ui.DialogWrapper$OkAction.actionPerformed(DialogWrapper.java:1040)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6216)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5981)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:111)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:170)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:257)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
at java.awt.Dialog$1.run(Dialog.java:1051)
at java.awt.Dialog$3.run(Dialog.java:1103)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1101)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:88)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:117)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:935)
at org.jetbrains.plugins.ruby.gem.ui.GemManagerPanel.a(GemManagerPanel.java:141)
at org.jetbrains.plugins.ruby.gem.ui.GemManagerPanel.access$100(GemManagerPanel.java:219)
at org.jetbrains.plugins.ruby.gem.ui.GemManagerPanel$3.actionPerformed(GemManagerPanel.java:1)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6216)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5981)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:111)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:170)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:257)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
at java.awt.Dialog$1.run(Dialog.java:1051)
at java.awt.Dialog$3.run(Dialog.java:1103)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1101)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:88)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:117)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:935)
at com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.java:24)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:44)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:2)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:13)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:61)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:82)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:134)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:8)
at java.awt.Component.processMouseEvent(Component.java:6216)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5981)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:111)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:170)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:257)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Would love some insight as this has been driving me crazy!
- cheers
Mark
Please sign in to leave a comment.
Hi Mark,
Can you install gems manually?
Which SDK did you install? (OneclickInstaller or brand new RubyInstaller?)
I can install gems just fine from a command line. In fact I have had no problems at all from a command line - install is about 4 months old.
It was originally installed with Windows One-Click installer which I believe puts in Ruby 1.8.6. I have not yet tried the new Windoes installer.
I was able to trace this back and finally realized my IntelliJ Idea Rails plugin was also broken. It provided some more helpful error messages which led me to an isue with the HOME environment variable in Windows. Once I deleted this everything is now working. RubyMine goodness!