vala-language-server icon indicating copy to clipboard operation
vala-language-server copied to clipboard

[Helix Editor] Timed out waiting for language servers to shutdown

Open xcpky opened this issue 1 year ago • 1 comments

Describe the bug whenever I exit in helix editor (:q or so), helix stucks and after a few seconds I get "Timed out waiting for language servers to shutdown".

Software OS and version : archlinux 6.10.2-arch1-1 Code editor : Helix Vala Language Server: 0.48.7 Vala version (valac --version): 0.56.17

To Reproduce Steps to reproduce the behavior:

  1. create a file that ends with .vala
  2. use helix to open the file like hx main.vala
  3. quit in any way (:q, :q!, :wq or so)
  4. Helix stucks waiting for vls to stop, and after a few seconds we should see "Timed out waiting for language servers to shutdown"

Here is the log from helix side, the most relevant part should be

2024-08-04T19:18:09.081 helix_lsp::transport [ERROR] vala-language-server err <- "(vala-language-server:14930): vls-WARNING **: 19:18:09.036: server.vala:155: unhandled notification `initialized'\n"
2024-08-04T19:18:31.940 helix_lsp::transport [ERROR] vala-language-server err <- "\n"
2024-08-04T19:18:31.940 helix_lsp::transport [ERROR] vala-language-server err <- "(vala-language-server:14930): jsonrpc-client-WARNING **: 19:18:31.938: Unhandled RPC from peer!\n"
2024-08-04T19:18:34.939 helix_term::application [ERROR] Timed out waiting for language servers to shutdown

vls-helix.log

xcpky avatar Aug 04 '24 11:08 xcpky

one small workaround, :lsp-stop first before quit prevents this issue. But it's no so practical anyway....

xcpky avatar Jan 17 '25 05:01 xcpky