Skip to content

Question about the command pyright-langserver #3514

@acphile

Description

@acphile

Hi, I would like to use Pyright outside the VSCode as a service that after I start the language server, I can send requests mannually which follow the language server protocal and get the response I need.

I guess the command I need is pyright-langserver but it seems lack a documentation for how to use it. I try pyright-langserver --socket=8080 but it just return Sending log message failed.

I notice that for python language server like https://github.com/python-lsp/python-lsp-server, it can be started by command-line to bind the server to a port and we can send and receive messages from that port by socket. I wonder if pyright has similar functionality.

Thank you very much!

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