Skip to content

Client marksman quit with exit code 1 and signal 0: Invalid URI: The hostname could not be parsed #375

Open
@serpro69

Description

@serpro69

I've been getting this Client marksman quit with exit code 1 and signal 0 for awhile now, and it seems to be popping up randomly (or at least I can't figure out the root cause yet), but the logs show this:

[ERROR][2024-12-07 13:15:25] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "---------------------------------------------------------------------------"
[ERROR][2024-12-07 13:15:25] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "\n"
[ERROR][2024-12-07 13:15:25] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "Marksman encountered a fatal error\nPlease, report the error at https://github.com/artempyanykh/marksman/issues\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-07 13:15:25] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "Marksman version: "
[ERROR][2024-12-07 13:15:25] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "1.0.0.0\n"
[ERROR][2024-12-07 13:15:25] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "OS: Pop!_OS 22.04 LTS\nArch: "
[ERROR][2024-12-07 13:15:25] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "X64\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-07 13:15:25] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "Invalid URI: The hostname could not be parsed.\n"
[ERROR][2024-12-07 13:15:25] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "   at System.Uri.CreateThis(String, Boolean, UriKind, UriCreationOptions& )\n   at System.Uri..ctor(String uriString)\n   at Marksman.Paths.uriToSystemPath(String uri) in /home/runner/work/marksman/marksman/Marksman/Paths.fs:line 47\n   at Marksman.Paths.UriWith.mkRoot(String uri) in /home/runner/work/marksman/marksman/Marksman/Paths.fs:line 364\n   at Marksman.Server.ServerUtil.extractWorkspaceFolders(InitializeParams par) in /home/runner/work/marksman/marksman/Marksman/Server.fs:line 63\n   at Marksman.Server.MarksmanServer.Initialize(InitializeParams par) in /home/runner/work/marksman/marksman/Marksman/Server.fs:line 539\n"
[ERROR][2024-12-07 13:15:28] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "[13:15:27 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
[ERROR][2024-12-07 13:15:28] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "---------------------------------------------------------------------------"
[ERROR][2024-12-07 13:15:28] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "\n"
[ERROR][2024-12-07 13:15:28] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "Marksman encountered a fatal error\n"
[ERROR][2024-12-07 13:15:28] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "Please, report the error at https://github.com/artempyanykh/marksman/issues\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-07 13:15:28] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "Marksman version: "
[ERROR][2024-12-07 13:15:28] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "1.0.0.0\n"
[ERROR][2024-12-07 13:15:28] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "OS: Pop!_OS 22.04 LTS\nArch: "
[ERROR][2024-12-07 13:15:28] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "X64\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-07 13:15:28] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "Invalid URI: The hostname could not be parsed.\n"
[ERROR][2024-12-07 13:15:28] .../vim/lsp/rpc.lua:770    "rpc"   "/home/sergio/.local/share/nvim/mason/bin/marksman"     "stderr"        "   at System.Uri.CreateThis(String, Boolean, UriKind, UriCreationOptions& )\n   at System.Uri..ctor(String uriString)\n   at Marksman.Paths.uriToSystemPath(String uri) in /home/runner/work/marksman/marksman/Marksman/Paths.fs:line 47\n   at Marksman.Paths.UriWith.mkRoot(String uri) in /home/runner/work/marksman/marksman/Marksman/Paths.fs:line 364\n   at Marksman.Server.ServerUtil.extractWorkspaceFolders(InitializeParams par) in /home/runner/work/marksman/marksman/Marksman/Server.fs:line 63\n   at Marksman.Server.MarksmanServer.Initialize(InitializeParams par) in /home/runner/work/marksman/marksman/Marksman/Server.fs:line 539\n"
/home/sergio/.local/state/nvim/lsp.log lines 74857-74877/74877 (END)

It could be related to #348 , but I'm not sure. If it is - please feel free to close this issue to avoid duplicates :)

Also let me know if I can do some steps to try to debug this further.

I have marksman installed via mason and configured (with defaults) via nvim-lspconfig

The strangest thing is, it crashes when it's not even loaded:
image

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