Hi folks, what is the stage of Compiler Plugins at...
# scripting
s
Hi folks, what is the stage of Compiler Plugins at the script? I want to be able to use Kotlinx.serialization.
i
It is supported now. To connect a plugin you need to add it to the host classpath, and then it should work. Here is the test for serialization with main-kts in the kotlin repo - https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-main-kts-test/testData/hello-kotlinx-serialization.main.kts
🎉 2
e
Nice!
s
Hi @ilya.chernikov, IntelliJ support is not available yet? I test it here and do not work on IntelliJ.
I guess because it is a compiler plugin will never properly support IntelliJ?
i
The support I mentioned below is unrelated to the IntelliJ. I haven't done anything specific for IDE support yet, so I cannot tell anything concrete yet. I guess you can try some trick, e.g. using scripts in a module with serialization plugin added in a way used for the regular sources.