Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Misleading tsserver not found error message #554

Closed
@tzx

Description

@tzx

I think this is related: #411.

I am using nix to install typescript which gives me the binary tsserver, which is in my path. However, when starting my lsp server, it gives the error message:

Request initialize failed with message: Could not find a valid tsserver executable in the workspace or in the $PATH. Please ensure that the "typescript" dependency is installed in either location. Exiting.

The solution is to use what one discussed in the issue linked by providing a explicit tsserver path. However this still means that the error message is misleading. Seems like the error is from finding a bundle version here: https://github.com/typescript-language-server/typescript-language-server/blob/master/src/lsp-server.ts#L180 which doesn't seem to look into $PATH.

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