Kotlin scratch files can not run
I always ran scratch codes in my project and kotlin playground but both are not very helpful. And I found out that I can run those in scratch area which is perfect. But for some reason I can't run that scratch file. it throws this error.
Compilation failed: Exception in thread "main" java.util.zip.ZipException: invalid entry CRC (expected .. but got ..) at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:439) at java.base/java.io.FilterInputStream.read(FilterInputStream.java:95) at org.jetbrains.kotlin.preloading.ClassPreloadingUtils.loadAllClassesFromJars(ClassPreloadingUtils.java:142) at org.jetbrains.kotlin.preloading.ClassPreloadingUtils.preloadClasses(ClassPreloadingUtils.java:49) at org.jetbrains.kotlin.preloading.Preloader.run(Preloader.java:62) at org.jetbrains.kotlin.preloading.Preloader.main(Preloader.java:44)
Can anyone please help me with this?
请先登录再写评论。
In addition, please clarify, have you tried to clear gradle caches and retest the issue?
./gradlew --refresh-dependencies
rm -rf ~/.gradle/caches
I have tried scratch files on every project I am working on and all gives me error. Even created new normal Kotlin project with IntelliJ build. I am working on Windows 10 if that helps. Let me try this and get back to you.Edit:
Not working! I am just running println("Hello, world!") which ends up in mentioned error.
Hello Surendra! Sorry for the delay, can you please clarify if the issue is still actual?
If the issue is actual, then please create a YouTrack ticket.
In addition, please provide IDE About information, the exact steps how to reproduce the issue/a video of the reproduction. Thank you!