Hey Kotlin aficionados! :wave: IntelliJ IDEA has ...
# announcements
m
Hey Kotlin aficionados! 👋 IntelliJ IDEA has just rolled out the Alpha version of K2 Kotlin mode. This is a leap forward for IDE performance and code analysis accuracy, and we invite you all to try it out. kodee loading With this initial rollout, remember that not every feature is fully baked just yet. But that’s where you come in! Your feedback at this stage is super valuable, as it helps us fine-tune the functionality and user experience. To get started, simply enable K2 mode in your IntelliJ IDEA settings and take it for a spin. We’re looking forward to your thoughts, bug reports, and suggestions. Learn more on the blog ⤵️
kodee excited 10
👏🏻 1
👏 2
🎉 3
K 38
m
Maybe highlight that Android/KMP users should wait a bit since it doesn't look like it is supported yet? So I'm guessing this is going to be mostly useful for backend/Spring/data/other users that are doing mostly JVM?
👀 6
plus one 6
i
So I'm guessing this is going to be mostly useful for backend/Spring/data/other users that are doing mostly JVM?
Yes, that's correct. We expect KMP support to arrive in IntelliJ 2024.2. However, we cannot share any specific dates about Android support yet. Information about what is supported in 2024.1 is specified in the blog post: https://blog.jetbrains.com/idea/2024/01/intellij-idea-2024-1/#kotlin
👍 2
r
Would be cool if we could enable this on a per-project basis. I have projects I'd want to try it out on, but also some KMP projects where I can't.
i
Would be cool if we could enable this on a per-project basis. I have projects I'd want to try it out on, but also some KMP projects where I can't.
Unfortunately, it is not technically possible. You can only set K2 mode for the entire IntelliJ IDEA instance. However, you can install another instance of IntelliJ, in which K2 mode will be used.
👍 1
l
What about Fleet?
👀 1
s
Fleet support for K2 is currently WIP and we’re planning to ship K2 in a similar timeframe as IntelliJ
👍 3
g
Is there any example or documentation about how to show an error in the IDE from a
FirFileChecker
? I'm doing the following, as shown in the DummyNameChecker sample:
Copy code
reporter.reportOn(source, MY_ERROR, name, context)
I get an error from the compiler but no sign of error compilation in the IDE itself. maybe this is not yet implemented? 🤔
h
Do you have any timeline/ticket for K2 Script support to edit the Gradle scripts? Without script support, editing your Gradle build files is even more trial and error than with IDE support.
i
@hfhbd Scripting support in the Kotlin plugin K2 mode should be available in the IntelliJ IDEA 2024.2