LouisCAD / CompleteKotlin

Gradle Plugin to enable auto-completion and symbol resolution for all Kotlin/Native platforms.
MIT License
306 stars 8 forks source link

How to troubleshoot? #4

Closed rocketraman closed 1 year ago

rocketraman commented 3 years ago

Didn't seem to work for me. How can I troubleshoot? I did see the Gradle build output included a download and unpack of some files into $HOME/.konan.

Some imports that are still red:

image

image

I'm on Linux (Fedora 32) with IntelliJ Ultimate 2021.1.2.

LouisCAD commented 3 years ago

Hello!

Which Kotlin version is the project using? Can you try with a freshly created project from the IDE wizard to see if you get the same issue? If not, can you then try to edit the Kotlin version so that it matches the project you have an issue with?

rocketraman commented 3 years ago

Kotlin 1.4.32. I'll try a freshly created project.

LouisCAD commented 3 years ago

Hello @rocketraman! Did it work on a new project?

rocketraman commented 3 years ago

Nope, didn't work on a new project either.

LouisCAD commented 3 years ago

What type of project did you create?

rocketraman commented 3 years ago

Kotlin multiplatform mobile on JDK 1.8 with IntelliJ IDEA 2021.1.3.

image

rocketraman commented 3 years ago

@LouisCAD Any ideas?

LouisCAD commented 3 years ago

@rocketraman I don't have any, but we can try to dig deeper in a pairing session if you want, sometime this week.

LouisCAD commented 3 years ago

Is it the same issue as #6?

rocketraman commented 3 years ago

No, I have both kotlin.mpp.enableGranularSourceSetsMetadata=true and kotlin.native.enableDependencyPropagation=false set.

I thought the problem might be kotlin.native.ignoreDisabledTargets=true but commenting that out didn't help either.

rocketraman commented 3 years ago

Upstream issue reference: https://youtrack.jetbrains.com/issue/KT-48337

LouisCAD commented 3 years ago

So, to answer your question "How to troubleshoot?", I think we're figuring it out 😄

rocketraman commented 1 year ago

@LouisCAD I commented in the upstream issue as well but FYI I can no longer reproduce this with modern versions of the IDE and Kotlin. Its working well now! I'll close. Thanks!

LouisCAD commented 1 year ago

Yup, I've seen. Thanks for the update, I'm glad the IntelliJ Platform fixed that!