mattn / efm-langserver

General purpose Language Server
MIT License
1.34k stars 61 forks source link

the language server fails on changing buffer #221

Open devyhia opened 2 years ago

devyhia commented 2 years ago

Hi, when using the language server, it fails on changing between buffers with following errors:

[ERROR][2022-05-31 10:11:40] .../vim/lsp/rpc.lua:420    "rpc"   "efm-langserver"    "stderr"    '2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders
2022/05/31 10:11:40 jsonrpc2 handler: notification "workspace/didChangeWorkspaceFolders" handling error: jsonrpc2: code -32601 message: method not supported: workspace/didChangeWorkspaceFolders

Any idea how to fix that behavior?

mattn commented 2 years ago

Could you please try https://github.com/mattn/efm-langserver/pull/223 ?