Open raxod502 opened 1 year ago
Maybe the version of Kotlin used by kotlin-language-server is hardcoded to 1.6.0 and I need to upgrade to a build from source as https://github.com/fwcd/kotlin-language-server/pull/414 has not made it into a release yet? (If so, would be great to document the supported Kotlin versions somewhere; I had assumed all versions were supported.)
Followed the instructions in Building and with that version the error no longer occurs. Would be great to have this documented. I'm happy to help if that would be handy.
This is sadly a known issue. ~Only one person is able to do releases, and they are super busy with other things.~ I guess those of us who are fairly active here was hoping that we would get a new release, to avoid this issue being posted many times both here and in the VSCode plugin repo 🙁 Hopefully we can get the automatic releases PR merged soon 🙂
EDIT: Seems I have rights to push tags now (failed last time I tried), but the release pipeline is broken...
A new version was released last night! 😄 (thank you @fwcd !!!). This will probably be resolved by using that newest version.
I have a working Android project (that is,
./gradlew build
builds an apk file that can be installed and run) which is written in Kotlin. When I open the project in Emacs with LSP using kotlin-language-server, I receive the following diagnostic on every line of code:I checked Editor integration and Troubleshooting but did not see any relevant tips. I also searched the issue tracker but found only https://github.com/fwcd/kotlin-language-server/issues/198#issuecomment-1367081783 as a reference, which doesn't seem relevant in this case.
Here's my
build.gradle.kts
:I don't, to my knowledge, have Kotlin installed globally on my system. The only place it's installed is via Gradle in this project, where the version is specified in
build.gradle.kts
as 1.8.20. I am not sure where this other 1.6.0 version number is coming from that is being referenced by kotlin-language-server.If it would help in diagnosing the issue, I am happy to provide a sample project that reproduces the issue, or relevant logs.