Is context-sensitive resolution supported by the I...
# intellij
s
Is context-sensitive resolution supported by the IDE yet? I added
-Xcontext-sensitive-resolution
to my compiler args but the IDE still highlights code red where I use it
👍 1
Or maybe I’m misunderstanding the feature. My attempted use looks like:
Copy code
enum class Foo {
  Example
}

data class Bar(val foo: Foo)

val x = Bar(Example)
a
Which IDEA version do you use? Works fine here with my latest nightly but I am pretty sure that it should be ok with 25.2 EAP as well
s
Ah, I’m on 2025.1.3. Will try with the EAP
Hmm, Junie and the KMP plugins don’t work with the EAP build. Do I need to add a particular repository to get EAP plugin builds? Or do I need to stick with stable IntelliJ if I’m using KMP and Junie?
a
Junie should work for sure with EAP, KMP plugin needs to be updated (or reinstalled?) - https://plugins.jetbrains.com/plugin/23128-kotlin-multiplatform/versions
s
I uninstalled both plugins and they don't show up in the marketplace at all, so I can't reinstall
Do I need to change some setting to opt in to nightlies?
a
What version do you have installed?
s
IDEA Ultimate Build #IU-252.23591.19, with the eap plugin repository (default)
The plugin you linked is the Fleet plugin; I see the Idea plugin here: https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform/versions where the compatibility range shows 251.*
a
I am very sorry, there is indeed no kmp plugin for 2025.2 EAP yet. The team promised to publish it shortly.
👍 1
👍🏾 1