Skip to content

Calling client.stop() may produce error in output panel #666

@renkun-ken

Description

@renkun-ken

In REditorSupport/vscode-r-lsp#59, the language client works with a spawned process that runs the language server, and they communicate with each other via TCP socket.

The usage is, when the first untitled document is created with r language, then a new language server is started. All untitled documents share the same language client/server. If all untitled documents are closed, then shutdown the language server by calling client.stop().

However, it usually (randomly) causes the following error in the output channel, which shift the view of the side panel to the error logging. This is quite annoying.

Output channel:

R Language Server (391970) started
[Error - 4:29:24 PM] Connection to server is erroring. Shutting down server.
[Error - 4:29:24 PM] Connection to server is erroring. Shutting down server.
R Language Server (391970) exited with exit code 0

Extension debug console

Error: Unexpected SIGPIPE
	at process.<anonymous> (/usr/share/code/resources/app/out/bootstrap.js:5:284)
	at process.emit (events.js:203:13)

This error seems to come from the language client but I'm not sure if there's a way to handle this error somewhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions