Open B1kku opened 2 months ago
Could this be related to https://github.com/fwcd/kotlin-language-server/issues/546 ?
I had the same issue, but the solution was quite obvious. When I was opening a dir rather then a file i did not had the gradle file in the CWD, opening the file itself or the project root director fixes the problem.
In may case it was a React Native project which has gradle files in the android/ subdirectory.
I'm sure that there is a nice way to set root_dir configuration to detect the proper root with gradle or other build system
Surely this is a bug in the kotlin server? What is needed from nvim-lspconfig, which is just a collection of data?
Description
Hi there, I've noticed the kotlin_language_server crashes if you cd before opening a kotlin project, so for example, start neovim at
~
, do:cd KotlinProject
, so~/KotlinProject
open any KT file (I've only tested on gradle projects tho), proceeds to give an error. It works fine if you don't do that.Doesn't happen to any other LSP that I've used, it turns pretty annoying specially if you use a sessions plugin or something similar.
I've fixed it by changing the default
init_options.storagePath
toBut I'm unsure why this happens, or if it's a good fix.
Lsp Log: