Run configurations is broken
All,
I'm using 13.1.4 and this is a relatively new problem.
I rely heavily on control-shift-f10 to run main methods and unit tests but it has stopped working. When I first open a project, that key combination triggers make, but the test of method doesn't actually run. There are no error messages that I can see. I can right-click and choose Run and get the same behavior. In either case, a "null" Ant configuration is added to my run config menu. If I choose "Edit Configurations..." the window that pops us isn't displayed correctly at all. In fact, it's mostly blank. If I click various palces in the window, some buttons,etc will appear, but they don't necessarily work. I cannot delete the null configuration, however. If I restart the project, the bad config will be gone (even if I explicitly save it,) but it will just reappear if I try to run again. After restarting, instead I can manually create a run config that will work, but obviously that's a lot harder than control-shift-f10. Even this config will be deleted if I accidentally save the null config.
Here's a summary:
- control-shift-f10 only makes, it doesn't run
- control-shift-f10 creates a "null" run configuration that connot be saved or edited and blows away any other run config
- the "null" configuration renders the "edit config" dialog nearly unusable (see attachment)
- Manually-created run config cam be saved but they will be deleted if I run control-shift-f10
thanks
john
请先登录再写评论。
FWIW, I tried blowing away my IWS file and got the same behavior.
Very unusual. Have you looked in the IDEA log file (Help > Show Log) to see if there is anything in there? My next recommendation would be to disable all third-party (i.e. non-bundled) plug-ins & restart. See if that resolves the issue. I think some plug-ins experienced some hiccups between IDEA 13.1.3 and 13.1.4. So that may be causing an issue with a previously behaving plug-in. Or it could just be a problematic plug-in.
Thanks for the suggestion.
Disabling the Ant Debugger plugin seemed to fix the problem (http://plugins.jetbrains.com/plugin/7195.) No idea why it's involved because I'm not using Ant on this project.
BTW, this was in the log with the plugin enabled and the project already opened:
2014-08-05 12:12:29,915 [ 158154] INFO - .stores.DefaultStateSerializer - Unable to serialize component state!
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.
at org.jdom.Attribute.setValue(Attribute.java:491)
at org.jdom.Attribute.<init>(Attribute.java:228)
at org.jdom.Attribute.<init>(Attribute.java:251)
at org.jdom.Element.setAttribute(Element.java:1160)
at com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl.writeExternal(RunnerAndConfigurationSettingsImpl.java:279)
at com.intellij.execution.impl.RunManagerImpl.a(RunManagerImpl.java:606)
at com.intellij.execution.impl.RunManagerImpl.writeContext(RunManagerImpl.java:589)
at com.intellij.execution.impl.RunManagerImpl.writeExternal(RunManagerImpl.java:537)
at com.intellij.openapi.components.impl.stores.DefaultStateSerializer.serializeState(DefaultStateSerializer.java:52)
at com.intellij.openapi.components.impl.stores.XmlElementStorage$MyExternalizationSession.setState(XmlElementStorage.java:272)
at com.intellij.openapi.components.impl.stores.StateStorageManagerImpl$MyExternalizationSession.setStateInOldStorage(StateStorageManagerImpl.java:419)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.commit(ComponentStoreImpl.java:451)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:105)
at com.intellij.openapi.components.impl.stores.StoreUtil.doSave(StoreUtil.java:30)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:354)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:663)
at com.intellij.compiler.impl.CompileDriver.make(CompileDriver.java:221)
at com.intellij.compiler.CompilerManagerImpl.make(CompilerManagerImpl.java:286)
at com.intellij.compiler.options.CompileStepBeforeRun$2.run(CompileStepBeforeRun.java:155)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
2014-08-05 12:12:29,987 [ 158226] INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2014-08-05 12:12:30,565 [ 158804] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: /C:/Program Files (x86)/JetBrains/IntelliJ IDEA 13.1.1/lib/jps-launcher.jar;C:/projects/java7/lib/tools.jar;/C:/Program Files (x86)/JetBrains/IntelliJ IDEA 13.1.1/lib/optimizedFileManager.jar;/C:/Program Files (x86)/JetBrains/IntelliJ IDEA 13.1.1/lib/ecj-4.3.2.jar
2014-08-05 12:12:38,183 [ 166422] INFO - lij.compiler.impl.CompilerUtil - COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 0 took 8186 ms: 0 min 8sec
2014-08-05 12:12:38,203 [ 166442] ERROR - llij.ide.plugins.PluginManager - Argument 2 for @NotNull parameter of com/intellij/execution/ui/layout/impl/RunnerLayoutUiFactoryImpl.create must not be null
java.lang.IllegalArgumentException: Argument 2 for @NotNull parameter of com/intellij/execution/ui/layout/impl/RunnerLayoutUiFactoryImpl.create must not be null
at com.intellij.execution.ui.layout.impl.RunnerLayoutUiFactoryImpl.create(RunnerLayoutUiFactoryImpl.java)
at com.intellij.execution.runners.RunContentBuilder.a(RunContentBuilder.java:156)
at com.intellij.execution.runners.RunContentBuilder.showRunContent(RunContentBuilder.java:273)
at com.intellij.execution.impl.DefaultJavaProgramRunner.doExecute(DefaultJavaProgramRunner.java:108)
at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:48)
at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:208)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:95)
at com.intellij.execution.impl.ExecutionManagerImpl$1$1.run(ExecutionManagerImpl.java:172)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
2014-08-05 12:12:38,204 [ 166443] ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 13.1.4 Build #IU-135.1230
2014-08-05 12:12:38,204 [ 166443] ERROR - llij.ide.plugins.PluginManager - JDK: 1.7.0_40
2014-08-05 12:12:38,204 [ 166443] ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) Server VM
2014-08-05 12:12:38,204 [ 166443] ERROR - llij.ide.plugins.PluginManager - Vendor: Oracle Corporation
2014-08-05 12:12:38,204 [ 166443] ERROR - llij.ide.plugins.PluginManager - OS: Windows 7
2014-08-05 12:12:38,204 [ 166443] ERROR - llij.ide.plugins.PluginManager - Last Action: RunClass
2014-08-05 12:12:40,268 [ 168507] INFO - .stores.DefaultStateSerializer - Unable to serialize component state!
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.
at org.jdom.Attribute.setValue(Attribute.java:491)
at org.jdom.Attribute.<init>(Attribute.java:228)
at org.jdom.Attribute.<init>(Attribute.java:251)
at org.jdom.Element.setAttribute(Element.java:1160)
at com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl.writeExternal(RunnerAndConfigurationSettingsImpl.java:279)
at com.intellij.execution.impl.RunManagerImpl.a(RunManagerImpl.java:606)
at com.intellij.execution.impl.RunManagerImpl.writeContext(RunManagerImpl.java:589)
at com.intellij.execution.impl.RunManagerImpl.writeExternal(RunManagerImpl.java:537)
at com.intellij.openapi.components.impl.stores.DefaultStateSerializer.serializeState(DefaultStateSerializer.java:52)
at com.intellij.openapi.components.impl.stores.XmlElementStorage$MyExternalizationSession.setState(XmlElementStorage.java:272)
at com.intellij.openapi.components.impl.stores.StateStorageManagerImpl$MyExternalizationSession.setStateInOldStorage(StateStorageManagerImpl.java:419)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.commit(ComponentStoreImpl.java:451)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:105)
at com.intellij.openapi.components.impl.stores.StoreUtil.doSave(StoreUtil.java:30)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:354)
at com.intellij.ide.SaveAndSyncHandlerImpl.saveProjectsAndDocuments(SaveAndSyncHandlerImpl.java:149)
at com.intellij.ide.SaveAndSyncHandlerImpl$3.onFrameDeactivated(SaveAndSyncHandlerImpl.java:103)
at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:104)
at com.intellij.ide.FrameStateManagerImpl.access$500(FrameStateManagerImpl.java:34)
at com.intellij.ide.FrameStateManagerImpl$2$1.run(FrameStateManagerImpl.java:74)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:327)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Those dno't occur if the plugin is disabled.
thanks
The plugin likely has a hook/listener for the run/debug configuration creation event. So even though no ant project, that event triggers the plug-in to do something. Perhaps not having an Ant build is an additional cause of the bug occurring ;)
Glad you found it. That would be a real PIA to have to deal with.