Am I right that recognising additions made by FIR ...
# eap
t
Am I right that recognising additions made by FIR plugins for multiplatform projects won't be included in IntelliJ 2024.2? I tried the most recent RC and it seems to be missing still. I enabled K2 mode but I don't know if that's enough or not tbh.
👀 1
youtrack 1
t
cc @Roman Golyshev
thank you color 1
r
Hi! What do you mean by “additions”? Compiler plugins?
j
I think he refers to code generated by FIR
t
Hi! Yes, companions, functions, properties, supertypes added with FIR plugins.
r
Unfortunately, 3rd-party FIR compiler plugins are still under the separate registry flag, see https://youtrack.jetbrains.com/issue/KTIJ-29248/K2-IDE-Enable-non-bundled-compiler-plugins-in-IDE-by-default
thank you color 1
j
That flag work with KMP?
r
I believe so, yes; however, I am not 100% sure what is the status of compiler plugins for KMP, unfortunately
👍 1
j
> Improved stability and performance for Kotlin in K2 mode BETA
>
IntelliJ IDEA 2024.2 improves K2 mode, a new Kotlin support mechanism that enhances the IDE’s stability and performance in addition to laying the groundwork for future Kotlin language features. In version 2024.2, K2 mode now supports gradle.kts scripts, Kotlin Multiplatform (KMP) projects, all major refactorings, code highlighting, debugging, and more. Benchmarks show that K2 mode nearly doubles code highlighting performance on the IntelliJ IDEA Ultimate source base. To activate it, go to Settings/Preferences | Languages & Frameworks | Kotlin.
t
Just tried that flag with 2024.2 and it works! Thank you! This will make my life so much easier!
r
Please note that the compiler plugins APIs currently do not provide any kind of stability guarantees, so you might encounter some exceptions 🙏
t
That's fine, I develop the plugin as well, so I can handle all API changes (as long as features don't go away completely).