Has there been any movement towards some kind of I...
# compiler
r
Has there been any movement towards some kind of IDE compiler plugin support? It has been quite some time (years) since I last heard it talked about, although I also have not been following as closely
y
K2 was a big step here because it made it so the IDE just uses FIR for analysis and such Thus, you can already use compiler plugins in IDE, but you have to turn on this registry option But, there's still rough edges. For one, the Kotlin compiler version used in IDE is a
dev
version (i.e. cut from master), and it sometimes even has IDE-specific commits on top. The onus thus falls on plugin developers to build and release their plugins against IDE versions. KEFS offers a useful convention to choose a different release of a compiler plugin based on the Kotlin version it has in its version. (It does other cool things like improving stability and such) Metro is the trailblazer here: it loads at runtime different compatibility layers to change its behavior based on the compiler version. It thus doesn't even need KEFS, just the registry setting. TL;DR: you already can use compiler plugins in IDE (with a registry option), but compatibility is hit-or-miss unless the plugin developer specifically designed for it (either by releasing multiple versions, like TestBalloon does, or changing behavior at runtime, like Metro does)
Things have gotten better here! 2026.3+ loads plugins that have special
MANIFEST.MF
attributes These same attributes are setup by the just-announced compiler plugin DevKit: https://kotlinlang.slack.com/archives/C7L3JB43G/p1794279994955089