Hi everyone, I'm not sure if this is the correct c...
# compiler
c
Hi everyone, I'm not sure if this is the correct channel, please let me know if not. I'm trying to compile some Kotlin code using the command line compiler, with kotlinx.serialization. I've attached the full command line I'm using in the thread, but briefly: I'm getting
your current kotlinx.serialization core version is 2.0.21, while current Kotlin compiler plugin unknown requires at least 1.0-M1-SNAPSHOT. Please update your kotlinx.serialization runtime dependency
. Looking at the command line, the only kotlinx.serialization deps are:
Copy code
/Users/colin/.m2/repository/org/jetbrains/kotlinx/kotlinx-serialization-json/1.7.3/kotlinx-serialization-json-1.7.3.jar
/Users/colin/.m2/repository/org/jetbrains/kotlinx/kotlinx-serialization-json-jvm/1.7.3/kotlinx-serialization-json-jvm-1.7.3.jar
/Users/colin/.m2/repository/org/jetbrains/kotlinx/kotlinx-serialization-core-jvm/1.7.3/kotlinx-serialization-core-jvm-1.7.3.jar
And the compiler plugin is:
Copy code
-Xplugin=/Users/colin/.m2/repository/org/jetbrains/kotlin/kotlin-serialization-compiler-plugin/2.0.21/kotlin-serialization-compiler-plugin-2.0.21.jar
Any ideas what could be causing this?
These are the parameters I'm passing to
K2JVMCompiler.main()
.
In case anyone else comes across this, it's discussed here: https://github.com/Kotlin/kotlinx.serialization/issues/993.
In particular, for IntelliJ plugins compiling against the IntelliJ API it seems there are problems, which is my case.