Skip to content

Header does not end with expected \r\n character sequence. #430

@opensourcecheemsburgers

Description

Marksman crashes every time in Helix... with good markdown, bad markdown, or even no markdown.

Version: 1.0.0-f124c56+f124c5616cf38241e1a5e58808ed78e2d9a1d385 (installed via pacman)

There is an empty .marksman.toml and I've ran git init.

2025-10-17T17:39:11.141 helix_lsp::transport [ERROR] marksman err <- "[17:39:11 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
❯ cat -E test.md; cat test.md | mado check; cat test.md | marksman server -v=5
# Test$
All checks passed!
[17:35:45 INF] <LSP Entry> Starting Marksman LSP server: {}
[17:35:46 VRB] <StatusAgent> StatusAgent starting: {}
[17:35:46 VRB] <BackgroundAgent> Preparing to start background agent: {}
Unhandled exception: System.AggregateException: One or more errors occurred. (Header does not end with expected \r\n character sequence: # Test)
 ---> StreamJsonRpc.BadRpcHeaderException: Header does not end with expected \r\n character sequence: # Test

Why does marksman require \r\n and not work with \n\n?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions