fwcd / fwcd/kotlin-language-server

Missing errors

Open
#407 0 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 noticed that the language server is unable to see all errors. E.g. for the modified code below from App.kt in [https://github.com/fwcd/kotlin-quick-start/](url) no error is reported:

package quick.start

shouldMarkThisAsError

class App {
val greeting: String
get() = "Hello world."
}

however running `./gradlew compileKotlin` reports:
`e: [...]/kotlin-quick-start/src/main/kotlin/quick/start/App.kt: (3, 1): Expecting a top level declaration`

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the modified App.kt example from kotlin-quick-start and compare language-server diagnostics with ./gradlew compileKotlin. Start by tracing how the language server reports syntax errors, then ensure the top-level declaration error at shouldMarkThisAsError is surfaced. Done means the language server reports the missing error for this example.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.