Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] Marksman not working in Helix on Arch #270

Open
ghost opened this issue Nov 27, 2023 · 19 comments
Open

[Help] Marksman not working in Helix on Arch #270

ghost opened this issue Nov 27, 2023 · 19 comments

Comments

@ghost
Copy link

ghost commented Nov 27, 2023

I have no idea what is happening, but marksman does not work (none of its features). I have installed marksman-bin from AUR. I also have this in .config/marksman/config.toml :

[core]
markdown.file_extensions = ["md", "markdown"]
text_sync = "full"

[code_action]
# Enable/disable "Table of Contents" code action
toc.enable = true

# Enable/disable "Create missing linked file" code action
create_missing_file.enable = true

[completion]
# The style of wiki links completion.
# Other values include: 
# * "file-stem" to complete using file name without an extension,
# * "file-path-stem" same as above but using file path.
# title-slug
wiki.style = "file-stem"

Output of helix --health markdown:

Configured language servers:
  ✓ marksman: /usr/bin/marksman
Configured debug adapter: None
Highlight queries: ✓
Textobject queries: ✘
Indent queries: ✘
@artempyanykh
Copy link
Owner

Hi @bambirombi ! Could you provide more details? Did it work before but doesn't work after an update? What version marksman --version are you using?

When you say 'nothing works' do you mean the server is crashing? Or does it mean that you e.g. is not getting document symbols (Space-s)?

Any additional information you can provide, please.

@ghost
Copy link
Author

ghost commented Nov 28, 2023

marksman --version: 1.0.0-dd5b4f5

I do not remember when it stopped working because it has been some months since I have used marksman.

With nothing works I mean that I cannot literally do anything. So, for example, wikilinks or markdown links are never completed and space+k that made possible to preview a wikilink also does not work. At least, of the features I used nothing works.

When doing space + s : No configured language server supports document symbols.

@artempyanykh
Copy link
Owner

Hm, without logs it's hard to tell. @bambirombi could you look into Helix's logs if there's something suspicious there, e.g. tail -f ~/.cache/helix/helix.log?

@ghost
Copy link
Author

ghost commented Nov 30, 2023

2023-11-27T21:59:22.465 helix_lsp::transport [ERROR] marksman err <- "[21:59:22 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2023-11-27T22:01:54.451 helix_lsp::transport [ERROR] marksman err <- "[22:01:54 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2023-11-27T22:10:01.942 helix_lsp::transport [ERROR] marksman err <- "[22:10:01 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2023-11-27T22:10:02.688 helix_view::editor [ERROR] editor error: No configured language server supports document symbols
2023-11-28T16:00:58.109 helix_lsp::transport [ERROR] marksman err <- "[16:00:57 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2023-11-28T16:00:58.756 helix_view::editor [ERROR] editor error: No configured language server supports document symbols
2023-11-28T16:03:42.100 helix_lsp::transport [ERROR] marksman err <- "[16:03:41 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2023-11-28T16:07:11.051 helix_view::editor [ERROR] editor error: No configured language server supports document symbols
2023-11-28T16:07:17.914 helix_view::editor [ERROR] editor error: No configured language server supports document symbols
2023-11-28T16:07:26.180 helix_view::editor [ERROR] editor error: No configured language server supports document symbols

@arcstur
Copy link

arcstur commented Dec 5, 2023

I'm also using the marksman-bin from AUR and it's working (and I copied your config to test it). But marksman from the official repo stopped working because dotnet-runtime upgraded from 7 to 8, and marksman needed version 7. Are you sure you're using the marksman-bin from AUR and not marksman from extra/ repository?

@ghost
Copy link
Author

ghost commented Dec 8, 2023

It is the AUR version. So, no idea what is happening... I have reinstalled archlinux but marksman continues to fail.

@artempyanykh artempyanykh changed the title [Help] Marksman not working in Helix [Help] Marksman not working in Helix on arch Dec 8, 2023
@artempyanykh artempyanykh changed the title [Help] Marksman not working in Helix on arch [Help] Marksman not working in Helix on Arch Dec 8, 2023
@artempyanykh
Copy link
Owner

Oh, I missed that this is on Arch. Anyhow, couple ideas:

  1. Latest release https://github.com/artempyanykh/marksman/releases/tag/2023-12-07 is now built with dotnet 8 which may unbork marksman from the official repo (what @arcstur mentioned above).
  2. Can you download and run pre-built binary from the Assets of the release? Does it give you any errors on the command line?

@ghost
Copy link
Author

ghost commented Dec 10, 2023

The AUR is now the latest version.

I have tryed running the pre-built, the output: 01:59:38 INF] <LSP Entry> Starting Marksman LSP server: {}

@nhat-tien
Copy link

I have same problem on Ubuntu 22.04, it doesn't work even though I tried both the version from Snap and the pre-built version

@David-Else
Copy link

The latest binary seems to work fine in Helix on Linux (Debian 12) https://github.com/artempyanykh/marksman/releases/tag/2023-12-09

@ghost
Copy link
Author

ghost commented Dec 23, 2023

I have installed last version again and nothing works...

@Koba0117
Copy link

Koba0117 commented Jan 5, 2024

I have a similar problem, using helix and arch.
I am using marksman from the official arch repo.
Neither AUR version nor prebuilt bin work.

~ ❯ marksman --version
1.0.0-ff58abb+ff58abb61c6161d3f7b82619fe01d2f4bc839b94
~ ❯ dotnet --list-runtimes
Microsoft.NETCore.App 8.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
~ ❯ hx --version
helix 23.10
~ ❯ uname -r
6.6.9-arch1-1

helix.log is here

~ ❯ tail -f ~/.cache/helix/helix.log
2024-01-04T19:14:14.426 helix_lsp::transport [ERROR] marksman err <- "[19:14:14 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2024-01-04T19:27:16.324 helix_view::editor [ERROR] editor error: 1 unsaved buffer(s) remaining: ["test.md"]
2024-01-04T19:27:29.197 helix_lsp::transport [ERROR] marksman err <- "[19:27:29 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2024-01-05T16:38:52.638 helix_view::editor [ERROR] Failed to initialize the language servers for `source.toml` - `taplo` { cannot find binary path }
2024-01-05T16:39:05.860 helix_lsp::transport [ERROR] marksman err <- "[16:39:05 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2024-01-05T16:40:29.724 helix_lsp::transport [ERROR] marksman err <- "[16:40:29 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2024-01-05T16:43:33.507 helix_lsp::transport [ERROR] marksman err <- "[16:43:33 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2024-01-05T16:43:49.691 helix_lsp::transport [ERROR] marksman err <- "[16:43:49 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2024-01-05T16:47:03.459 helix_lsp::transport [ERROR] marksman err <- "[16:47:03 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
2024-01-05T16:49:38.265 helix_lsp::transport [ERROR] marksman err <- "[16:49:38 INF] <LSP Entry> Starting Marksman LSP server: {}\n"

@ccellado
Copy link

ccellado commented Jan 5, 2024

Same here on macos Sonoma with brew

Binary does not work too

@Koba0117
Copy link

Koba0117 commented Jan 5, 2024

Yeah same for me.
To check if this is an os specific problem, I installed marksman on my macbook too but it didn't work either.

MacBook-Air-M1 ~> marksman --version
1.0.0-2023-12-09
MacBook-Air-M1 ~> hx --version
helix 23.10 (f6021dd0)

os version is sonoma 14.2.1 (darwin 23.2.0)

I don't know if this is a problem of marksman or of helix.

@artempyanykh
Copy link
Owner

@Koba0117 @ccellado could you try with a different editor? This may help determine if the problem is specific to helix or there's something in your environment that messes up with marksman regardless of the editor/lsp-client.

@nhat-tien
Copy link

I once faced this problem, i forgot to add .marksman.toml to my workspace. I added it, and now marksman works fine

@Koba0117
Copy link

Koba0117 commented Jan 5, 2024

@artempyanykh
I just didn't RTFM.
After adding a toml file or doing git init, it works without problems for both arch and mac.
I am very sorry for wasting your time.
(Though referencing and auto-complete work fine now, I still get error in helix.log when I open markdown files)

@artempyanykh
Copy link
Owner

No worries @Koba0117! Glad to hear the problem's resolved.

I still get error in helix.log when I open markdown files

Could you show the error?

@Koba0117
Copy link

@artempyanykh
I opened a new issue because this is probably unrelated to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants