-
Notifications
You must be signed in to change notification settings - Fork 3
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
tower-lsp hangs on exit
notification
#12
Comments
@mrnossiom, I've reposted my PR to this fork, let's discuss over there: #14
Are you referring to this? Let's discuss over there.
You've linked to a line of code that is a
Sure, here's a minimal repro. You'll need to open 2 terminals. In terminal 1, clone and run harper-ls:
In terminal 2, run something like this:
(If you do not have In terminal 1, you will see harper print this, but it does not exit:
In terminal 2, you will see something like this:
|
Many users of tower-lsp have reported issues when sending an
exit
notificationSee original issues ebkalderon/tower-lsp#428, ebkalderon/tower-lsp#399, ebkalderon/tower-lsp#424 (duplicate).
See denoland/deno#20700. Fixed with a timeout workaround on their side.
See Automattic/harper#139.
jfly had already made a PR ebkalderon/tower-lsp#428.
However, I am unsure of the steps taken in his PR. Besides, it changes public API.
Furthermore, after reviewing the relevant part (https://github.com/tower-lsp/tower-lsp/blob/main/src/transport.rs#L134) changing the return to a break should disconnect the channels and stop the join. I couldn't reproduce it with helix tonight. If someone has a minimum repro or steps to see the bug... 😄
EDIT: swapped return and break
The text was updated successfully, but these errors were encountered: