fwcd / fwcd/kotlin-language-server

Diagnostics false negatives

Open
#47 5 comments 0 reactions 0 assignees View on GitHub
bug diagnostics
Dominant language
Kotlin
Stars
2k
Forks
252
PR merge metrics
No merged PRs in 30d

Description

I have the following line (from this repo) `return Hover(listOf(Either.forRight(MarkedString("kotlin", hoverText)` for which KLS reports:
```
[INFO] debounce0 main Linting .../hover/hovers.kt
[INFO] async0 main Finished in 11 ms
[INFO] debounce0 main No diagnostics in hovers.kt
[INFO] async0 main Find symbols in TextDocumentIdentifier [
uri = "file:///home/noah/Kotlin/KotlinLanguageServer/src/main/kotlin/org/javacs/kt/hover/hovers.kt"
]
```

while gradle complains:
`e: /home/noah/Kotlin/KotlinLanguageServer/src/main/kotlin/org/javacs/kt/hover/hovers.kt: (51, 74): Expecting ')'`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the diagnostics handling for the reported line in src/main/kotlin/org/javacs/kt/hover/hovers.kt and compare KLS output with the Gradle error at line 51, column 74. The fix is complete when this syntax error is reported as a diagnostic rather than producing “No diagnostics.”

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.