You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, sources for the kotlinx-coroutines-play-services artifact aren't recognised, resulting in IntelliJ decompiling the Kotlin source-code when viewing the source of a method, for example the Task.await() method.
This appears to be because the Gradle Module Metadata file that's published onto Maven Central doesn't advertise to end consumers that a sources jar is available, so IntelliJ doesn't download one:
/** * Asynchronously creates a user using the email + password authentication method, * with the given [email] and [password]. * @return The result of the user creation request. * @see FirebaseAuth.createUserWithEmailAndPassword*/suspendfun FirebaseAuth.createUserWithEmailAndPasswordAsync(
email:String, password:String
): AuthResult= createUserWithEmailAndPassword(email, password).await()
View source on the await() method
Notice that it navigates to the decompiled Kotlin class rather than the source code (and also showing a licensing warning)
The text was updated successfully, but these errors were encountered:
EdricChan03
changed the title
Play Services artifact GMM doesn't advertise the existence of a sources jar
Play Services artifact Gradle Module Metadata doesn't advertise the sources jar
Apr 22, 2024
EdricChan03
changed the title
Play Services artifact Gradle Module Metadata doesn't advertise the sources jar
Play Services artifact Gradle Module Metadata doesn't advertise the sources jar's existence
Apr 22, 2024
Describe the bug
Currently, sources for the
kotlinx-coroutines-play-services
artifact aren't recognised, resulting in IntelliJ decompiling the Kotlin source-code when viewing the source of a method, for example theTask.await()
method.This appears to be because the Gradle Module Metadata file that's published onto Maven Central doesn't advertise to end consumers that a sources jar is available, so IntelliJ doesn't download one:
(from https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-play-services/1.8.0/kotlinx-coroutines-play-services-1.8.0.module)
Expand to view GMM file for kotlinx-coroutines-play-services 1.8.0
This is compared to the other artifacts (such as
kotlinx-coroutines-core-jvm
), which does expose that a sources jar exists:Expand to view GMM file for kotlinx-coroutines-core-jvm 1.8.0
Provide a Reproducer
(
gradle/libs.versions.toml
)Task.await()
await()
methodThe text was updated successfully, but these errors were encountered: