Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi run plugin broken with #97

Open
mdwheaton opened this issue Jul 26, 2023 · 2 comments
Open

Multi run plugin broken with #97

mdwheaton opened this issue Jul 26, 2023 · 2 comments

Comments

@mdwheaton
Copy link

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant