compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

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

Open arkivanov opened this issue 1 year ago • 2 comments

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

  • Desktop
  • Web (K/Wasm) - Canvas based API

Versions

  • Kotlin version*: 1.9.21
  • Compose Multiplatform version*: 1.6.0-beta01
  • OS version(s)* (required for Desktop and iOS issues): macOS 13.5.2
  • OS architecture (x86 or arm64): arm64
  • JDK (for desktop issues): jbr-17
  • IDE: IntelliJ IDEA 2023.3.3 (Ultimate Edition)

To Reproduce

See the project: Reproducer.zip

Expected behavior

Stdlib imports are resolved.

Screenshots

image

arkivanov avatar Feb 04 '24 19:02 arkivanov

try a workaround: set the Kotlin version to 1.9.22

terrakok avatar Feb 05 '24 13:02 terrakok

Updating Kotlin to 1.9.22 fixes the issue. Thanks!

arkivanov avatar Feb 05 '24 20:02 arkivanov

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

okushnikov avatar Jul 14 '24 15:07 okushnikov