Zac Sweers
04/01/2025, 8:30 PMbnorm
04/01/2025, 10:01 PMdmitriy.novozhilov
04/02/2025, 4:57 AMZac Sweers
04/02/2025, 2:23 PMdmitriy.novozhilov
04/02/2025, 2:50 PMZac Sweers
04/02/2025, 2:50 PMZac Sweers
04/02/2025, 2:50 PMdmitriy.novozhilov
04/02/2025, 2:53 PMZac Sweers
04/02/2025, 2:54 PMdmitriy.novozhilov
04/02/2025, 2:55 PMZac Sweers
04/02/2025, 3:00 PMdmitriy.novozhilov
04/02/2025, 3:09 PMbnorm
04/04/2025, 11:01 AM.idea
folder, it could be checked into the project as well. (Though, people using different versions of IntelliJ might be a problem.)Roman Golyshev
04/04/2025, 1:42 PMAbout
section in the IDEA and see the Kotlin analyzer version
line there (e.g. Kotlin analyzer version: 2.2.0-dev-12359
)
This is the version of the Kotlin compiler that is bundled in the IDE and which you should target
Now, if in your project you
• use this version of Kotlin compiler
• use your compiler plugin compiled against that version of Kotlin compiler (you would have to obtain it somehow)
• disable kotlin.k2.only.bundled.compiler.plugins.enabled
flag in the IDEA registry
then it would be possible for you to use your compiler plugin in the IDE without errors
---
I know that this does not look easy or user-friendly, and for a good reason - compiler plugins are still unstable, and we’re very cautious about providing extra support for the plugins which we do not fully control
We would consider some ways to improve this workflow for compiler plugins developers, but we cannot promise anything at this point, unfortunatelyRoman Golyshev
04/04/2025, 2:09 PMZac Sweers
04/04/2025, 6:24 PMWaldemar Kornewald
05/06/2025, 5:25 AMkotlinver-pluginver
(e.g. 2.2.0-dev-12359-1.0.0)? Then based on the Kotlin version prefix of the IDE the highest available plugin version would be picked, but only for the IDE, not the project.
With some separate mechanism (webhook or polling) the plugin's CI could trigger a build for every required release, ideally slightly before the IDE update gets released.
Am I overlooking anything?Waldemar Kornewald
05/25/2025, 5:17 PM<kotlinVersion>-plugin.<pluginVersion>
. This automatic process has created 2.2.0-RC-plugin.1
today. The CI could easily be extended to automatically publish with the Kotlin version used by the IDE, too. What do you think?dmitriy.novozhilov
06/02/2025, 7:23 AMWaldemar Kornewald
06/02/2025, 11:12 AMdmitriy.novozhilov
06/02/2025, 11:16 AMbreaking IR API changes could still crash the IDE, right?Nope, IIRC IR plugins are not loaded at the IDE at all. It could bring some inconsistencies in evaluate expression in debugger and in bytecode viewer, but at least it wouldn't crash anything.
Waldemar Kornewald
06/02/2025, 11:17 AM