Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"exit" notification doesn't seem to be correctly handled #424

Open
VladimirMakaev opened this issue Jul 18, 2024 · 1 comment
Open

"exit" notification doesn't seem to be correctly handled #424

VladimirMakaev opened this issue Jul 18, 2024 · 1 comment

Comments

@VladimirMakaev
Copy link

When server receives "exit" notification it should exit from Server::new(stdin, stdout, socket).serve(service).await call however it doesn't seem to be happening in the testing I'm doing

To repro you can run a server from example and send "initialize", "initialized", "shutdown", "exit" to it. What happens internally is that server keeps receiving messages and serve never exits. The server does enter "Exited" state and I can see in trace message below if I send a follow up request to the server:

 ERROR tower_lsp::transport: language server has exited

It's also impossible to know that "exit" was received from the API surface

@tekumara
Copy link

Duplicate of #399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants