vala-lang / vala-language-server

Code Intelligence for Vala & Genie
GNU Lesser General Public License v2.1
294 stars 43 forks source link

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

Open xcpky opened 3 months ago

xcpky commented 3 months ago

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