java.lang.IllegalStateException: Could not load module definition from: VirtualFile
See original GitHub issuehi, when i upgradle gradle plugin version to 7.0.0 and gradle version to 7.0.2, i get the below error.
kotlinter version is 3.4.5
.
java.lang.IllegalStateException: Could not load module definition from: VirtualFile: /Users****s/Home!/modules/java.base/module-info.class. The file might be broken by incorrect post-processing via bytecode tools. Please remove this file from the classpath.
at org.jetbrains.kotlin.resolve.jvm.modules.JavaModuleInfo$Companion.read(JavaModuleInfo.kt:109)
at org.jetbrains.kotlin.cli.jvm.modules.CliJavaModuleFinder.findSystemModule(CliJavaModuleFinder.kt:53)
at org.jetbrains.kotlin.cli.jvm.modules.CliJavaModuleFinder.access$findSystemModule(CliJavaModuleFinder.kt:28)
at org.jetbrains.kotlin.cli.jvm.modules.CliJavaModuleFinder$systemModules$1.invoke(CliJavaModuleFinder.kt:46)
at org.jetbrains.kotlin.cli.jvm.modules.CliJavaModuleFinder$systemModules$1.invoke(CliJavaModuleFinder.kt:46)
at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:170)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:316)
at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:303)
at kotlin.sequences.SequencesKt___SequencesKt.none(_Sequences.kt:1921)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
KT-44735 - JetBrains YouTrack
java.lang.IllegalStateException: Could not load module definition from: VirtualFile: /usr/lib/jvm/java-15-openjdk-amd64!/modules/java.base/module-info.class.
Read more >Kotlin 1.4.30 Apache beam compilation error - Stack Overflow
It causes by the Kotlin compiler. Sorry for nuisance, I'm currently fixing that on the compiler's side. The fix will be available in...
Read more >kotlin/ClasspathRootsResolver.kt at master · JetBrains/kotlin
JavaModuleInfo. import org.jetbrains.kotlin.resolve.jvm.modules.KOTLIN_STDLIB_MODULE_NAME. import java.io.IOException. import java.util.jar.Attributes.
Read more >userguide.pdf - Gradle User Manual
Gradle ships with its own Groovy library, therefore Groovy does not need to be installed. ... affected tests to work with your java.util.logging...
Read more >7. Changes in this release JBoss Enterprise Application Platform 6.3 ...
In previous versions of JBoss EAP 6, servers in a managed domain would not launch successfully if they were configured to use a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
still same error, but very intersting, in my another project(same environment, i had checked the config files) work well.
I just released
3.5.0
which bumps min kotlin to 1.5.0. Give this a try and see if it fixes compatibility? Of course no longer will work with kotlin 1.4.x. Includes the ktlint 0.42.1 upgrade.