Currently, there is no Kotlin 1.5.0-M2 IntelliJ Pl...
# eap
h
Currently, there is no Kotlin 1.5.0-M2 IntelliJ Plugin for IntelliJ Ultimate 2021.1, is it? Kotlin Plugin 1.5.0-M2 is available for Android Studio Canary 14 (203-1.5.0-M2-release-538-AS7717.8).
5
t
сс @Alexey Belkov [JB]
a
It's still not released, sorry about that. You can watch the issue https://youtrack.jetbrains.com/issue/KT-45338 for updates.
🙏 2
c
Wait. I'm confused. I thought starting with intellij 2021.1 the kotlin plugin is now just bundled with the IDE?
a
Yes, but we have two different release cycles for IDEA and Kotlin compiler. The bundled plugin has the latest stable compiler 1.4.32, but we don't yet have a separate plugin for 2021.1 with 1.5.* compiler.
l
In IDEA 2021+, the Kotlin plugin is essentially in 2 parts, one of which is upgradable independently from the IDE, am I right?
a
Well, no. The plugin itself is still in one part, but we now have two different "kinds" of plugin releases: 1) bundled release with the latest IDEA and some stable Kotlin compiler. This kind aims to support the latest IDEA features. 2) not bundled release with a specific Kotlin compiler (ex. 1.5-M1) for several IDEA configurations (ex. 2020.2, 2020.3). This kind focuses on support of the latest Kotlin language features, but doesn't try to support the newest IDEA features in older Ideas.
l
That means starting 2021+ versions, the only way to use a Kotlin Milestone release will be to upgrade the entire IDE granted we're talking about IDE support?
👍 1
a
When a milestone release of the Kotlin compiler comes out, we should simultaneously release IDEA plugins for some set of IDEA versions that have this milestone compiler included. These plugins should aim to support new Kotlin language features in the IDE (for example, inspections/refactorings for sealed interfaces and stuff like that). So, it's not necessary to upgrade your IDE if a compatible plugin for it is released. For example, this is currently true for IDEA 2020.3. As for 2021.1, I think we should have already released a 1.5 milestone plugin for it (starting from some IDEA EAP or at least for the stable one).
h
Sorry to ask, but what is the advantage changing the plugin release? To drop support for older IDEA and support new language features (eg refactorings for sealed interfaces ) only in new IDEAs?
a
This whole thing should be explained in some detail in the blog post: https://blog.jetbrains.com/kotlin/2020/10/new-release-cadence-for-kotlin-and-the-intellij-kotlin-plugin/
c
@Alexey Belkov [JB] thanks. I guess from the perspective of a pure android developer I'm just getting a little excited over 2021.1 and the kotlin plugin there BUT it does not seem like those kotlin speed improvements will make their way to AS any time soon, so now I'm just trying to figure out "Can I just take the 2021.1 kotlin plugin and use it AS?" but it seems like the answer is no, and I'm going to have to wait a few months to benefit from those speed improvements.