Fork me on GitHub
#lsp
<
2023-11-13
>
Drew Verlee19:11:18

is there a short cut for "show me all the errors and warnings in this file"? (Normally i can search using the modeline and the gui tree, but that's currently throwing errors for me.)

aisamu20:11:42

If you're using emacs and flycheck (and consult), one possibility is consult-flycheck

👀 1
👍 1
practicalli-johnny21:11:32

lsp-treemacs-error-list shows all the errors in the project, organised by files which can be expanded to show just errors from that file. I recommend setting lsp-treemacs-error-list-current-project-only t in the Emacs configuration to limit errors to current project.

practicalli-johnny21:11:58

Example from Spacemacs, using , g e key binding for lsp-treemacs-error-list

🙏 1
practicalli-johnny21:11:51

RTN on the file name in the list will open the source file, so I typically open the error list for the project and use that list to drive fixing LSP identified errors across the project.

🙏 1
Drew Verlee03:11:35

, g e results in what you see in the picture. Which has the view your showing, and also a bunch of weirdness. I suspect the weirdness is just on my end and isn't normal behavior right?

practicalli-johnny08:11:49

That extra window also appears briefly for me. I haven't investigated why or what it's showing