-
-
Notifications
You must be signed in to change notification settings - Fork 115
CLI Runtime: Improve handling of language server failures #5308
Copy link
Copy link
Open
Labels
internal-onlyThis involves CI, our infra, or otherwise should be done by an internal devThis involves CI, our infra, or otherwise should be done by an internal dev
Description
Our language server is run by our darklang CLI runtime/executable, in a long-running function that's constantly consuming stdin and putting responses on stdout.
Generally this works great -- we get JSON blobs in, and put JSON blobs out.
However, we aren't currently handling failures very gracefully -- if there's a runtime exception, we end up printing that, which isn't json and thus causes the language server (and the extension which houses it) to fail/crash.
I imagine we'll support a darklang lsp command which will have special functionality for handling such failures gracefully.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
internal-onlyThis involves CI, our infra, or otherwise should be done by an internal devThis involves CI, our infra, or otherwise should be done by an internal dev