`Client marksman quit with exit code 1 and signal 0`: Invalid URI: The hostname could not be parsed
Opened this issue ยท 10 comments
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:
Thanks for reporting this @serpro69! The stack trace in the logs helps. Could you also share the full file path of the mise-task.json
file from the screenshot?
Thanks for reporting this @serpro69! The stack trace in the logs helps. Could you also share the full file path of the
mise-task.json
file from the screenshot?
Hey!
I don't think that schema file has anything to do with this error. The opened buffer is a .lua file with jsonls configuration for nvim. As I mentioned, marksman isn't even loaded in that case.
But if you think that can be causing this issue, the schema url is this - https://raw.githubusercontent.com/jdx/mise/refs/heads/main/schema/mise.json
@serpro69 sorry, I got confused. Could you show the part of the logs that corresponds to the LSP initialization request? The relevant entry has method = "initialize",
and then rootPath
and rootUri
.
@serpro69 sorry, I got confused. Could you show the part of the logs that corresponds to the LSP initialization request? The relevant entry has
method = "initialize",
and thenrootPath
androotUri
.
Will do as soon as I get to my other laptop ๐ I just noticed that it seems I can't reproduce it on a Mac, and it only happens on Ubuntu, with identical nvim setup
Actually scratch that, it happens on a mac as well. However, I don't see those entries in the lsp.log file. This is the entire file contents:
[START][2024-12-14 12:10:02] LSP logging initiated
[ERROR][2024-12-14 12:10:02] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "[12:10:01 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
[ERROR][2024-12-14 12:10:02] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "---------------------------------------------------------------------------"
[ERROR][2024-12-14 12:10:02] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "\n"
[ERROR][2024-12-14 12:10:02] .../vim/lsp/rpc.lua:770 "rpc" "/Users/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-14 12:10:02] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Marksman version: "
[ERROR][2024-12-14 12:10:02] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "1.0.0.0\nOS: Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 19:03:40 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6041\n"
[ERROR][2024-12-14 12:10:02] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Arch: "
[ERROR][2024-12-14 12:10:02] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Arm64\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-14 12:10:02] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Invalid URI: The hostname could not be parsed.\n"
[ERROR][2024-12-14 12:10:02] .../vim/lsp/rpc.lua:770 "rpc" "/Users/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 /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 47\n at Marksman.Paths.UriWith.mkRoot(String uri) in /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 364\n at Marksman.Server.ServerUtil.extractWorkspaceFolders(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 63\n at Marksman.Server.MarksmanServer.Initialize(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 539\n"
[ERROR][2024-12-14 12:10:07] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "[12:10:07 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
[ERROR][2024-12-14 12:10:07] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "---------------------------------------------------------------------------"
[ERROR][2024-12-14 12:10:07] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "\n"
[ERROR][2024-12-14 12:10:07] .../vim/lsp/rpc.lua:770 "rpc" "/Users/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-14 12:10:07] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Marksman version: "
[ERROR][2024-12-14 12:10:07] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "1.0.0.0\n"
[ERROR][2024-12-14 12:10:07] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "OS: Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 19:03:40 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6041\n"
[ERROR][2024-12-14 12:10:07] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Arch: "
[ERROR][2024-12-14 12:10:07] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Arm64\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-14 12:10:07] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Invalid URI: The hostname could not be parsed.\n"
[ERROR][2024-12-14 12:10:07] .../vim/lsp/rpc.lua:770 "rpc" "/Users/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 /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 47\n at Marksman.Paths.UriWith.mkRoot(String uri) in /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 364\n at Marksman.Server.ServerUtil.extractWorkspaceFolders(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 63\n at Marksman.Server.MarksmanServer.Initialize(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 539\n"
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "[12:10:09 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "---------------------------------------------------------------------------"
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "\n"
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/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"
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "---------------------------------------------------------------------------\n"
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Marksman version: "
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "1.0.0.0\n"
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "OS: Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 19:03:40 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6041\n"
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Arch: "
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Arm64\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Invalid URI: The hostname could not be parsed.\n"
[ERROR][2024-12-14 12:10:09] .../vim/lsp/rpc.lua:770 "rpc" "/Users/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 /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 47\n at Marksman.Paths.UriWith.mkRoot(String uri) in /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 364\n at Marksman.Server.ServerUtil.extractWorkspaceFolders(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 63\n at Marksman.Server.MarksmanServer.Initialize(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 539\n"
[ERROR][2024-12-14 12:10:38] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "[12:10:38 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
[ERROR][2024-12-14 12:10:38] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "---------------------------------------------------------------------------"
[ERROR][2024-12-14 12:10:38] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "\nMarksman encountered a fatal error\nPlease, report the error at https://github.com/artempyanykh/marksman/issues\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-14 12:10:38] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Marksman version: "
[ERROR][2024-12-14 12:10:38] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "1.0.0.0\n"
[ERROR][2024-12-14 12:10:38] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "OS: Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 19:03:40 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6041\n"
[ERROR][2024-12-14 12:10:38] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Arch: "
[ERROR][2024-12-14 12:10:38] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Arm64\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-14 12:10:38] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Invalid URI: The hostname could not be parsed.\n"
[ERROR][2024-12-14 12:10:38] .../vim/lsp/rpc.lua:770 "rpc" "/Users/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 /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 47\n at Marksman.Paths.UriWith.mkRoot(String uri) in /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 364\n at Marksman.Server.ServerUtil.extractWorkspaceFolders(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 63\n at Marksman.Server.MarksmanServer.Initialize(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 539\n"
[ERROR][2024-12-14 12:11:52] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "[12:11:52 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
[ERROR][2024-12-14 12:11:53] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "---------------------------------------------------------------------------"
[ERROR][2024-12-14 12:11:53] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "\n"
[ERROR][2024-12-14 12:11:53] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Marksman encountered a fatal error\n"
[ERROR][2024-12-14 12:11:53] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Please, report the error at https://github.com/artempyanykh/marksman/issues\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-14 12:11:53] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Marksman version: "
[ERROR][2024-12-14 12:11:53] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "1.0.0.0\n"
[ERROR][2024-12-14 12:11:53] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "OS: Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 19:03:40 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6041\n"
[ERROR][2024-12-14 12:11:53] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Arch: "
[ERROR][2024-12-14 12:11:53] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Arm64\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-14 12:11:53] .../vim/lsp/rpc.lua:770 "rpc" "/Users/sergio/.local/share/nvim/mason/bin/marksman" "stderr" "Invalid URI: The hostname could not be parsed.\n"
[ERROR][2024-12-14 12:11:53] .../vim/lsp/rpc.lua:770 "rpc" "/Users/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 /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 47\n at Marksman.Paths.UriWith.mkRoot(String uri) in /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 364\n at Marksman.Server.ServerUtil.extractWorkspaceFolders(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 63\n at Marksman.Server.MarksmanServer.Initialize(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 539\n"
@serpro69 you'd need to enable lsp debug to get requests/responses in the logs:
- either, temporarily add
vim.lsp.set_log_level("debug")
in yourinit.lua
, - or run it as an ex command
=vim.lsp.set_log_level("debug")
after you start nvim and before you open a markdown file.
I reproduced the error with debug log level when hovering over a method definition in rust_analyzer in neovim:
[INFO][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:731 "Starting RPC client" { cmd = { "/Users/david/.local/share/nvim/mason/bin/marksman", "server" }, extra = { cwd = "." }}
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.local/share/nvim/mason/bin/marksman" "stderr" "[00:52:15 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.local/share/nvim/mason/bin/marksman" "stderr" "---------------------------------------------------------------------------"
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.local/share/nvim/mason/bin/marksman" "stderr" "\n"
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.local/share/nvim/mason/bin/marksman" "stderr" "Marksman encountered a fatal error\n"
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.local/share/nvim/mason/bin/marksman" "stderr" "Please, report the error at https://github.com/artempyanykh/marksman/issues\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.local/share/nvim/mason/bin/marksman" "stderr" "Marksman version: "
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.local/share/nvim/mason/bin/marksman" "stderr" "1.0.0.0\n"
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.local/share/nvim/mason/bin/marksman" "stderr" "OS: Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000\n"
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.local/share/nvim/mason/bin/marksman" "stderr" "Arch: "
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.local/share/nvim/mason/bin/marksman" "stderr" "Arm64\n---------------------------------------------------------------------------\n"
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.local/share/nvim/mason/bin/marksman" "stderr" "Invalid URI: The hostname could not be parsed.\n"
[ERROR][2024-12-19 00:52:15] .../vim/lsp/rpc.lua:770 "rpc" "/Users/david/.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 /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 47\n at Marksman.Paths.UriWith.mkRoot(String uri) in /Users/runner/work/marksman/marksman/Marksman/Paths.fs:line 364\n at Marksman.Server.ServerUtil.extractWorkspaceFolders(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 34\n at Marksman.Server.MarksmanServer.Initialize(InitializeParams par) in /Users/runner/work/marksman/marksman/Marksman/Server.fs:line 510\n"
installed version: 2024-12-18
Thanks @iovis ๐ I got swamped at work and couldn't provide the details yet.
This is exactly what I'm seeing also.
Thanks for the extra input @iovis! I still can't quite make sense of the logs: there are no requests from nvim to marksman shown in the logs and there should be at least the initialize
request. @iovis you sure you have vim.lsp.set_log_level("debug")
set before the server starts (e.g. added in your init.lua)?
Also, you said "when hovering over a method definition in rust_analyzer". That's... unexpected. Why would neovim start marksman when browsing a rust file.
Thanks for the extra input @iovis! I still can't quite make sense of the logs: there are no requests from nvim to marksman shown in the logs and there should be at least the
initialize
request. @iovis you sure you havevim.lsp.set_log_level("debug")
set before the server starts (e.g. added in your init.lua)?
Yup, it was set before any server started.
Also, you said "when hovering over a method definition in rust_analyzer". That's... unexpected. Why would neovim start marksman when browsing a rust file.
I think documentation in neovim is rendered as markdown, at least in some LSPs.
I think documentation in neovim is rendered as markdown, at least in some LSPs.
I mean, sure. It just doesn't make much sense why would nvim start a markdown LSP server in that case. After all that markdown content is just snippets from doc comments in rust source files rather than standalone markdown files which is what markdown LSP server is supposed to work with.
Anyhow, I see the stack trace. I'll add some extra logging/error handling there which will perhaps help.
Thanks for the input folks!