Skip to content

Print child process stderr to output channel - #83

Merged
Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:masterfrom
sqs:log-stderr-to-outputChannel
Aug 30, 2016
Merged

Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:masterfrom
sqs:log-stderr-to-outputChannel

Conversation

@sqs

Copy link
Copy Markdown
Contributor

Prior to this change, child process stderr was discarded, which makes
it hard to debug language server processes. (You can make them log to
a separate file or use the window/logMessage method, but in general
it's hard to guarantee that all output, including crash stack traces,
goes through a user-defined stream in a program.)

This change appends child process stderr output to the output channel.
Clients can suppress this behavior by setting the server's
Executable.stdio 3rd element to be "ignore" (per the Node.js spec).

Fixes #82

Prior to this change, child process stderr was discarded, which makes
it hard to debug language server processes. (You can make them log to
a separate file or use the window/logMessage method, but in general
it's hard to guarantee that all output, including crash stack traces,
goes through a user-defined stream in a program.)

This change appends child process stderr output to the output channel.
Clients can suppress this behavior by setting the server's
Executable.stdio 3rd element to be "ignore" (per the Node.js spec).

Fixes microsoft#82
@msftclas

Hi Quinn Slack (@sqs), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

1 similar comment
@msftclas

Hi Quinn Slack (@sqs), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@dbaeumer

Copy link
Copy Markdown
Member

Quinn Slack (@sqs) thanks for the PR.

@dbaeumer
Dirk Bäumer (dbaeumer) merged commit e0adbcf into microsoft:master Aug 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants