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
15.42k stars 1.12k forks source link

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

Open arkivanov opened 5 months ago

arkivanov commented 5 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 5 months ago

try a workaround: set the Kotlin version to 1.9.22

arkivanov commented 5 months ago

Updating Kotlin to 1.9.22 fixes the issue. Thanks!

okushnikov commented 11 hours ago

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