Skip to content

How to get stderr output of a language server? #82

Closed

Description

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.

Activity

  1. added a commit that references this issue on Aug 28, 2016
    3c3409d
  2. dbaeumer commented on Aug 30, 2016

    @dbaeumer
    Member

    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 Options
        let serverOptions = (): Thenable<any> => {
                    // Start the server using child_process.spawn(...);
                    // Hook the childProcess.stderr.on('data', data => ...));
                   return childProcess; // Uses stdin/stdout for communication
            }

    Hope that helps.

    Since we have #83 I will close this.

  3. felixfbecker commented on Aug 30, 2016

    @felixfbecker
    ContributorAuthor

    Thanks for the help!

  4. locked and limited conversation to collaborators on Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions