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

Module "dev.gitlive:firebase-auth" has a reference to symbol dev.gitlive.firebase.auth/FirebaseUser.displayName.. #296

Closed
OmarShehe opened this issue Apr 28, 2022 · 8 comments

Comments

@OmarShehe
Copy link

OmarShehe commented Apr 28, 2022

Using dev.gitlive:firebase-auth:1.6.1
I'm getting this error when trying to access Firebase.auth

This could happen if the required dependency is missing in the project. Or if there is a dependency of "dev.gitlive:firebase-auth" that has a different version in the project than the version that "dev.gitlive:firebase-auth" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.

The list of "dev.gitlive:firebase-auth" dependencies that may lead to conflicts:
1. "kotlin" (a library with unknown version)
2. "dev.gitlive:firebase-app" (a library with unknown version)
3. "dev.gitlive:firebase-common" (a library with unknown version)
4. "org.jetbrains.kotlinx:atomicfu" (a library with unknown version)
5. "org.jetbrains.kotlinx:kotlinx-coroutines-core" (a library with unknown version)
6. "org.jetbrains.kotlinx:kotlinx-serialization-core" (a library with unknown version)

Project dependencies:
+--- kotlin
+--- androidx.compose.runtime:runtime
|    +--- kotlin
|    +--- org.jetbrains.kotlinx:atomicfu
|    |    \--- kotlin
|    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core
|         +--- kotlin
|         \--- org.jetbrains.kotlinx:atomicfu (*)
+--- app.softwork:kotlinx-uuid-core
|    +--- kotlin
|    \--- org.jetbrains.kotlinx:kotlinx-serialization-core
|         \--- kotlin
+--- app.softwork:routing-compose
|    +--- kotlin
|    +--- androidx.compose.runtime:runtime (*)
|    +--- app.softwork:kotlinx-uuid-core (*)
|    +--- org.jetbrains.compose.web:internal-web-core-runtime
|    |    +--- kotlin
|    |    +--- androidx.compose.runtime:runtime (*)
|    |    +--- org.jetbrains.kotlinx:atomicfu (*)
|    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (*)
|    +--- org.jetbrains.compose.web:web-core
|    |    +--- kotlin
|    |    +--- androidx.compose.runtime:runtime (*)
|    |    +--- org.jetbrains.compose.web:internal-web-core-runtime (*)
|    |    +--- org.jetbrains.kotlinx:atomicfu (*)
|    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (*)
|    +--- org.jetbrains.kotlinx:atomicfu (*)
|    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core (*)
|    \--- org.jetbrains.kotlinx:kotlinx-serialization-core (*)
+--- com.spatialcollective:Microtask
|    +--- kotlin
|    +--- androidx.compose.runtime:runtime (*)
|    +--- app.softwork:kotlinx-uuid-core (*)
|    +--- app.softwork:routing-compose (*)
|    +--- dev.gitlive:firebase-app
|    |    +--- kotlin
|    |    +--- dev.gitlive:firebase-common
|    |    |    +--- kotlin
|    |    |    +--- org.jetbrains.kotlinx:atomicfu (*)
|    |    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core (*)
|    |    |    \--- org.jetbrains.kotlinx:kotlinx-serialization-core (*)
|    |    +--- org.jetbrains.kotlinx:atomicfu (*)
|    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core (*)
|    |    \--- org.jetbrains.kotlinx:kotlinx-serialization-core (*)
|    +--- dev.gitlive:firebase-auth
|    |    ^^^ This module requires symbol dev.gitlive.firebase.auth/FirebaseUser.displayName.<get-displayName>|-7122534302014937473[1].
|    |    +--- kotlin
|    |    +--- dev.gitlive:firebase-app (*)
|    |    +--- dev.gitlive:firebase-common (*)
|    |    +--- org.jetbrains.kotlinx:atomicfu (*)
|    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core (*)
|    |    \--- org.jetbrains.kotlinx:kotlinx-serialization-core (*)
|    +--- dev.gitlive:firebase-common (*)
|    +--- org.jetbrains.compose.web:internal-web-core-runtime (*)
|    +--- org.jetbrains.compose.web:web-core (*)
|    +--- org.jetbrains.kotlinx:atomicfu (*)
|    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core (*)
|    \--- org.jetbrains.kotlinx:kotlinx-serialization-core (*)
+--- dev.gitlive:firebase-app (*)
+--- dev.gitlive:firebase-auth (*)
|    ^^^ This module requires symbol dev.gitlive.firebase.auth/FirebaseUser.displayName.<get-displayName>|-7122534302014937473[1].
+--- dev.gitlive:firebase-common (*)
+--- org.jetbrains.compose.web:internal-web-core-runtime (*)
+--- org.jetbrains.compose.web:web-core (*)
+--- org.jetbrains.kotlinx:atomicfu (*)
+--- org.jetbrains.kotlinx:kotlinx-coroutines-core (*)
\--- org.jetbrains.kotlinx:kotlinx-serialization-core (*)

(*) - dependencies omitted (listed previously)


@OmarShehe OmarShehe changed the title Module "dev.gitlive:firebase-auth" has a reference to symbol dev.gitlive.firebase.auth/FirebaseUser.displayName.<get-displayName>|-7122534302014937473[1]. Neither the module itself nor its dependencies contain such declaration. Module "dev.gitlive:firebase-auth" has a reference to symbol dev.gitlive.firebase.auth/FirebaseUser.displayName.. Apr 28, 2022
@rocketraman
Copy link

See this comment: #277 (comment)

The root cause of this is a bug in the IR compiler: https://youtrack.jetbrains.com/issue/KT-48836.

A (non-backward-compatible) patch for this is innertech@0358eb4 but any existing code that relies on the default values of the patched call will unintentionally set existing values in Firebase to null. If you don't care about backward compatibility, that patch works just fine.

@Darkos-den
Copy link

I faced the same issue. @rocketraman Need to download the repository and make a local patch to solve this problem?

@rocketraman
Copy link

@Darkos-den We do have pre-built GitHub packages, if you want to use those: https://github.com/orgs/innertech/packages?repo_name=firebase-kotlin-sdk.

@rocketraman
Copy link

For anyone tracking this issue, I've published new patched packages for version 1.6.2 that are built on Kotlin 1.7.10 (they contain the changes from https://github.com/suntrix/firebase-kotlin-sdk/tree/kotlin-1-7-10) as well as the patch for this issue (https://youtrack.jetbrains.com/issue/KT-48836).

https://github.com/orgs/innertech/packages?repo_name=firebase-kotlin-sdk

@jankusy
Copy link

jankusy commented Jun 15, 2023

Hi 👋. Any update about this? I also have this issue with v1.8.1. on js target platform. Currently I've decided to use https://github.com/orgs/innertech/packages?repo_name=firebase-kotlin-sdk but It would be great to have the newest version of firebase libs.

@ahmedsalemelzeiny
Copy link

@rocketraman Can you we get a new published version with this fix and v1.8.1

@rocketraman
Copy link

rocketraman commented Aug 26, 2023

@jankusy @ahmedsalemelzeiny @OmarShehe Looks like 1.8.2 was released which has a workaround for this issue.

@nbransby
Copy link
Member

nbransby commented Sep 2, 2023

I believe this has been fixed in 1.9.0 - please reopen if something is missing

@nbransby nbransby closed this as completed Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants