Hi Team,
I’m encountering the following exception when attempting to run my plugin using the latest EAP. The plugin builds successfully, but the issue arises specifically when executing the runIdeLocally
task.
The problem seems to be related to this line in the build.gradle
file:
version = providers.gradleProperty("ideTargetVersion")
The value provided for ideTargetVersion is:
ideTargetVersion=252.21735.32
runIdeLocally
intellijPlatformTesting.runIde {
runIdeLocally {
version = providers.gradleProperty("ideTargetVersion")
type = IntelliJPlatformType.IntellijIdeaCommunity
task {
jvmArgumentProviders.add({
[
"--add-exports",
"java.base/jdk.internal.vm=ALL-UNNAMED"
]
} as CommandLineArgumentProvider)
systemProperty("ide.native.launcher", "true")
}
}
}
Exception
Archived non-system classes are disabled because the java.system.class.loader property is specified (value = “com.intellij.util.lang.PathClassLoader”). To use archived non-system classes, this property must not be set
Exception in thread “main” java.lang.ClassNotFoundException: kotlinx.coroutines.debug.AgentPremain
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:236)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:504)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:572)
V [libjvm.dylib+0x528af4]*** java.lang.instrument ASSERTION FAILED : “!errorOutstanding” with message Outstanding error when calling method in invokeJavaAgentMainMethod at src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 627
jni_FatalError+0x7c
V java.lang.instrument ASSERTION FAILED ***: “success” with message invokeJavaAgentMainMethod failed at src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 466
*** java.lang.instrument ASSERTION FAILED ***: “result” with message agent load/premain call failed at src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 429
Thank you!