Question: if one writes a Kotlin compiler plugin d...
# intellij-plugins
g
Question: if one writes a Kotlin compiler plugin does the plugin automatically work in Intellij? Or does special IDE support need to be built
d
Depends on compiler plugin functionality but if it’s something like new keyword afaik you’ll need special IDE support for it.
From what I remember from KontlinConf though the long term plan is to change compiler plugin API so that it will “just work” in IDE.
g
Thanks for the reply. I’m not looking to change the syntax just confirmation that compiler plugins are picked up automatically by the IntelliJ compiler. KAPT for example is not.
d
Oh, I think I misinterpreted your question 🤔 Thought it was about IDE support in general. For IJ compiler to pick up plugins I guess you’ll need to specify them in
IDE Preferences -> Kotlin Compiler
settings with parameters as described here https://kotlinlang.org/docs/reference/compiler-plugins.html#using-in-cli