You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -94,11 +94,9 @@ spawnLsp lspFormattingConfig codebase runtime signal =
94
94
caseErrno<$> ioe_errno ioerr of
95
95
Just errNo
96
96
| errNo == eADDRINUSE ->do
97
-
putStrLn$"Note: Port "<> lspPort <>" is already bound by another process or another UCM. The LSP server will not be started."
97
+
Text.hPutStrLn UnliftIO.stderr $"Note: Port "<>Text.pack lspPort <>" is already bound by another process or another UCM. The LSP server will not be started."
Left ioerror |IOError.isAlreadyInUseError ioerror ->do
480
+
Text.hPutStrLn UnliftIO.stderr $
481
+
Text.unlines
482
+
[ "Note: Port "
483
+
<>Text.pack (show p)
484
+
<>" is already bound by another process or another UCM. The UCM server will not be started."
485
+
]
486
+
Left e ->do
487
+
Text.hPutStrLn UnliftIO.stderr $
488
+
Text.unlines
489
+
[ "UCM server failure: "<>Text.pack (show e),
490
+
"The UCM server will not be restarted."
491
+
]
492
+
Right _ ->do
493
+
throwIO $ErrorCall"The UCM server exited unexpectedly, it will not be restarted."
494
+
Async.withAsync runServer \serverHandle ->do
495
+
-- Wait until either the server has started or the server has failed to start, then proceed with the callback, passing the base URL if the server started, and Nothing otherwise.
0 commit comments