Open Strum355 opened 6 years ago
@Strum355 I do not see any issues with this line:
The Gradle build did pass too: https://travis-ci.org/fwcd/KotlinLanguageServer/builds/409471711
Maybe you have edited the file unintentionally?
yea thats the point, i had edited it myself but KotlinLangServer didnt give a diagnostic for it, the output as shown in the codeblock also says that theres no diagnostics. Even if i changed a character to try refresh it, it still would mark it as not an error
@Strum355 The linter ist not 100% accurate currently, because the mechanism used to incrementally compile an expression is somewhat hacky.
Maybe some kind of race condition occurred when the compiler tries to evaluate your currently selected expression as you move your cursor too quickly for the linter to keep up.
I will leave this open for now.
I tried to reduce the possible outside interference, typing only one character to see if anything would refresh, not moving my mouse. Maybe there was some bad state left over, I dont know the workings of this (yet! Hopefully i can get around to learning it!) Thanks for your great work anyways, especially with providing gradle support!
Out of curiosity, do all features (hover, code completion, diagnostics etc) run on the one thread async or do they all have a dedicated thread upon which they run async?
@Strum355 Yes, they all run on a single async thread (except for the linter), because the Kotlin compiler internals seem to have trouble with concurrency (see #42).
I have the following line (from this repo)
return Hover(listOf(Either.forRight(MarkedString("kotlin", hoverText)
for which KLS reports:while gradle complains:
e: /home/noah/Kotlin/KotlinLanguageServer/src/main/kotlin/org/javacs/kt/hover/hovers.kt: (51, 74): Expecting ')'