CompleteKotlin icon indicating copy to clipboard operation
CompleteKotlin copied to clipboard

Cant resolve kotlin.native.concurrent.* on linux for macos platform

Open carlonzo opened this issue 3 years ago • 8 comments

I am not sure this is something its supposed to be supported by CompleteKotlin, but I'll file anyway:

I'm on LinuxX64, I've setup your plugin on my KMP project, now I see that the implementation in iosX64 can resolved the kotlin.native.concurrent.* imports, but not the same imports in macosX64.

Screenshot from 2021-06-04 12-29-06

(PS: thanks for this awesome plugin)

carlonzo avatar Jun 06 '21 07:06 carlonzo

Hello @carlonzo, I don't think it's related to CompleteKotlin itself, but most likely to some tooling issues that might depend on the versions of Kotlin, the IDE, the Kotlin IDE plugin, and how the project is set up.

Anyway, can you specify all of the please:

  1. Which IDE, and which version you're using it on
  2. Which Kotlin version the project is using
  3. Which Kotlin IDE plugin is installed in the IDE
  4. Whether you have any HMPP (Hierarchical Multiplatform Projects) properties in gradle.properties
  5. If you have access to macOS, whether the issue reproduces with the same revision of the project, and same IDE and Kotlin IDE plugin versions.

Thank you, and glad you're benefitting from the plugin.

LouisCAD avatar Jun 06 '21 09:06 LouisCAD

I think this might be another symptom of #2 (where native stdlib might be not wired up correctly in this case). I will post an update here once I am working on #2 ☺️ 👍

sellmair avatar Jun 07 '21 11:06 sellmair

@sellmair Note that stdlib and lack of multiplatform features (like no expect/actual availability) are quite common (pun intended, I think it actually always happen) when there's only one target.

Should we open an issue about that on YouTrack?

LouisCAD avatar Jun 07 '21 12:06 LouisCAD

sorry @LouisCAD should have come back earlier to you. I cant explain how ios is resolved when mac is not :/

regarding your questions:

  1. AS Bumblebee Canary 1
  2. Kotlin 1.5.10 (also tried with 1.5.20-M1)
  3. IDE Plugin 1.5.20-M1
  4. no HMPP
  5. on macOS everything works fine. methods are resolved correctly in IDE (same IDE and plugin) for macos and ios implementations

carlonzo avatar Jun 07 '21 15:06 carlonzo

Hello @carlonzo, do you still have the issue with version 1.1.0 of the plugin?

LouisCAD avatar Jan 10 '22 20:01 LouisCAD

Hi @LouisCAD thanks for the message. I've just updated, and yes problem persist.

from last time you asked, some of the answers to the above questions changed:

  • IntelliJ IDEA 2021.3.1
  • Kotlin 1.6.10
  • Kotlin plugin: 213-1.6.10-release-923-IJ5744.223
  • project has HMPP

here is a screenshot of what I currently see. happy to help if you need anything image

carlonzo avatar Jan 11 '22 09:01 carlonzo

Can you try after moving the setup from settings.gradle[.kts] to build.gradle[.kts]?

LouisCAD avatar Jan 11 '22 09:01 LouisCAD

already done when I upgraded :/

carlonzo avatar Jan 11 '22 09:01 carlonzo