Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carlonzo opened this issue Jun 6, 2021 · 8 comments
Open
Assignees

Comments

@carlonzo
Copy link

carlonzo commented Jun 6, 2021

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)

@LouisCAD
Copy link
Owner

LouisCAD commented Jun 6, 2021

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.

@sellmair
Copy link

sellmair commented Jun 7, 2021

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 ☺️ 👍

@LouisCAD
Copy link
Owner

LouisCAD commented Jun 7, 2021

@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?

@carlonzo
Copy link
Author

carlonzo commented Jun 7, 2021

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

@LouisCAD
Copy link
Owner

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

@carlonzo
Copy link
Author

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

@LouisCAD
Copy link
Owner

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

@carlonzo
Copy link
Author

already done when I upgraded :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants