Skip to content

fix: notify LSP client when worker process crashes#12736

Open
wvhulle wants to merge 1 commit intoleanprover:masterfrom
wvhulle:wvhulle/lsp-worker-crash-notify
Open

fix: notify LSP client when worker process crashes#12736
wvhulle wants to merge 1 commit intoleanprover:masterfrom
wvhulle:wvhulle/lsp-worker-crash-notify

Conversation

@wvhulle
Copy link

@wvhulle wvhulle commented Feb 28, 2026

This PR fixes the problem that LSP clients are currently never notified if a panics occurs in the LSP servers file worker.

This PR sends a `window/showMessage` notification to the LSP client when a
file worker process crashes so the editor can display a visible error
instead of silently failing.
@wvhulle wvhulle marked this pull request as ready for review February 28, 2026 12:05
@wvhulle wvhulle requested a review from mhuisi as a code owner February 28, 2026 12:05
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Feb 28, 2026
@mathlib-lean-pr-testing
Copy link

Mathlib CI status (docs):

  • ❗ Mathlib CI can not be attempted yet, as the nightly-testing-2026-02-28 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Mathlib CI should run now. You can force Mathlib CI using the force-mathlib-ci label. (2026-02-28 12:46:16)

@leanprover-bot
Copy link
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-02-28 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-02-28 12:46:18)

@wvhulle
Copy link
Author

wvhulle commented Mar 1, 2026

The message of the bot is not clear to me. I have rebased onto the branch mentioned but the bot still shows the message @WojciechKarpiel @mhuisi .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants