nbadal / ktlint-intellij-plugin

Ktlint plugin for IntelliJ IDEA + Android Studio
MIT License
150 stars 22 forks source link

Support IntelliJ's K2 mode? #505

Open ryanlewis opened 2 months ago

ryanlewis commented 2 months ago

K2 Kotlin Mode (Alpha) in IntelliJ IDEA

When enabled and the IDE restarted, the ktlint plugin is disabled.

image

Of course, this is in alpha, but would be handy and cool to see if it works using K2.

paul-dingemans commented 2 months ago

For the moment this will not be possible according to this blog of Jetbrains:

Third-party IntelliJ IDEA plugins depending on the Kotlin plugin will be disabled. We will provide migration guidance for third-party plugin authors soon!

I will investigate once more information becomes available.

paul-dingemans commented 3 weeks ago

As of today, it is still not possible to run the plugin in K2 mode. Other plugins (for example Ktor) suffer from the same problem.