fwcd / kotlin-language-server

Kotlin code completion, diagnostics and more for any editor/IDE using the Language Server Protocol
MIT License
1.65k stars 209 forks source link

Couldn't find definition at .../.teamcity/settings.kts #219

Open tekumara opened 4 years ago

tekumara commented 4 years ago

I'm using vscode and fwcd/vscode-kotlin to work with a Teamcity pipeline defined in Kotlin.

In .teamcity/settings.kts I have:

project {
    subProject(BuildProject)
    subProject(DeployProject)
}

object BuildProject is defined in .teamcity/build/Project.kt

When I use "Go to definition" on BuildProject in the above snippet, I see the following in the output log:

[Info  - 5:22:49 PM] async0    Go-to-definition at .../.teamcity/settings.kts 32:18
[Info  - 5:22:49 PM] async0    Re-parsing settings.kts 23:9-34:2
[Info  - 5:22:49 PM] async0    Hovering REFERENCE_EXPRESSION
[Info  - 5:22:49 PM] async0    Couldn't find definition at .../.teamcity/settings.kts 32:18
[Info  - 5:22:49 PM] async0    Finished in 29 ms
nizam-betterapp commented 1 month ago

I am facing the same error. is there a any work around to fix this?