https://kotlinlang.org logo
t

Tomas Kormanak

03/08/2021, 9:12 AM
I am having issue with building 4.1.1:
Copy code
./gradlew publishToMavenLocal -PSNAPSHOT=true
results:
Copy code
> Task :compileKotlinJsIr
e: java.lang.IllegalStateException: Unsupported operation
        at org.jetbrains.kotlin.backend.common.serialization.IrModuleDeserializer.referenceSimpleFunctionByLocalSignature(IrModuleDeserializer.kt:37)
Any idea? It works in 4.1.0
r

Robert Jaros

03/08/2021, 10:08 AM
Every time? I see such errors from time to time, but I just run the build again and it works.
t

Tomas Kormanak

03/08/2021, 10:09 AM
I'll try it again.
Works now:) I would love to believe computing is deterministic:)
r

Robert Jaros

03/08/2021, 10:21 AM
If you find a way to get this bug repetitively, it would be probably a good idea to fill Kotlin YT issue 🙂
j

jschneider

03/08/2021, 1:34 PM
This is a known bug in the Kotlin compiler. I have filled a bug some time ago: "gradle clean" solves the issue
It is solved for Kotlin 1.5
This is not related to kvision