Skip to content

Breaks run/debug configurations for projects using other build tools #5

@tmkarthi

Description

@tmkarthi

When I loaded a project using gradle, a lot of exceptions similar to the one below are thrown in IntelliJ log files & run/debug options didn't show up in the context menu. When I uninstalled ant debugger plugin, it all started working again.

2014-12-02 15:14:19,978 [  18451]  ERROR - penapi.actionSystem.impl.Utils - update failed for AnAction with ID=CreateRunConfiguration 
java.lang.AssertionError: Ant build: null
    at com.intellij.execution.actions.RunConfigurationProducer.findOrCreateConfigurationFromContext(RunConfigurationProducer.java:158)
    at com.intellij.execution.actions.PreferredProducerFind.getConfigurationsFromContext(PreferredProducerFind.java:106)
    at com.intellij.execution.actions.PreferredProducerFind.findConfigurationFromContext(PreferredProducerFind.java:131)
    at com.intellij.execution.actions.PreferredProducerFind.createConfiguration(PreferredProducerFind.java:43)
    at com.intellij.execution.actions.ConfigurationContext.createConfiguration(ConfigurationContext.java:119)
    at com.intellij.execution.actions.ConfigurationContext.getConfiguration(ConfigurationContext.java:112)
    at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:187)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:113)
    at com.intellij.openapi.actionSystem.impl.Utils.doUpdate(Utils.java:188)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:139)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:164)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:164)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:164)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:164)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:86)
    at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:280)
    at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:96)
    at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent$MyEditorMouseListener.invokePopup(TextEditorComponent.java:305)
    at com.intellij.util.EditorPopupHandler.handle(EditorPopupHandler.java:27)
    at com.intellij.util.EditorPopupHandler.mousePressed(EditorPopupHandler.java:37)
    at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.runMousePressedCommand(EditorImpl.java:5498)
    at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mousePressed(EditorImpl.java:5456)
    at java.awt.Component.processMouseEvent(Component.java:6411)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
    at java.awt.Component.processEvent(Component.java:6179)
    at java.awt.Container.processEvent(Container.java:2084)
    at java.awt.Component.dispatchEventImpl(Component.java:4776)
    at java.awt.Container.dispatchEventImpl(Container.java:2142)
    at java.awt.Component.dispatchEvent(Component.java:4604)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4276)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209)
    at java.awt.Container.dispatchEventImpl(Container.java:2128)
    at java.awt.Window.dispatchEventImpl(Window.java:2492)
    at java.awt.Component.dispatchEvent(Component.java:4604)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
    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.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:690)
    at java.awt.EventQueue$3.run(EventQueue.java:688)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:748)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:573)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384)
    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)
2014-12-02 15:14:19,980 [  18453]  ERROR - penapi.actionSystem.impl.Utils - IntelliJ IDEA 14.0.1  Build #IC-139.225.3 
2014-12-02 15:14:19,981 [  18454]  ERROR - penapi.actionSystem.impl.Utils - JDK: 1.6.0_65 
2014-12-02 15:14:19,981 [  18454]  ERROR - penapi.actionSystem.impl.Utils - VM: Java HotSpot(TM) 64-Bit Server VM 
2014-12-02 15:14:19,981 [  18454]  ERROR - penapi.actionSystem.impl.Utils - Vendor: Apple Inc. 
2014-12-02 15:14:19,981 [  18454]  ERROR - penapi.actionSystem.impl.Utils - OS: Mac OS X 

It looks like this plugin expects Ant context to be available always. As gradle based projects don't have this, all the run/debug operations disappear. Please fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions