Skip to content

fix(ocamlformat-rpc): degrade gracefully when the process dies at startup - #2133

Open
rgrinberg wants to merge 1 commit into
masterfrom
push-sosupvlrsvsp
Open

fix(ocamlformat-rpc): degrade gracefully when the process dies at startup#2133
rgrinberg wants to merge 1 commit into
masterfrom
push-sosupvlrsvsp

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

An ocamlformat-rpc process that dies or produces garbage during startup
version negotiation used to raise an uncaught exception ("fd closed
unflushed") that failed the hover request with an internal error.

Wrap Process.create in Fiber.collect_errors and report the failure as an
error LogMessage, degrading to unformatted hover types instead of failing
the request. Fixes the reproduction in #2132.

…rtup

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant