multirun icon indicating copy to clipboard operation
multirun copied to clipboard

Multi run plugin broken with

Open mdwheaton opened this issue 2 years ago • 2 comments

Individual runtime configs run fine, but no longer run in the plugin with Could not find or load main class error. Version: IntelliJ IDEA 2023.2 (Community Edition) Build #IC-232.8660.185, built on July 26, 2023 Runtime version: 17.0.7+7-b1000.6 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 16 Registry: ide.intellij.laf.enable.animation=true ide.balloon.shadow.size=0 scala.erase.compiler.process.jdk.once=false

Non-Bundled Plugins: com.khmelyuk.multirun (1.13) com.vecheslav.darculaDarkerTheme (1.2.0) com.tylerthrailkill.intellij.solarized (3.0.0) Batch Scripts Support (1.0.13) com.jetbrains.gerryPurpleTheme (2023.1.55) com.jooas.themes (0.8) Eclipse theme (1.0) com.jetbrains.packagesearch.intellij-plugin (232.8660.142) idea.plugin.protoeditor (232.8660.88) color.scheme.Eclipse - Dark (1.0) com.vermouthx.idea (1.14.3) org.intellij.scala (2023.2.17) git-extended-update-index (0.1.3)

Kotlin: 232-1.9.0-IJ8660.185

mdwheaton avatar Jul 26 '23 22:07 mdwheaton

I've been playing with it a while. Runtime configs that do NOT have a VM_PARAMETERS overriding the default classpath seem to work fine. It appears multirun is ignoring or breaking the VM_PARAMETERS, or the -cp argument within. Here's the runtime config I'm using in the multi-run.

  <configuration default="false" name="RunConfigName" type="Application" factoryName="Application">
    <envs>
      <env name="LOCAL" value="TRUE" />
    </envs>
    <option name="MAIN_CLASS_NAME" value="com.blah.blah.LocalHarness" />
    <module name="blah" />
    <option name="VM_PARAMETERS" value="-DSINGLETON=true -cp $ProjectFileDir$\src\test\resources\blah;$Classpath$" />
    <method v="2">
      <option name="Make" enabled="true" />
    </method>
  </configuration>
</component>

mdwheaton avatar Jul 27 '23 15:07 mdwheaton

Other VM_PARAMETERS options are respected, when supplying -cp or -classpath it blows up.

mdwheaton avatar Jul 28 '23 21:07 mdwheaton