JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.33k stars 1.18k forks source link

[1.6.0-beta01] Unresolved stdlib imports in IDEA when only jvm and wasmJs targets are enabled #4230

Closed arkivanov closed 2 months ago

arkivanov commented 9 months ago

Describe the bug IDEA shows stdlib imports unresolved with Compose 1.6.0-beta01 and only two targets enabled: jvm and wasmJs. If I add e.g. iosX64 target then imports are resolved again. Also works fine with Compose 1.6.0-alpha01.

Affected platforms

Versions

To Reproduce

See the project: Reproducer.zip

Expected behavior

Stdlib imports are resolved.

Screenshots

image

terrakok commented 9 months ago

try a workaround: set the Kotlin version to 1.9.22

arkivanov commented 9 months ago

Updating Kotlin to 1.9.22 fixes the issue. Thanks!

okushnikov commented 4 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.