Kotlin scratch files can not run

Answered

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?

0
3 comments
Hello Surendra, can you please provide more details regarding repro steps and the example of a script which causes the issue?

In addition, please clarify, have you tried to clear gradle caches and retest the issue?

./gradlew --refresh-dependencies
rm -rf ~/.gradle/caches
1

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.

0

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!

0

Please sign in to leave a comment.