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
{{ message }}
Repository navigation
How to get stderr output of a language server? #82
Dirk Bäumer (@dbaeumer)
I justed implemented my language server and did not find a way to get the stack trace or logs it outputs on stderr when it crashes.
Thanks to Quinn Slack (@sqs) this will be available in the next release.
What you can do in the meantime is the following:
// Use a function as the server OptionsletserverOptions=(): Thenable<any>=>{// Start the server using child_process.spawn(...);// Hook the childProcess.stderr.on('data', data => ...));returnchildProcess;// Uses stdin/stdout for communication}
Activity
Print child process stderr to output channel
dbaeumer commentedon Aug 30, 2016
Thanks to Quinn Slack (@sqs) this will be available in the next release.
What you can do in the meantime is the following:
Hope that helps.
Since we have #83 I will close this.
felixfbecker commentedon Aug 30, 2016
Thanks for the help!