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 PM