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
I tried to add a task that runs tests in the latest EAP version:
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
val testSnapshot by intellijPlatformTesting.testIde.registering {
version ="LATEST-EAP-SNAPSHOT"
useInstaller =false
}
Running the task fails with ClassNotFoundException.
With IU and LATEST-EAP-SNAPSHOT, it cannot find MultiRoutingFileSystemProvider.
With IC and LATEST-EAP-SNAPSHOT, it cannot find CoreBootstrapSecurityManager.
If I change the task's version to 2024.3.1, with or without useInstaller, I get the same error as with LATEST-EAP-SNAPSHOT.
If I remove the task's custom version, so it uses the project's default (IU and 2023.3.3), it works.
Relevant log output or stack trace
Download https://cache-redirector.jetbrains.com/www.jetbrains.com/intellij-repository/snapshots/com/jetbrains/intellij/idea/ideaIU/LATEST-EAP-SNAPSHOT/ideaIU-LATEST-EAP-SNAPSHOT.zip, took 43 s 705 ms
Failed to read bundled plugin 'plugins\cwm-plugin': Plugin 'plugins\cwm-plugin' is invalid: Invalid plugin descriptor 'plugin.xml'. The <release-version> parameter [2023300] and the plugin version [233.14015.106] should have a matching beginning. For example, release version '20201' should match plugin version 2020.1.1
Failed to read bundled plugin 'plugins\ml-llm': Plugin 'plugins\ml-llm' is invalid: Invalid plugin descriptor 'plugin.xml'. The <release-version> parameter [2023300] and the plugin version [233.14015.106] should have a matching beginning. For example, release version '20201' should match plugin version 2020.1.1
> Task :checkKotlinGradlePluginConfigurationErrors
> Task :initializeIntellijPlatformPlugin
> Task :patchPluginXml
> Task :compileKotlin
> Task :verifyPluginProjectConfiguration
> Task :compileJava NO-SOURCE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :generateManifest
> Task :instrumentCode UP-TO-DATE
> Task :jar
> Task :processTestResources UP-TO-DATE
> Task :instrumentedJar
> Task :composedJar
> Task :prepareSandbox_testSnapshot
> Task :compileTestKotlin
> Task :compileTestJava NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :instrumentTestCode UP-TO-DATE
> Task :testSnapshot
[0.005s][warning][cds] 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
Error occurred during initialization of VM
java.lang.Error: java.lang.ClassNotFoundException: com.intellij.platform.core.nio.fs.MultiRoutingFileSystemProvider
at java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider([email protected]/FileSystems.java:134)
at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run([email protected]/FileSystems.java:103)
at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run([email protected]/FileSystems.java:101)
at java.security.AccessController.doPrivileged([email protected]/AccessController.java:319)
at java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem([email protected]/FileSystems.java:101)
at java.nio.file.FileSystems$DefaultFileSystemHolder.<clinit>([email protected]/FileSystems.java:94)
at java.nio.file.FileSystems.getDefault([email protected]/FileSystems.java:183)
at java.nio.file.Path.of([email protected]/Path.java:148)
at java.nio.file.Paths.get([email protected]/Paths.java:69)
at jdk.internal.jimage.ImageReaderFactory.<clinit>([email protected]/ImageReaderFactory.java:51)
at jdk.internal.module.SystemModuleFinders$SystemImage.<clinit>([email protected]/SystemModuleFinders.java:385)
at jdk.internal.module.SystemModuleFinders$SystemModuleReader.containsImageLocation([email protected]/SystemModuleFinders.java:446)
at jdk.internal.module.SystemModuleFinders$SystemModuleReader.find([email protected]/SystemModuleFinders.java:457)
at jdk.internal.loader.BuiltinClassLoader.findResource([email protected]/BuiltinClassLoader.java:497)
at jdk.internal.loader.BuiltinClassLoader.findResource([email protected]/BuiltinClassLoader.java:277)
at jdk.internal.loader.BootLoader.findResource([email protected]/BootLoader.java:164)
at java.lang.Class.getResource([email protected]/Class.java:3101)
at java.lang.System.implSetSecurityManager([email protected]/System.java:439)
at java.lang.System.initPhase3([email protected]/System.java:2302)
Caused by: java.lang.ClassNotFoundException: com.intellij.platform.core.nio.fs.MultiRoutingFileSystemProvider
at jdk.internal.loader.BuiltinClassLoader.loadClass([email protected]/BuiltinClassLoader.java:641)
at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass([email protected]/ClassLoaders.java:188)
at java.lang.ClassLoader.loadClass([email protected]/ClassLoader.java:526)
at java.lang.Class.forName0([email protected]/Native Method)
at java.lang.Class.forName([email protected]/Class.java:534)
at java.lang.Class.forName([email protected]/Class.java:513)
at java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider([email protected]/FileSystems.java:124)
at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run([email protected]/FileSystems.java:103)
at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run([email protected]/FileSystems.java:101)
at java.security.AccessController.doPrivileged([email protected]/AccessController.java:319)
at java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem([email protected]/FileSystems.java:101)
at java.nio.file.FileSystems$DefaultFileSystemHolder.<clinit>([email protected]/FileSystems.java:94)
at java.nio.file.FileSystems.getDefault([email protected]/FileSystems.java:183)
at java.nio.file.Path.of([email protected]/Path.java:148)
at java.nio.file.Paths.get([email protected]/Paths.java:69)
at jdk.internal.jimage.ImageReaderFactory.<clinit>([email protected]/ImageReaderFactory.java:51)
at jdk.internal.module.SystemModuleFinders$SystemImage.<clinit>([email protected]/SystemModuleFinders.java:385)
at jdk.internal.module.SystemModuleFinders$SystemModuleReader.containsImageLocation([email protected]/SystemModuleFinders.java:446)
at jdk.internal.module.SystemModuleFinders$SystemModuleReader.find([email protected]/SystemModuleFinders.java:457)
at jdk.internal.loader.BuiltinClassLoader.findResource([email protected]/BuiltinClassLoader.java:497)
at jdk.internal.loader.BuiltinClassLoader.findResource([email protected]/BuiltinClassLoader.java:277)
at jdk.internal.loader.BootLoader.findResource([email protected]/BootLoader.java:164)
at java.lang.Class.getResource([email protected]/Class.java:3101)
at java.lang.System.implSetSecurityManager([email protected]/System.java:439)
at java.lang.System.initPhase3([email protected]/System.java:2302)
What happened?
I tried to add a task that runs tests in the latest EAP version:
Running the task fails with
ClassNotFoundException
.MultiRoutingFileSystemProvider
.CoreBootstrapSecurityManager
.2024.3.1
, with or withoutuseInstaller
, I get the same error as with LATEST-EAP-SNAPSHOT.Relevant log output or stack trace
Steps to reproduce
The relevant project branch: https://github.com/chylex/IntelliJ-Inspection-Lens/tree/test-snapshot
Build script: https://github.com/chylex/IntelliJ-Inspection-Lens/blob/test-snapshot/build.gradle.kts
Run
testSnapshot
.Gradle IntelliJ Plugin version
2.2.1
Gradle version
8.12
Operating System
Windows
Link to build, i.e. failing GitHub Action job
No response
The text was updated successfully, but these errors were encountered: