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] Unresolved declarations are resolved in KDoc #3681

Closed
atyrin opened this issue Jul 8, 2024 · 2 comments · Fixed by #3947
Closed

[K2] Unresolved declarations are resolved in KDoc #3681

atyrin opened this issue Jul 8, 2024 · 2 comments · Fixed by #3947
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 8, 2024

/**
 * Resolve value: [value]
 */
fun useValue() = value

value in the function body is unresolved in IDE.
K2: value in KDoc is resolved and refers to kotlin-stdlib-2.0.0-sources.jar!/commonMain/kotlin/util/Lazy.kt:44 for IDE and to https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/ for Dokka

K1: value in kdoc is unresolved

Installation

  • Dokka version: 2.0.0
@atyrin atyrin added the bug label Jul 8, 2024
@atyrin
Copy link
Contributor Author

atyrin commented Jul 8, 2024

@atyrin atyrin added the topic: K2 Issues / PRs that are related to the K2 migration. See #2888 label Jul 8, 2024
@atyrin atyrin changed the title [K2] Unresolved declaations are resolved in KDoc [K2] Unresolved declarations are resolved in KDoc Jul 8, 2024
@vmishenev
Copy link
Contributor

The general case:

fun getProperty() = 0
/**
 * [property] is resolved in K2, but - not in K1
 */
fun usage() = 0

Related issue: #3586

@whyoleg whyoleg added the blocked: AA Changes required in Analysis API label Aug 23, 2024
@vmishenev vmishenev removed the blocked: AA Changes required in Analysis API label Nov 5, 2024
@vmishenev vmishenev self-assigned this Nov 28, 2024
@vmishenev vmishenev linked a pull request Dec 4, 2024 that will close this issue
@whyoleg whyoleg added this to the Dokka 2.0.0 milestone Dec 5, 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