Open gagbo opened 2 years ago
It doesn't do it all the time though, so there might either be a race-condition between various Doom hooks, or just a cache that I have for some projects that prevent me from hitting that problematic line.
So it might be solely a Doom issue, I'm still curious about why this line mentionned in the OP isn't treated as the others
I am reverting the PR until we get the fix in.
Thank you for the bug report
lsp-mode
related packages.where
lsp-start-plain.el
can be downloaded here.Bug description
starting
lsp
in a buffer where(lsp-workspace-root)
is nil prevents the correct server from starting even if unrelated to volarSteps to reproduce
I had the issue in a Rust buffer, it would take time to find the precise scenario though. But for the sake of it:
1) open a
.rs
file in a Rust workspaceExpected behavior
rust-analyzer starts
Which Language Server did you use?
rust-analyzer in lsp-rust (or lsp-rustic, forgot the exact name)
OS
Linux
Error callstack
Anything else?
Basically, why is this call not guarded with
(and (lsp-workspace-root) ...)
like the others ?https://github.com/emacs-lsp/lsp-mode/blob/4f675e21595cfc24e3d5412c842990fd1f358418/clients/lsp-volar.el#L66