# Plugin compatibility with K2 mode

**URL:** <https://platform.jetbrains.com/t/plugin-compatibility-with-k2-mode/1756>\
**Category:** IntelliJ Platform\
**Tags:** kotlin, plugin-development\
**Created:** [May 20, 2025, 7:04am UTC](https://platform.jetbrains.com/t/plugin-compatibility-with-k2-mode/1756 "2025-05-20T07:04:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.delhomenie](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/thomas.delhomenie/32/1355_2.png) [@thomas.delhomenie](https://platform.jetbrains.com/u/thomas.delhomenie)\
**Post date:** [May 20, 2025, 7:04am UTC](https://platform.jetbrains.com/t/plugin-compatibility-with-k2-mode/1756/1 "2025-05-20T07:04:07Z")

</div>

Hello,

I am using IntelliJ IDEA 2025.1 EAP and I noticed several issues with my plugin when enabling the K2 mode:

- the plugin is not flagged as [compatible with K2 mode](https://kotlin.github.io/analysis-api/declaring-k2-compatibility.html), but when I enable the K2 mode the plugin is still enabled, no message or indication displayed. I did not explicitly set the `supportsK2` boolean to false but according to the documentation it should be false by default.

- one of the purpose of the plugin is to remove the JDK from the classpath (we have our own implementation for the embedded world). When the plugin and K2 mode are enabled, the `.kts` files are marked with a lot of errors such as

Thanks!
