You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run benchmarks, the run fails with a "No module defined" error message.
The exception in the log is:
2015-03-31 12:14:35,504 [ 193622] INFO - tion.impl.ExecutionManagerImpl - No module defined
com.intellij.execution.CantRunException: No module defined
at com.intellij.execution.CantRunException.noModuleConfigured(CantRunException.java:33)
at com.intellij.execution.util.JavaParametersUtil.getClasspathType(JavaParametersUtil.java:74)
at ru.artyushov.jmhPlugin.configuration.BenchmarkState.createJavaParameters(BenchmarkState.java:50)
at ru.artyushov.jmhPlugin.configuration.BenchmarkState.createCommandLine(BenchmarkState.java:70)
at ru.artyushov.jmhPlugin.configuration.BenchmarkState.startProcess(BenchmarkState.java:66)
at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:80)
at com.intellij.execution.impl.DefaultJavaProgramRunner.doExecute(DefaultJavaProgramRunner.java:90)
at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:43)
at com.intellij.execution.RunProfileStarter.execute(RunProfileStarter.java:39)
at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:203)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:144)
at com.intellij.execution.impl.ExecutionManagerImpl$1$1.run(ExecutionManagerImpl.java:168)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
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.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:734)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
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)
I am running IDEA ultimate 14.1 under Mac 10.10.2. My project has 15 modules.
Configuration screenshots attached:
The text was updated successfully, but these errors were encountered:
This is fundamentally a bigger issue -- when creating a new JMH run configuration manually, certain critical options (such as which module is assigned to this configuration) aren't exposed to the UI.
The only workaround I could find (short of editing .idea/workspace.xml manually) is to create a JMH run configuration via the UI, by right-clicking a benchmark method or class, and edit it to suit your needs.
@holograph not successful in generating a benchmarks.jar
Correct me if I am wrong but this is what I understood.
create benchmark project
Use benchmarks annotation to measure a methods performance
Run the created benchmarks.jar to see the performance units
When I try to run benchmarks, the run fails with a "No module defined" error message.
The exception in the log is:
I am running IDEA ultimate 14.1 under Mac 10.10.2. My project has 15 modules.
Configuration screenshots attached:
The text was updated successfully, but these errors were encountered: