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

Bug: LSP stops to work frequently #208

Open
barcell1 opened this issue Jan 23, 2025 · 6 comments
Open

Bug: LSP stops to work frequently #208

barcell1 opened this issue Jan 23, 2025 · 6 comments

Comments

@barcell1
Copy link

Before reporting:

Ensure that the issue is reproducable on the main branch.
Ensure that there isn't an issue on this(either open or closed).

Problem:

Idk why, but the markdown-oxide LSP stops from working in a very frequently way, and when this happens i need to exit neovim and enter again to make it work again
Lsp start, lsp restart commands doesnt make any difference

im on nvim v0.10.3 but this issue happened with past versions as well

Steps to reproduce the issue:

im using markview.nvim and obsidian.nvim (without rendering)
Ensure that you are using the latest version of the plugin. -> yes
tree-sitter parsers installed(markdown, markdown_inline & html).

Expected behavior:
work without stop

Neovim version:
0.10.3

@Feel-ix-343
Copy link
Owner

Hey!

could you share the error message?

@barcell1
Copy link
Author

No error message appears, it suddenly stops working. Is there a command or place to grab the logs to post here ?

@Feel-ix-343
Copy link
Owner

Feel-ix-343 commented Jan 24, 2025

You should be able to find this information with the :LspInfo command, then if the server was running, you can check the lsp log file that is referenced there.

Thank you!

@barcell1
Copy link
Author

I took a look on the logs and found a bunch of these errors below in there:

[ERROR][2025-01-23 21:08:30] ...lsp/handlers.lua:623 "VAULT Lock is good"
[ERROR][2025-01-23 21:08:30] ...lsp/handlers.lua:623 "Failed to get VAULT lock for write TryLockError(())"

@Feel-ix-343
Copy link
Owner

ok cool. Could you post all of them? you can delete the log file, restart neovim, and then attempt to start the server

@barcell1
Copy link
Author

sure !

[START][2025-01-25 16:09:21] LSP logging initiated
[WARN][2025-01-25 16:09:21] ...lsp/handlers.lua:625	'Settings: Settings { dailynote: "%Y-%m-%d", new_file_folder_path: "", daily_notes_folder: "Daily Notes", heading_completions: true, title_headings: true, unresolved_diagnostics: true, semantic_tokens: true, tags_in_codeblocks: true, references_in_codeblocks: true, include_md_extension_md_link: false, include_md_extension_wikilink: false, hover: true, case_matching: Smart, inlay_hints: true, block_transclusion: true, block_transclusion_length: Full }'
[ERROR][2025-01-25 16:09:21] ...lsp/handlers.lua:623	"FILES Lock is good"
[WARN][2025-01-25 16:09:21] ...lsp/handlers.lua:625	"Update Vault Started"
[ERROR][2025-01-25 16:09:21] ...lsp/handlers.lua:623	"VAULT Lock is good"
[WARN][2025-01-25 16:09:21] ...lsp/handlers.lua:625	"Update Vault Done"
[WARN][2025-01-25 16:09:21] ...lsp/handlers.lua:625	"Diagnostics Started"
[WARN][2025-01-25 16:09:21] ...lsp/handlers.lua:625	"Diagnostics Done"
[WARN][2025-01-25 16:09:21] ...lsp/handlers.lua:625	"Diagnostics Done took 24ms"
[WARN][2025-01-25 16:09:21] ...lsp/handlers.lua:625	"Semantic Tokens Done took 22ms"
[WARN][2025-01-25 16:09:21] ...lsp/handlers.lua:625	"Semantic Tokens Done took 24ms"
[WARN][2025-01-25 16:09:21] ...lsp/handlers.lua:625	"Diagnostics Started"
[WARN][2025-01-25 16:09:21] ...lsp/handlers.lua:625	"Diagnostics Done"
[WARN][2025-01-25 16:09:21] ...lsp/handlers.lua:625	"Diagnostics Done took 21ms"

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

No branches or pull requests

2 participants