glsl_analyzer
glsl_analyzer copied to clipboard
Neovim INVALID_SERVER_MESSAGE -32601
Hey mate,
Appreciate your work on this glsl lsp. I'm trying to set up for my neovim. This is my config which is a very standard set up:
lspconfig.glsl_analyzer.setup(coq.lsp_ensure_capabilities({
on_attach = require("utils.handlers").on_attach,
capabilities = require("utils.handlers").capabilities,
}))
But getting the "-32601" error code when I start neovim and the lsp is attached. It also shows up whenever I started to edit anything:
This happened when I opened the file:
neovim message
LSP[glsl_analyzer]: Error INVALID_SERVER_MESSAGE: {
error = {
code = -32601,
message = "workspace/didChangeConfiguration"
},
jsonrpc = "2.0"
}
Press ENTER or type command to continue
~/.local/state/nvim/lsp.log
[START][2024-08-26 08:46:07] LSP logging initiated
[ERROR][2024-08-26 08:46:07] .../vim/lsp/rpc.lua:770 "rpc" "/home/wpham/.nix-profile/bin/glsl_analyzer" "stderr" "debug: method: 'initialize'\n"
[ERROR][2024-08-26 08:46:07] .../vim/lsp/rpc.lua:770 "rpc" "/home/wpham/.nix-profile/bin/glsl_analyzer" "stderr" "debug: method: 'initialized'\ndebug: method: 'workspace/didChangeConfiguration'\ndebug: method: 'textDocument/didOpen'\ndebug: opened: file:///home/wpham/learning/glsl/the_book_of_shaders/algorithmic_drawing/plot_line.frag : glsl : 0 : 539\n"
[ERROR][2024-08-26 08:46:07] ...m/lsp/client.lua:974 "LSP[glsl_analyzer]" "on_error" { code = "INVALID_SERVER_MESSAGE", err = { error = { code = -32601, message = "workspace/didChangeConfiguration" }, jsonrpc = "2.0" }}
This happened when I edited the file:
neovim message
LSP[glsl_analyzer]: Error INVALID_SERVER_MESSAGE: {
error = {
code = -32601,
message = "$/cancelRequest"
},
jsonrpc = "2.0"
}
Press ENTER or type command to continue
~/.local/state/nvim/lsp.log
[ERROR][2024-08-26 08:48:30] .../vim/lsp/rpc.lua:770 "rpc" "/home/wpham/.nix-profile/bin/glsl_analyzer" "stderr" "debug: method: 'textDocument/didChange'\ndebug: didChange: file:///home/wpham/learning/glsl/the_book_of_shaders/algorithmic_drawing/plot_line.frag\ndebug: method: 'textDocument/documentColor'\ndebug: method: 'textDocument/didChange'\ndebug: didChange: file:///home/wpham/learning/glsl/the_book_of_shaders/algorithmic_drawing/plot_line.frag\ndebug: method: 'textDocument/documentColor'\n"
[ERROR][2024-08-26 08:48:31] .../vim/lsp/rpc.lua:770 "rpc" "/home/wpham/.nix-profile/bin/glsl_analyzer" "stderr" "debug: method: 'textDocument/didChange'\ndebug: didChange: file:///home/wpham/learning/glsl/the_book_of_shaders/algorithmic_drawing/plot_line.frag\ndebug: method: 'textDocument/documentColor'\n"
[ERROR][2024-08-26 08:48:31] .../vim/lsp/rpc.lua:770 "rpc" "/home/wpham/.nix-profile/bin/glsl_analyzer" "stderr" "debug: method: 'textDocument/completion'\n"
[ERROR][2024-08-26 08:48:31] .../vim/lsp/rpc.lua:770 "rpc" "/home/wpham/.nix-profile/bin/glsl_analyzer" "stderr" "debug: complete: 19:3 file:///home/wpham/learning/glsl/the_book_of_shaders/algorithmic_drawing/plot_line.frag\n"
[ERROR][2024-08-26 08:48:32] .../vim/lsp/rpc.lua:770 "rpc" "/home/wpham/.nix-profile/bin/glsl_analyzer" "stderr" "debug: method: 'textDocument/didChange'\ndebug: didChange: file:///home/wpham/learning/glsl/the_book_of_shaders/algorithmic_drawing/plot_line.frag\ndebug: method: 'textDocument/documentColor'\ndebug: method: 'textDocument/didChange'\ndebug: didChange: file:///home/wpham/learning/glsl/the_book_of_shaders/algorithmic_drawing/plot_line.frag\ndebug: method: 'textDocument/documentColor'\ndebug: method: 'textDocument/didChange'\ndebug: didChange: file:///home/wpham/learning/glsl/the_book_of_shaders/algorithmic_drawing/plot_line.frag\ndebug: method: 'textDocument/documentColor'\n"
[ERROR][2024-08-26 08:48:32] .../vim/lsp/rpc.lua:770 "rpc" "/home/wpham/.nix-profile/bin/glsl_analyzer" "stderr" "debug: method: '$/cancelRequest'\n"
[ERROR][2024-08-26 08:48:32] ...m/lsp/client.lua:974 "LSP[glsl_analyzer]" "on_error" { code = "INVALID_SERVER_MESSAGE", err = { error = { code = -32601, message = "$/cancelRequest" }, jsonrpc = "2.0" }}
[ERROR][2024-08-26 08:48:33] .../vim/lsp/rpc.lua:770 "rpc" "/home/wpham/.nix-profile/bin/glsl_analyzer" "stderr" "debug: method: '$/cancelRequest'\n"
[ERROR][2024-08-26 08:48:33] ...m/lsp/client.lua:974 "LSP[glsl_analyzer]" "on_error" { code = "INVALID_SERVER_MESSAGE", err = { error = { code = -32601, message = "$/cancelRequest" }, jsonrpc = "2.0" }}
Any thoughts?