Jacob Ras
07/11/2023, 4:36 PMjvm("desktop")
and android()
• android & desktop app compile fine in IntelliJ* but imports are red for code in `desktopMain`; imports of the same stuff in commonMain
works
• android & desktop app compile fine in Studio and the imports are working
* version 2023.1.3, 2023.1.4 Preview and 2023.2 EAP all show the same behaviour on my two development machines
I can't figure out if there's something wrong with my project or if I should file a bug for this. I've done a lot of clear caches, rebuilds and even fresh Studio installs and tried different versions. And what confuses me is that desktop works fine in Android Studio. I'd expect the other way around.
Code is available on GitHub in this branch if anyone wants to try it: https://github.com/jacobras/ComposeActionMenu/tree/compose-kmp (open the Main.kt
file in desktopMain
). There's also a branch dev-deps
where I upgraded to Kotlin 1.9.0-RC with Compose 1.5.0-dev1094.Sebastian Sellmair [JB]
07/11/2023, 5:48 PMSebastian Sellmair [JB]
07/11/2023, 5:57 PMJacob Ras
07/11/2023, 5:58 PMsample-desktop/src/jvmMain/kotlin/example.desktop/Main.kt
Sebastian Sellmair [JB]
07/11/2023, 5:59 PMSebastian Sellmair [JB]
07/11/2023, 6:00 PMJacob Ras
07/11/2023, 6:00 PMJacob Ras
07/11/2023, 6:01 PMJacob Ras
07/11/2023, 6:01 PM2023.2 EAP
you're using?Sebastian Sellmair [JB]
07/11/2023, 6:02 PMJacob Ras
07/11/2023, 6:02 PMIntelliJ IDEA 2023.1.3 (Community Edition)
Build #IC-231.9161.38, built on June 20, 2023
Runtime version: 17.0.7+10-b829.16 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
Non-Bundled Plugins:
org.jetbrains.kotlin (231-1.9.0-release-358-IJ8770.65)
androidx.compose.plugins.idea (231.8109.90)
org.jetbrains.compose.desktop.ide (1.4.1)
Kotlin: 231-1.9.0-release-358-IJ8770.65
Jacob Ras
07/11/2023, 6:02 PMJacob Ras
07/11/2023, 6:03 PMdev
dependencies with EAP specifically. I'll try that now.Jacob Ras
07/11/2023, 6:34 PMSebastian Sellmair [JB]
07/11/2023, 6:50 PMSebastian Sellmair [JB]
07/11/2023, 7:20 PMSebastian Sellmair [JB]
07/13/2023, 5:03 PMJacob Ras
07/14/2023, 8:46 AMSebastian Sellmair [JB]
07/21/2023, 8:03 PMMichael Paus
07/23/2023, 1:38 PM