Does toolchain support the latest compose beta? I...
# kotlin-toolchain
l
Does toolchain support the latest compose beta? I have:
Copy code
product:
  type: kmp/lib
  platforms: [jvm, android, iosArm64, iosSimulatorArm64]

dependencies:
  - ../core: exported
  - $compose.foundation: exported
  - org.jetbrains.compose.material3:material3:1.12.0-alpha03: exported
  - org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose:2.11.0
  - org.jetbrains.androidx.navigation3:navigation3-ui:1.1.1
  - org.maplibre.compose:maplibre-compose:0.13.0

settings:
  android:
    compileSdk: 37
  kotlin:
    version: 2.4.0
  compose:
    enabled: true
    version: 1.12.0-beta02
It builds, but intellijs compose imports are all red.
j
Normally it should support it. Not sure what's going on with IntelliJ. Which IJ version are you using by the way?
Just to confirm, when you say "it builds" you mean that with the Kotlin CLI outside of IJ,
kotlin build
works fine, right?
l
yeah I meant kotlin cli build/run works. And I’m using the latest IJ
🙏 1
2026.2
j
cc @Anton Prokhorov / @utikeev could you guys pls check?
👀 1
l
This is the project github.com/luca992/flighty-cmp It’s a pointless sample project hacked together by ai. so maybe it’s doing something dumb in it’s config. But this is the first time I’m trying out kotlin toolchain, so I’m not sure what’s going wrong
u
Hm, I think there is indeed an issue with
material3
not properly set in the common fragment. The resolution indeed differs a bit in the IDE and in the CLI as the same file (e.g., the source in common source set) can be compiled in different contexts but the IDE always displays it in the artificially created "common" context that tries to verify that this code is valid for all the platforms. I'll check this exact case and file an issue so you can track it—hopefully, we'll fix it in the next IDE release (2026.2.1).
Thanks a lot for catching this! We have filed the issue: KTC-5563
a
@Luca thanks for you feedback again. Based on that we have found and fixed the issue in KMP libraries resolution logic used in IDE for resolving symbols. It is fixed in dev version of CLI for now and will be supported in future Idea releases youtrack./…/Dependencies-are-not-resolved-in-a-multiplatform-context-if-a-library-PSM-descriptor-contains-variants-with-empty-list-of
⚡ 1
l
Sweet. Thanks guys!
Btw I like kotlin-toolchain wayy more than I thought I would. It feels so simple 🤙
yay 2
kodee loving 1
I will need to wait for the next ide update too, not just updating to the latest dev cli right?
👌 1
Any idea which ide update will include it? The latest 2026.2.1 Preview and 2026.2.0.1 still don’t have the fixes it seems
u
We hope to make it to 2026.2.1 before the release! Not sure if it is going to be available during RC, though—sorry 😞
👍 1