IDE can't automatically create a runconfig for a scalatest testcase, rightclicking on the class doesn't give me the option and I get an exception in the logs
Even a very basic one can't run, i.e. class XTest extends FunSuite{}
I get this in the logs:
2017-01-11 16:49:33,166 [90167356] ERROR - penapi.actionSystem.impl.Utils - IntelliJ IDEA 2016.3.2 Build #IC-163.10154.41
2017-01-11 16:49:33,166 [90167356] ERROR - penapi.actionSystem.impl.Utils - JDK: 1.8.0_112-release
2017-01-11 16:49:33,166 [90167356] ERROR - penapi.actionSystem.impl.Utils - VM: OpenJDK 64-Bit Server VM
2017-01-11 16:49:33,166 [90167356] ERROR - penapi.actionSystem.impl.Utils - Vendor: JetBrains s.r.o
2017-01-11 16:49:33,166 [90167356] ERROR - penapi.actionSystem.impl.Utils - OS: Linux
2017-01-11 16:49:33,166 [90167356] ERROR - penapi.actionSystem.impl.Utils - Last Action: SaveAll
2017-01-11 16:49:33,172 [90167362] ERROR - penapi.actionSystem.impl.Utils - update failed for AnAction with ID=CreateRunConfiguration
com.intellij.execution.configurations.RuntimeConfigurationException: ScalaTest is not specified
at org.jetbrains.plugins.scala.testingSupport.test.AbstractTestRunConfiguration.getSuiteClass(AbstractTestRunConfiguration.scala:275)
at org.jetbrains.plugins.scala.testingSupport.test.scalatest.ScalaTestRunConfiguration.isInvalidSuite(ScalaTestRunConfiguration.scala:36)
at org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.runPossibleFor(TestConfigurationProducer.scala:168)
at org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.setupConfigurationFromContext(TestConfigurationProducer.scala:46)
at org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.setupConfigurationFromContext(TestConfigurationProducer.scala:29)
at com.intellij.execution.actions.RunConfigurationProducer.createConfigurationFromContext(RunConfigurationProducer.java:90)
at com.intellij.execution.actions.RunConfigurationProducer.findOrCreateConfigurationFromContext(RunConfigurationProducer.java:178)
at com.intellij.execution.actions.PreferredProducerFind.getConfigurationsFromContext(PreferredProducerFind.java:107)
at com.intellij.execution.actions.PreferredProducerFind.findConfigurationFromContext(PreferredProducerFind.java:132)
at com.intellij.execution.actions.PreferredProducerFind.createConfiguration(PreferredProducerFind.java:43)
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:189)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:122)
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$MyPopupMenuListener.popupMenuWillBecomeVisible(ActionPopupMenuImpl.java:138)
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:115)
at javax.swing.JPopupMenu.show(JPopupMenu.java:965)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:110)
at com.intellij.openapi.editor.impl.EditorImpl.invokePopupIfNeeded(EditorImpl.java:7174)
at com.intellij.openapi.editor.impl.EditorImpl.access$11300(EditorImpl.java:132)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.runMousePressedCommand(EditorImpl.java:5865)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mousePressed(EditorImpl.java:5788)
at java.awt.Component.processMouseEvent(Component.java:6530)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
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:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:843)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:675)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
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)
2017-01-11 16:49:33,172 [90167362] ERROR - penapi.actionSystem.impl.Utils - IntelliJ IDEA 2016.3.2 Build #IC-163.10154.41
2017-01-11 16:49:33,172 [90167362] ERROR - penapi.actionSystem.impl.Utils - JDK: 1.8.0_112-release
2017-01-11 16:49:33,172 [90167362] ERROR - penapi.actionSystem.impl.Utils - VM: OpenJDK 64-Bit Server VM
2017-01-11 16:49:33,172 [90167362] ERROR - penapi.actionSystem.impl.Utils - Vendor: JetBrains s.r.o
2017-01-11 16:49:33,172 [90167362] ERROR - penapi.actionSystem.impl.Utils - OS: Linux
2017-01-11 16:49:33,172 [90167362] ERROR - penapi.actionSystem.impl.Utils - Last Action: SaveAll
Any ideas what might be wrong?
Please sign in to leave a comment.
If I create the run config manually , the test runs fine.
I get the same kind of error for specs2 tests. I tried clearing the cache and even re-installed IntelliJ, but no luck.
Here's my stack trace from the log:
I'm having the same issue. Also, it looks like it's project specific as in other projects this works fine. I've tried re-installing, deleted the ivy cache, fresh repo clone, invalidated cache/restart, re-installed Scala plugin, manually deleted Library artifacts, etc.
2017-01-18 09:24:36,422 [61552582] ERROR - penapi.actionSystem.impl.Utils - update failed for AnAction with ID=CreateRunConfiguration
com.intellij.execution.configurations.RuntimeConfigurationException: ScalaTest is not specified
at org.jetbrains.plugins.scala.testingSupport.test.AbstractTestRunConfiguration.getSuiteClass(AbstractTestRunConfiguration.scala:275)
at org.jetbrains.plugins.scala.testingSupport.test.scalatest.ScalaTestRunConfiguration.isInvalidSuite(ScalaTestRunConfiguration.scala:36)
at org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.runPossibleFor(TestConfigurationProducer.scala:168)
at org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.setupConfigurationFromContext(TestConfigurationProducer.scala:46)
at org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationProducer.setupConfigurationFromContext(TestConfigurationProducer.scala:29)
at com.intellij.execution.actions.RunConfigurationProducer.createConfigurationFromContext(RunConfigurationProducer.java:90)
at com.intellij.execution.actions.RunConfigurationProducer.findOrCreateConfigurationFromContext(RunConfigurationProducer.java:178)
at com.intellij.execution.actions.PreferredProducerFind.getConfigurationsFromContext(PreferredProducerFind.java:107)
at com.intellij.execution.actions.PreferredProducerFind.findConfigurationFromContext(PreferredProducerFind.java:132)
at com.intellij.execution.actions.PreferredProducerFind.createConfiguration(PreferredProducerFind.java:43)
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:189)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:122)
at com.intellij.openapi.actionSystem.impl.Utils.a(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$MyPopupMenuListener.popupMenuWillBecomeVisible(ActionPopupMenuImpl.java:138)
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:115)
at javax.swing.JPopupMenu.show(JPopupMenu.java:965)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:110)
at com.intellij.openapi.editor.impl.EditorImpl.a(EditorImpl.java:7174)
at com.intellij.openapi.editor.impl.EditorImpl.access$11300(EditorImpl.java:132)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.d(EditorImpl.java:5865)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mousePressed(EditorImpl.java:5788)
at java.awt.Component.processMouseEvent(Component.java:6530)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
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:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:843)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:675)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
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)
2017-01-18 09:24:36,422 [61552582] ERROR - penapi.actionSystem.impl.Utils - IntelliJ IDEA 2016.3.3 Build #IU-163.11103.6
2017-01-18 09:24:36,422 [61552582] ERROR - penapi.actionSystem.impl.Utils - JDK: 1.8.0_112-release
2017-01-18 09:24:36,422 [61552582] ERROR - penapi.actionSystem.impl.Utils - VM: OpenJDK 64-Bit Server VM
2017-01-18 09:24:36,422 [61552582] ERROR - penapi.actionSystem.impl.Utils - Vendor: JetBrains s.r.o
2017-01-18 09:24:36,422 [61552582] ERROR - penapi.actionSystem.impl.Utils - OS: Mac OS X
Hello,
I am having exact same issue as well. Any update on this would be greatly appreciated
Please try this Scala plug-in nightly build and report if it helps: https://plugins.jetbrains.com/idea/plugin/1347-scala/31885-update
updating to nightly plugin did not fix the issue
That's unfortunate. Please file a bug at https://youtrack.jetbrains.com/issues/SCL with the logs from the latest version and a small sample project to reproduce the problem. Thank you.
Maybe, I will give you some hint. Mine reason of the same error was in multi-project structure in SBT. I attached
to the sub-project - and got the error. But after adding this dependency to the root project - everything works fine.