Questions tagged [lsp-mode]
lsp-mode serves as an Emacs client for the Language Server Protocol.
185 questions
0
votes
0
answers
58
views
"[yas] `yas-expand-snippet` needs properly setup `yas-minor-mode`"
I'm a fairly new Emacs user and I've been trying to setup my development environment with corfu and lsp-mode.
I've installed yasnippet to create a header when using org mode, and that is the only ...
0
votes
1
answer
53
views
flymake reporting errors for good code
I am going to put this question in the Emacs site even though it might be a ccls issue. The problem I see and describe below is within Emacs. Emacs version 30.1 on an M1 macOS 15.5.
I am doing ...
0
votes
0
answers
30
views
lsp-java-spring-initializr does nothing
I tried to follow the tutorial on this link and when I arrived to the Working with Java Project section, I found I cannot initialize a project. Everything shows up as expected until It asks for a ...
1
vote
1
answer
133
views
How to invoke/apply lsp-mode "code action" programmatically?
LSP servers may send suggestions for fixing the code, things like "Add missing import <foo>", "Sort the list", etc. They can be "applied" by executing (lsp-execute-...
0
votes
0
answers
43
views
How to activate lsp in mu4e
How is it possible to have lsp language-tool running in the email client mu4e to improve spelling and grammar?
I am getting the following error which I could not resolve:
Warning (lsp-mode): Unable to ...
2
votes
2
answers
296
views
Emacs lsp-mode and corfu: the connected server does not support method textDocument/completion
I'm getting a Corfu completion error in Emacs when using TypeScript with LSP (ts-ls server):
The connected server(s) does not support method textDocument/completion
I pretty much copied the config of ...
1
vote
1
answer
503
views
Why doesn't my emacs use lsp-pyright?
I've desperately been trying to use the lsp-pyright server, but Emacs doesn't seem to recognize that it's installed...
What I did:
Configured it like described in the docs:
(use-package lsp-pyright
:...
0
votes
2
answers
58
views
LSP suppresses `company-ispell` in LaTeX mode
I can't seem to get AUCTeX's LaTeX mode to do both complete words and use the LSP backend. My company-backends in LaTeX/PS buffer are
((:separate company-capf company-yasnippet)
(:separate company-...
1
vote
1
answer
240
views
How does lsp-mode determine the root of the project?
When I open up a file inside a project(lets say the linux kernel), it seems to open up in much higher level directory than the project is in
Lets say I open: ~/Projects/C/Kernel/linux-6.12.4/include/...
1
vote
0
answers
78
views
No communication with remote language server with lsp-mode and tramp?
I'm trying to use lsp-mode for files on a remote server (a container in a kubernetes cluster). According to the documentation it should work automagically but I do not get it to work.
The relevant ...
0
votes
0
answers
178
views
Configure an up-to-date clangd?
I can't get my emacs lsp to use a newer clangd - I have this in my ~/.emacs:
(custom-set-variables
'(lsp-clangd-version "19.1.0"))
And that version is indeed available here as the ...
1
vote
1
answer
2k
views
Understanding company-mode, corfu, and lsp-mode
I'm trying to switch to Emacs for all my text-related tasks. I've set up org-mode for note-taking, but configuring it as a programming tool is overwhelming. I am aware of many questions here that ask ...
0
votes
0
answers
123
views
How can I use lsp-docker with pylsp or pyright?
For the life of me, I cannot get lsp-docker to work. My goal is to use lsp-docker with lsp-pyright and ruff server, but I'd be happy with just pyright or pylsp. I can always run ruff with flymake.
The ...
0
votes
0
answers
38
views
How to jump to a failed test while testing python?
I know this is a pretty broad question and maybe even non-emacs related.
However I don't know where to start but develop python using dap-mode
Usually I have two buffers: sometest.py and a terminal ...
5
votes
4
answers
949
views
With lsp-mode, why do I get an unknown notification about refreshed rules from semgrep?
I constantly get this message:
⛔ Warning (lsp-mode): Unknown notification: semgrep/rulesRefreshed
This is something new. Can I somehow pin the commit, so that I can got back to where it didn't show, ...