-
Notifications
You must be signed in to change notification settings - Fork 434
IDEA-15406 - Cannot navigate to kotlin-dsl sources from .kt files when using kotlin-dsl Gradle plugin in IntelliJ IDEA #514
Comments
Thanks for the report @Minecrell! |
@eskatos Weird, it's the exact opposite for me(?). I was able to navigate to Gradle API source (e.g. the |
@Minecrell 🤔 which version of IntelliJ and the Kotlin Plugin for it are you using? |
@eskatos IntelliJ IDEA 2017.2.5 with Gradle 4.2 (and the version of I just tried with "Use default Gradle wrapper" and the latest snapshot distribution used on the For reference, the project I'm testing with is available at https://github.com/Minecrell/plugin-yml. In |
Note I'm using a After invalidating all IntelliJ caches, restarting, I can reproduce the issues:
For the Gradle Kotlin DSL API, sources are embedded in the jars. For the Gradle API, it's another story and is currently enabled by using a Interestingly as soon as you open a |
IntelliJ issue for recognizing sources embedded in jars: |
And the |
We can't work around https://youtrack.jetbrains.com/issue/IDEA-15406 by publishing |
To sum up: Navigating to Gradle API sources from
Navigating to Kotlin DSL sources from
|
Turning this issue into a vendor issue for IDEA-15406. |
I'm using the
kotlin-dsl
Gradle plugin to create a new Gradle plugin written in Kotlin together with IntelliJ IDEA. When using the kotlin-dsl extension methods inbuild.gradle.kts
, navigation to the source works correctly. However, it does not work when using thekotlin-dsl
Gradle plugin. Instead, IntelliJ IDEA navigates to the decompiled stub source file.Using the test class below, the two methods marked with a comment do not have sources attached:
I can provide a full test project if necessary. However, it's simple to reproduce by applying the
kotlin-dsl
Gradle plugin in a project and then using the test class above.Expected Behavior
Navigation to sources should work in IntelliJ IDEA for kotlin-dsl extension methods when using the
kotlin-dsl
Gradle plugin to create a Gradle plugin.Current Behavior
IntelliJ IDEA navigates to a decompiled stub source file.
The text was updated successfully, but these errors were encountered: