Skip to content

Lsp sometimes breaks because of malformed server messages #632

@mpo-mjolner

Description

@mpo-mjolner

I have encountered an error where pylsp server sends malformed json. This breaks the lsp protocol session and causes any further client requests to be ignored.

I suspect it is caused by an issue in antlr parsing. We see examples of this in test outputs where characters occur in the output without good reason, mostly a number of dots and occasionally other characters.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions