Run 'Tests ...' has disappeared from the context menu in the packages view

已回答

When I right-click a package in the project window (Packages) I no longer see the option to run all unit tests. I've tried to invalidate the caches and I have restarted.

1

Could you please attach screenshots demonstrating the issue? Also please share idea.log ("Help | Show Log in...") after restarting IDE.

0
Avatar
Permanently deleted user

The Run is missing...

But it is here when Project is selected

0

Does it help if you disable custon plugins:

```

Loaded custom plugins: Auto filling Java call arguments (1.0), BashSupport (1.6.12.172), CheckStyle-IDEA (5.12.1), Eclipser (0.7.1), Extra Actions (1.2.1), FindBugs-IDEA (1.0.1), Gerrit (1.0.4-146), Git Bar (1.0.2), Gradle Cleaner (1.0), Gradle Dependencies Formatter (0.5.2), Gradle Dependencies Helper (1.9), Grep Console (7.2.162.000.0), Markdown support (2017.2.20170419), MetricsReloaded (1.8), Multirun (1.7), PlantUML integration (2.9.0), Python Community Edition (2017.2.172.3968.33), SonarLint (3.1.0.2244), Spek (0.5.3), String Manipulation (5.7.143.000.0)

```

I removed idea.log to avoid the mess.

 

 

0
Avatar
Permanently deleted user

I Can't figure out how to attach files and I don't paste the full log. But it is full of exceptions like this one;

2017-11-23 09:27:52,604 [ 365810] ERROR - penapi.actionSystem.impl.Utils - IntelliJ IDEA 2017.2.6 Build #IC-172.4574.11 
2017-11-23 09:27:52,604 [ 365810] ERROR - penapi.actionSystem.impl.Utils - JDK: 1.8.0_152-release
2017-11-23 09:27:52,604 [ 365810] ERROR - penapi.actionSystem.impl.Utils - VM: OpenJDK 64-Bit Server VM
2017-11-23 09:27:52,604 [ 365810] ERROR - penapi.actionSystem.impl.Utils - Vendor: JetBrains s.r.o
2017-11-23 09:27:52,604 [ 365810] ERROR - penapi.actionSystem.impl.Utils - OS: Windows 10
2017-11-23 09:27:52,604 [ 365810] ERROR - penapi.actionSystem.impl.Utils - Last Action: ExternalSystem.RefreshAllProjects
2017-11-23 09:27:52,619 [ 365825] ERROR - penapi.actionSystem.impl.Utils - update failed for AnAction with ID=RunClass
java.lang.IllegalStateException: element.parent must not be null
at com.jetbrains.python.testing.PyTestsConfigurationProducer.getTargetForConfig(PyTestsShared.kt:759)
at com.jetbrains.python.testing.PyTestsConfigurationProducer.setupConfigurationFromContext(PyTestsShared.kt:690)
at com.jetbrains.python.testing.PyTestsConfigurationProducer.setupConfigurationFromContext(PyTestsShared.kt:646)
at com.intellij.execution.actions.RunConfigurationProducer.createConfigurationFromContext(RunConfigurationProducer.java:90)
at com.jetbrains.python.testing.AbstractPythonTestConfigurationProducer.createConfigurationFromContext(AbstractPythonTestConfigurationProducer.kt:53)
at com.jetbrains.python.testing.PyTestsConfigurationProducer.createConfigurationFromContext(PyTestsShared.kt:658)
at com.intellij.execution.actions.RunConfigurationProducer.findOrCreateConfigurationFromContext(RunConfigurationProducer.java:178)
at com.jetbrains.python.testing.PyTestsConfigurationProducer.findOrCreateConfigurationFromContext(PyTestsShared.kt:665)
at com.intellij.execution.actions.PreferredProducerFind.getConfigurationsFromContext(PreferredProducerFind.java:116)
at com.intellij.execution.actions.PreferredProducerFind.findConfigurationFromContext(PreferredProducerFind.java:141)
at com.intellij.execution.actions.PreferredProducerFind.createConfiguration(PreferredProducerFind.java:44)
at com.intellij.execution.actions.ConfigurationContext.createConfiguration(ConfigurationContext.java:148)
at com.intellij.execution.actions.ConfigurationContext.getConfiguration(ConfigurationContext.java:139)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:187)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:132)
at com.intellij.openapi.actionSystem.impl.Utils.doUpdate(Utils.java:235)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:180)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:205)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:205)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:205)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:205)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:100)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:341)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu$MyPopupMenuListener.popupMenuWillBecomeVisible(ActionPopupMenuImpl.java:144)
at javax.swing.JPopupMenu.firePopupMenuWillBecomeVisible(JPopupMenu.java:682)
at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:789)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.setVisible(ActionPopupMenuImpl.java:118)
at javax.swing.JPopupMenu.show(JPopupMenu.java:965)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:113)
at com.intellij.ide.ui.customization.CustomizationUtil$2.invokePopup(CustomizationUtil.java:286)
at com.intellij.ui.PopupHandler.mouseReleased(PopupHandler.java:55)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6541)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:429)
at com.intellij.ide.dnd.aware.DnDAwareTree.processMouseEvent(DnDAwareTree.java:58)
at java.awt.Component.processEvent(Component.java:6306)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4897)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:821)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:645)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
0
Avatar
Permanently deleted user

I've disabled all the custom plugins but the problem remains.

0

Issue is related to python plugin and should be already fixed: https://youtrack.jetbrains.com/issue/PY-23994. Could you please check it with IDEA 2017.3 EAP: https://www.jetbrains.com/idea/nextversion/ ?

0
Avatar
Permanently deleted user

I tried 2017.3 EAP but the problem remains. I also tried to disable the Python plugin which didn't help.

0
Avatar
Permanently deleted user

It works now in 2017.3. I uninstalled the Python plugin and when idea was restarted the Run menus is back!

It is the same in 2016.2.5, if I uninstall the Python plugin the menus are back.

0

I got the same problem and it turned out to be a suggestion for a path variable fix that caused the error. Before I got errors for the CLASS variable and someone suggested to set its value to CLASS. That made the errors go away but silently caused the missing run menus. Now I simply deleted it and the run menus are back! (and it doesn't seem to complain without a CLASS variable). So I ended up with only the KOTLIN_BUNDLED variable:



0

@Marc thanks for sharing! Sounds like https://youtrack.jetbrains.com/issue/IDEA-75209. Fixed in 2018.2 version.

0

请先登录再写评论。