Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

KT-27223: Intellij code completion for extension methods used in precompiled script plugins #1145

Open
wolfs opened this issue Sep 27, 2018 · 4 comments

Comments

@wolfs
Copy link
Member

wolfs commented Sep 27, 2018

Code completion for extension methods defined in the same source set doesn't work for precompiled script plugins.

Expected Behavior

When trying to use an extension function, Intellij completes the name of the function.

Current Behavior

When I type in the name of the extension function, Intellij highlights it correctly and I can navigate to the source code:
image

Only typing part of the name doesn't show any completions:
image

Context

I was converting code from build.gradle.kts first into an extension function and then into a precompiled script plugin, which uses the extension function.

Steps to Reproduce (for bugs)

Here is the project I have been using: https://github.com/gradle/kotlin-dsl/blob/wolfs/jugm2018-talk/samples/hello-world/buildSrc/src/main/kotlin/my-plugin.gradle.kts

It is an adjusted version of the hello-world sample.

Your Environment

I am using Gradle 4.10.2, IntelliJ IDEA 2018.3 EAP (Ultimate Edition) Build #IU-183.2635.13 and the Kotlin plugin 1.3-M2-release-IJ2018.3-1.

@wolfs
Copy link
Member Author

wolfs commented Sep 27, 2018

@JLLeitschuh
Copy link
Contributor

@wolfs Traditionally, issues that are JB's issues have the title modified to reflect the external issue.
I suggest you rename your issue to:

IDEA-199593: Intellij code completion for extension methods used in precompiled script plugins

@wolfs wolfs changed the title Intellij code completion for extension methods used in precompiled script plugins IDEA-199593: Intellij code completion for extension methods used in precompiled script plugins Sep 27, 2018
@wolfs
Copy link
Member Author

wolfs commented Sep 27, 2018

Renamed. I guess @bamboo also may want to add some labels...

@wolfs
Copy link
Member Author

wolfs commented Sep 27, 2018

The issues was attributed to Kotlin: https://youtrack.jetbrains.com/issue/KT-27223

@wolfs wolfs changed the title IDEA-199593: Intellij code completion for extension methods used in precompiled script plugins KT-27223: Intellij code completion for extension methods used in precompiled script plugins Sep 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants