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

[K2] KMP: Unresolved declarations from another module in Android + JVM project #3702

Closed
atyrin opened this issue Jul 19, 2024 · 2 comments · Fixed by #3941
Closed

[K2] KMP: Unresolved declarations from another module in Android + JVM project #3702

atyrin opened this issue Jul 19, 2024 · 2 comments · Fixed by #3941
Assignees
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888
Milestone

Comments

@atyrin
Copy link
Contributor

atyrin commented Jul 19, 2024

  1. Create a project with 2 KMP module (android + jvm + any other target)
  2. In Module1 declare a type
    e.g.
object Firebase
  1. In Module2 declare two functions: one in the Android source set, another in the JVM source set that uses Firebase object. Two of them because I assume that the selected target may change

With K1 the extension page will have all platforms
image

K2:
image

dokka-repros.zip

@atyrin atyrin added bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888 labels Jul 19, 2024
@vmishenev vmishenev self-assigned this Jul 31, 2024
vmishenev added a commit that referenced this issue Jul 31, 2024
@vmishenev
Copy link
Contributor

vmishenev commented Jul 31, 2024

Reproducer: 18e2b60
This is blocked by https://youtrack.jetbrains.com/issue/KT-70384/Analysis-API-Standalone-The-same-class-in-the-same-two-renamed-jars-is-unresolved


Theoretically having classes with the same FQN in different jars is enough to reproduce it.

vmishenev added a commit that referenced this issue Jul 31, 2024
@vmishenev vmishenev changed the title [K2] Unresolved declarations from another module in Android + JVM project [K2] KMP: Unresolved declarations from another module in Android + JVM project Aug 16, 2024
@whyoleg whyoleg added the blocked: AA Changes required in Analysis API label Aug 23, 2024
@whyoleg whyoleg added this to the Dokka 2.1.0 milestone Aug 23, 2024
@whyoleg
Copy link
Collaborator

whyoleg commented Sep 9, 2024

fixed in upstream: published in 2.1.0-dev-6739

@whyoleg whyoleg removed the blocked: AA Changes required in Analysis API label Sep 9, 2024
@vmishenev vmishenev linked a pull request Nov 28, 2024 that will close this issue
@whyoleg whyoleg modified the milestones: Dokka 2.1.0, Dokka 2.0.0 Nov 28, 2024
vmishenev added a commit that referenced this issue Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants