Hello! I’m getting the following output and `java....
# test
g
Hello! I’m getting the following output and
java.lang.AssertionError
when using Asserts with kotlin
2.1.0-RC
or
2.1.0-RC2
. If I downgrade to
2.0.21
it works:
Copy code
e: .gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0-RC2/a2fc741252a95c0b35b2f6803cc4593751adc78f/kotlin-stdlib-2.1.0-RC2.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: .gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0-RC2/a2fc741252a95c0b35b2f6803cc4593751adc78f/kotlin-stdlib-2.1.0-RC2.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: .gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0-RC2/a2fc741252a95c0b35b2f6803cc4593751adc78f/kotlin-stdlib-2.1.0-RC2.jar!/META-INF/kotlin-stdlib.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: .gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-test-junit/2.1.0-RC2/b93d3ae5bf5d6705f0a7e996ae76625be9aab838/kotlin-test-junit-2.1.0-RC2.jar!/META-INF/kotlin-test_JUnit.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: .gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-test/2.1.0-RC2/589f4d86f57a00236e6af14e85e84f043ca7e41f/kotlin-test-2.1.0-RC2.jar!/META-INF/kotlin-test.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
Can someone elucidate me? Thanks!
I’ve also open an issue https://youtrack.jetbrains.com/issue/KT-72949 (the project is linked there)
m
expected version is 1.9.0.
Looks like you're still compiling with 1.9?
The project is this one, right? Can you point to the commit that has the issue and the gradle command that exhibits the problem?
g
Indeed but these are my dependencies:
Copy code
kotlin = "2.1.0-RC2"
ksp = "2.1.0-RC2-1.0.28"
kotlinCompose = "1.7.0"
kotlinxSerialization = "1.7.3"
kotlinxSerializationPlugin = "2.0.20"
dokka = "2.0.0-Beta"
gradlePublish = "1.3.0"
compileTesting = "1.6.0"
Yes let me create a branch to be easier for you to test 😉 and thanks!
👍 1
Here just open the project and run the Processor Test task.
Copy code
:kmp-composeuiviewcontroller-ksp:test --tests "composeuiviewcontroller.ProcessorTest" --no-build-cache
m
tschuchortdev/kotlin-compile-testing
hasn't been updated in 6 months, looks like it is still on 1.9
g
I’ve tried that one but I had 2 problems with it: https://github.com/ZacSweers/kotlin-compile-testing/issues/197 and https://github.com/ZacSweers/kotlin-compile-testing/issues/298 but I’ll give it another look 😉
Thanks @mbonnin 👍
328 Views