LanguageServer.jl icon indicating copy to clipboard operation
LanguageServer.jl copied to clipboard

Language Server Crashes on Neovim Windows 11

Open HariharanJayashankar opened this issue 1 year ago • 2 comments

Hello

Recently the julia language server has stopped working for me on Neovim on Windows.

Here is the relevant LspLog

[ERROR][2024-11-20 13:39:15] .../vim/lsp/rpc.lua:770	"rpc"	"C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\bin\\julia-lsp.CMD"	"stderr"	"[ Info: Starting LS with Julia 1.11.1\n"
[ERROR][2024-11-20 13:39:16] .../vim/lsp/rpc.lua:770	"rpc"	"C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\bin\\julia-lsp.CMD"	"stderr"	"  Activating"
[ERROR][2024-11-20 13:39:16] .../vim/lsp/rpc.lua:770	"rpc"	"C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\bin\\julia-lsp.CMD"	"stderr"	" "
[ERROR][2024-11-20 13:39:16] .../vim/lsp/rpc.lua:770	"rpc"	"C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\bin\\julia-lsp.CMD"	"stderr"	"project at `C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\packages\\julia-lsp\\extension\\scripts\\environments\\languageserver\\v1.11`\n"
[ERROR][2024-11-20 13:39:16] .../vim/lsp/rpc.lua:770	"rpc"	"C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\bin\\julia-lsp.CMD"	"stderr"	"[ Info: Starting the Julia Language Server\n"
[ERROR][2024-11-20 13:39:17] .../vim/lsp/rpc.lua:770	"rpc"	"C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\bin\\julia-lsp.CMD"	"stderr"	"[ Info: Symbol server store is at 'C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\packages\\julia-lsp\\bin\\..\\store\\symbolstorev5'.\n"
[ERROR][2024-11-20 13:39:18] .../vim/lsp/rpc.lua:770	"rpc"	"C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\bin\\julia-lsp.CMD"	"stderr"	"[ Info: Starting LS at 1732127959\n"
[ERROR][2024-11-20 13:39:28] .../vim/lsp/rpc.lua:770	"rpc"	"C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\bin\\julia-lsp.CMD"	"stderr"	"┌ Error: Some Julia code in the VS Code extension crashed\n└ @ Main C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\packages\\julia-lsp\\extension\\scripts\\error_handler.jl:15\n"
[ERROR][2024-11-20 13:39:29] .../vim/lsp/rpc.lua:770	"rpc"	"C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\bin\\julia-lsp.CMD"	"stderr"	"ERROR: "
[ERROR][2024-11-20 13:39:29] .../vim/lsp/rpc.lua:770	"rpc"	"C:\\Users\\harih\\AppData\\Local\\nvim-data\\mason\\bin\\julia-lsp.CMD"	"stderr"	"This should not happen"

I have neovim version NVIM v0.10.2.

I am using Mason-lsp config to handle the language servers on neovim.

For reference the langauge server does seem to work on vscode.

Any help would be appreciated

HariharanJayashankar avatar Nov 20 '24 19:11 HariharanJayashankar

I have opened a pull request months ago, that I believe would fix this bug: #1319. However, it seems like this repository is currently abandoned, and there has not been any reaction to that PR yet. So your current alternatives would either be to downgrade to an older version of LanguageServer.jl, use Linux or macOS, or use a client which uses lowercase drive letters in file paths (VSCode).

jwortmann avatar Nov 24 '24 16:11 jwortmann

I see, maybe I'll give your fix a try on my local PC. It is strange that this issue only started for me a couple of weeks ago.

HariharanJayashankar avatar Nov 24 '24 19:11 HariharanJayashankar