Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/Lean/Server/Watchdog.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1540,9 +1540,12 @@ section MainLoop
(ErrorCode.workerExited, "see stderr for exception")
else
(ErrorCode.workerCrashed, "likely due to a stack overflow or a bug")
errorPendingRequests uri errorCode
s!"Server process for {uri} crashed, {errorCausePointer}."
let crashMsg := s!"Server process for {uri} crashed, {errorCausePointer}."
errorPendingRequests uri errorCode crashMsg
writeMessage <| mkFileProgressAtPosNotification doc 0 (kind := LeanFileProgressKind.fatalError)
writeMessage <| (⟨"window/showMessage",
{ type := MessageType.error, message := crashMsg : ShowMessageParams }⟩ :
JsonRpc.Notification ShowMessageParams)
setWorkerState fw .crashed
mainLoop clientTask
| WorkerEvent.terminated =>
Expand Down
Loading