-
Notifications
You must be signed in to change notification settings - Fork 4
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
refact-lsp process handling #3
Comments
I just confirmed that turning off the wi-fi produces a timeout error in the status bar. |
Cool, but we need error to go via LSP, not through stderr. We want a good product, written correctly, no hacks. |
The error is generated from the rpc connection. The rpc connection uses stdio in favour of an http connection because the server is running locally. |
The main reason the code monitors the process through stderr is to address the issue where the server would crash but the process would not terminate. By monitoring for crashes directly the code is able to cleanly close the server. |
|
This code is over a month old. If the refact server doesn't crash anymore then this code can be removed. |
Checked #16 - changing option in plugin settings restarts the refact-lsp. |
process_server_errors()
approach is probably not a good idea (a thread?), it's better to save logs to~/.cache/refact/logs/
by removing--logs-stderr
.The process does not restart with relevant settings change, specifically api_key, address_url, telemetry_code_snippets.
Errors that are kind of caught there:
-- but they really need to go via LSP RPC. The simple test is to turn off wi-fi, does this produce a disconnected icon in the status bar or not?
The text was updated successfully, but these errors were encountered: