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

can't view KDoc or source code of generated Kotlin dependency extensions in IDE #20995

Closed
aSemy opened this issue Jun 12, 2022 · 0 comments · Fixed by #21115
Closed

can't view KDoc or source code of generated Kotlin dependency extensions in IDE #20995

aSemy opened this issue Jun 12, 2022 · 0 comments · Fixed by #21115
Assignees
Labels
a:bug in:kotlin-dsl @support Issues owned by GBT support team
Milestone

Comments

@aSemy
Copy link
Contributor

aSemy commented Jun 12, 2022

Context

I recently discovered that there's a val, embeddedKotlinVersion, provided to help align the embedded Kotlin version during plugin development.

// build.gradle.kts
import org.gradle.kotlin.dsl.embeddedKotlinVersion

plugins {
  kotlin("jvm") version embeddedKotlinVersion

  idea
}

However it's not clear what this is, as the source code and KDoc isn't available.

Current Behaviour

Hovering over the value doesn't reveal the docs in the pop-up:

image

If I cmd+click to go to the source, it's not available:

image

However I can see some good documentation in the source code. It's a real shame it's not visible! It would certainly help me a lot.

/**
* The version of the Kotlin compiler embedded in gradle-kotlin-dsl (currently _${embeddedKotlinVersion}_).
*/
val embeddedKotlinVersion = "$embeddedKotlinVersion"

Expected Behaviour

I expect to be able to view the source code and/or KDoc in my IDE when I'm developing.

Steps to Reproduce

I've tried enabling as much 'download sources' options as possible.

tasks.wrapper {
  gradleVersion = "7.5-rc-2"
  distributionType = Wrapper.DistributionType.ALL
}

idea {
  module {
    isDownloadSources = true
    isDownloadJavadoc = true
  }
}

Your Environment

Versions

  • Gradle
    • 7.5-rc-2
    • 7.4.2
  • Kotlin 1.7.0
  • IntelliJ IDEA 2022.1.2 (Ultimate Edition) Build #IU-221.5787.30, built on May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug in:kotlin-dsl @support Issues owned by GBT support team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants