Skip to content

Commit 8bf63f7

Browse files
committed
patch GtLanguageServerProtocolStdioClient>>#start to ignore the newly introduced/signalled GtExternalProcessFailedToStart exception since we want to be resilient against failures like before
1 parent 61b4342 commit 8bf63f7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/GToolkit4LSP/GtLanguageServerProtocolStdioClient.class.st

+7-2
Original file line numberDiff line numberDiff line change
@@ -658,12 +658,17 @@ GtLanguageServerProtocolStdioClient >> shutdown [
658658
{ #category : #running }
659659
GtLanguageServerProtocolStdioClient >> start [
660660
| currentOutput previous |
661-
externalProcess := (GtExternalProcessBuilder new: program)
661+
externalProcess := [
662+
(GtExternalProcessBuilder new: program)
662663
args: self arguments;
663664
pipeStdin;
664665
pipeStdout;
665666
pipeStderr;
666-
spawn.
667+
spawn ]
668+
on: GtExternalProcessFailedToStart
669+
do: [ :exception |
670+
"We want to be resilient against failures"
671+
exception child ].
667672
stdout := externalProcess asynchronousStdout.
668673
stderr := externalProcess asynchronousStderr.
669674
stdin := externalProcess stdin.

0 commit comments

Comments
 (0)