Issue when setting jruby as the sdk
Whenever I set jruby as the ruby sdk it loads fine, but whenever I click outside of the ide I get the following popup error:
Could not save application settings: The data " ruby 1.8.5 (2007-11-01 rev 2842)[x86-jruby1.1b1] " is not legal for a JDOM attribute: 0xc is not a legal XML character.
It is quite annoying...any ideas on how to get around this?
请先登录再写评论。
Hi, Brian!
Where do you set jruby sdk as sdk? In Run configuration settings or in JRuby facet settings pane?
Hi, Brian!
Which IDEA build do you use?
Please try to recreate JRuby SDK with name "ruby 1.8.5 (2007-11-01 rev 2842)[x86-jruby1.1b1]".
(Remove this SDK from JDKs table, press Apply button, then create new SDK and press Apply button again)
Still getting the same issues using IntelliJ 7.02 and the latest Ruby plugin:
Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(751,826),absolute(867,901),button=1,modifiers=Button1,clickCount=1] on dialog4: The data "JRuby SDK 1.8.5" is not legal for a JDOM attribute: 0xc is not a legal XML character.
org.jdom.IllegalDataException: The data "JRuby SDK 1.8.5" is not legal for a JDOM attribute: 0xc is not a legal XML character.
at org.jdom.Attribute.setValue(Attribute.java:486)
at org.jdom.Attribute.(Attribute.java:229) at org.jdom.Attribute.(Attribute.java:252) at org.jdom.Element.setAttribute(Element.java:1120) at org.jetbrains.plugins.ruby.settings.SettingsExternalizer.writeOption(SettingsExternalizer.java:127) at org.jetbrains.plugins.ruby.jruby.facet.JRubyFacetExternalizer.writeExternal(JRubyFacetExternalizer.java:39) at org.jetbrains.plugins.ruby.jruby.facet.JRubyFacetConfiguration.writeExternal(JRubyFacetConfiguration.java:65) at com.intellij.facet.FacetManagerImpl.writeExternal(FacetManagerImpl.java:75) at com.intellij.openapi.components.impl.stores.DefaultStateSerializer.serializeState(DefaultStateSerializer.java:11) at com.intellij.openapi.components.impl.stores.XmlElementStorage$MyExternalizationSession.setState(XmlElementStorage.java:10) at com.intellij.openapi.components.impl.stores.StateStorageManagerImpl$MyExternalizationSession.setStateInOldStorage(StateStorageManagerImpl.java:9) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:16) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$600(ComponentStoreImpl.java:13) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.commit(ComponentStoreImpl.java:5) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:72) at com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSaveSession.]]>(ProjectStoreImpl.java:23)
at com.intellij.openapi.components.impl.stores.ProjectStoreImpl.createSaveSession(ProjectStoreImpl.java:134)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:116)
at com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(ComponentManagerImpl.java:177)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:15)
at com.intellij.openapi.application.impl.ApplicationImpl.saveAll(ApplicationImpl.java:281)
at com.intellij.openapi.roots.ui.configuration.ModulesConfigurator.apply(ModulesConfigurator.java:134)
at com.intellij.openapi.roots.ui.configuration.projectRoot.ModuleStructureConfigurable.apply(ModuleStructureConfigurable.java:192)
at com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.apply(ProjectStructureConfigurable.java:176)
at com.intellij.openapi.options.ex.SingleConfigurableEditor.doOKAction(SingleConfigurableEditor.java:46)
at com.intellij.openapi.ui.DialogWrapper$OkAction.actionPerformed(DialogWrapper.java:920)
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:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:10)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:188)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1039)
at java.awt.Dialog$3.run(Dialog.java:1091)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1089)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:81)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:1)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:812)
at com.intellij.ide.actions.ShowSettingsUtilImpl.editConfigurable(ShowSettingsUtilImpl.java:20)
at com.intellij.openapi.roots.ui.configuration.ModulesConfigurator.showDialog(ModulesConfigurator.java:77)
at com.intellij.ide.actions.ShowModulePropertiesAction.actionPerformed(ShowModulePropertiesAction.java:7)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:5)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:39)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:139)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:29)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:2)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:10)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:188)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)