erlang-language-platform icon indicating copy to clipboard operation
erlang-language-platform copied to clipboard

`elp server` process stays up after a window reload

Open robertoaloi opened this issue 1 year ago • 2 comments

After a window reload, the prior server is not killed.

Originally reported in Slack.

robertoaloi avatar Jul 05 '24 07:07 robertoaloi

I just checked and likely the same issue affects neovim (installation with mason.nvim). Every time I start neovim, a new elp process is started. I have a dozen running right now. :)

mkuratczyk avatar Jul 05 '24 13:07 mkuratczyk

I meet this issue too in my neovim.

Here is my environment:

$ elp version
elp 1.1.0+build-2024-06-07

The elp binary: elp-macos-aarch64-apple-darwin-otp-25.3.tar.gz manually installed in my PATH.

When I quit nvim, the elp server process is still running. It seems to have become an orphaned process.

In the DEBUG level log of neovim, it shows the shutdown and exit methods of the lsp RPC were actually sent when I quit neovim. But the elp server was still there.

If I execute :LspStop elp ++force or :lua vim.lsp.get_active_clients()[2].stop(true)in the neovim, the elp server is killed.

belltoy avatar Jul 18 '24 09:07 belltoy