Can't Repro
Status Update
Comments
ia...@gmail.com <ia...@gmail.com> #2
I should mention I'm using the multiplatform plugin by Jetbrains:
ia...@gmail.com <ia...@gmail.com> #3
I seem to have found the culprit. It appears to be the "kotlin.mpp.enableGranularSourceSetsMetadata=true" in the gradle.properties file. When I commented it out the libraries imported properly and the classes work as expected.
im...@google.com <im...@google.com>
ia...@gmail.com <ia...@gmail.com> #4
I should also mention it created other issues with the multiplatform project by commenting out the line above. Particularly libraries such as coroutines did not import correctly in IOS source.
so...@google.com <so...@google.com>
ga...@google.com <ga...@google.com> #5
Are you seeing this issue in Chipmunk/Dolphin, with the latest Kotlin IDE plugin? My guess is that this is an issue in the Kotlin Multiplatform integration, and that should probably be filed at
an...@google.com <an...@google.com> #6
Our team had requested additional information for this issue which was not provided within 30 days. Unfortunately there is not enough information for us to proceed and this issue is now closed.
In the future, if you encounter this or any other issue, please readhttps://developer.android.com/studio/report-bugs.html and file a new bug report with all the required information. This will help ensure the team can correctly triage, reproduce, and resolve your issue.
Thank you!
In the future, if you encounter this or any other issue, please read
Thank you!
Description
For months I have had a problem with my kotlinx.coroutines classes not showing up in the IDE. I am able to build and run the applications fine but they always show as red in the import and wherever they are used in the code and of course there is no code completion or the like. I have tried wiping out both the .gradle directory for the project and the one under ~/.gradle to remove all caches of the libraries and invalidated my caches on AS to no avail.
I've created a new project to attempt to reproduce the issue but so far no luck. I am able to see and use the kotlinx.coroutines classes properly in that project. I will attempt to continue to add gradle libraries from my last project to see if at some point the same behavior will happen. I've also git cloned the project to another directory and the problem still shows up.
Someone else experienced the same problems months ago and reported it on stackoverflow:
STEPS TO REPRODUCE:
1. (I will attempt to reproduce)
2.
3.
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
I've attached screenshots of the failing projects external libraries as they show only klib libaries of commonMain, concurrentMain, nativeMain. I've also shown the external libraries of a working project that imports the coroutines-core along with the source code and metadata, etc. Lastly I showed a screenshot of the source showing the errors.
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
------------------
IMPORTANT: Please read
all required information.
------------------
Studio Build: Android Studio Bumblebee | 2021.1.1 Canary 6
Build #AI-211.7628.21.2111.7584175, built on July 26, 2021
Runtime version: 11.0.10+0-b96-7281165 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.4
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: IdeaVIM (0.69), org.jetbrains.kotlin (211-1.5.21-release-328-AS7442.40), com.jetbrains.kmm (0.2.7(211-1.5.10-release-922-IJ)-86), org.jetbrains.compose.desktop.ide (1.0.0-alpha4-build310), com.squareup.sqldelight (1.5.1)
Version of Gradle Plugin: 7.1-alpha6
Version of Gradle: 7.1.1
Version of Java: 11 corretto
OS: OSX 11.4