Recently LSP has stopped working for me.

I'm getting this message for all files in my project.

LSP :: example_filename.c not in project or it is blacklisted.

How can I investigate this, if it's blacklisted, how can I reset the blacklist?

  • LSP is a protocol so it neither works nor can stop working. You're presumably talking about some implementation of this protocol, so please say which implementation you're using (probably lsp-mode or eglot on Emacs's side, and some LSP server on the other side but I can't begin to guess about that other side). – Stefan Dec 17 '19 at 15:32
  • The question is tagged lsp-mode, but I could have included that in the title (will edit). – ideasman42 Dec 17 '19 at 23:37
  • 1
    I had to manually add the folder to the workspace by lsp-workspace-folders-add – capitrane Feb 3 at 9:08

I somehow managed to blacklist my own project, removing ~/.emacs.d/.lsp-session-v1 resolved the issue, although I might have been able to solve this using lsp-workspace-blacklist-remove


@capitrane answer did the trick for me: lsp-workspace-folders-add manually, and it started to work.

  • Please don't add "thank you" as an answer. Instead, vote up the answers that you find helpful. - From Review – erikstokes Jun 16 at 23:02
  • 1
    There was no such answer -- it was an old comment which deserves to be an answer. – Webdev Tory Jun 17 at 21:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.