5

How do you uninstall lsp servers. I see the functions to update and install, but none to remove or uninstall.

I am using spacemacs, but an answer for vanilla emacs still helps.

2 Answers 2

2

The problem was spacemacs was calling the package mspyls and list-packages has it under lsp-python-ms.

To uninstall do M-x list-packages RET, search for the package, hit d with your cursor on the package, then x to execute deletion.

4
  • IOW, the question should be "How to uninstall packages". It has nothing to do with lsp specifically. Correct?
    – NickD
    Commented Jan 6, 2022 at 16:39
  • What does IOW stand for? Search is not pulling anything relevant. Now that I see what was going on yes, this became an issue with uninstalling normal packages, but in the beginning, since I didn't find any mspyls packages, I thought something else was going on in the background, or it was stored in a specific directory, which warranted this question.
    – mcp
    Commented Jan 7, 2022 at 16:39
  • 1
    IOW = "In other words". I'm not saying you did anything wrong: I'm just confirming my understanding.
    – NickD
    Commented Jan 7, 2022 at 17:28
  • Absolutely! It's a good point to make!
    – mcp
    Commented Jan 7, 2022 at 21:47
2

To uninstall a lsp server in Spacemacs delete the folder that has a similar name from ~/.emacs.d/.cache/lsp/

The folder name may have a different name because the folder name is the full name of the lsp-server.

If it is not there, try looking at sub-directories in that folder. After deleting restart emacs.

2
  • This is the solution that worked for me. Specifically, I was getting Warning (emacs): The javascript-typescript-langserver (jsts-ls) is unmaintained; it is recommended to use ts-ls or deno-ls instead., and there's no emacs package that corresponds to jsts-ls. I had to delete ~/.emacs.d/.cache/lsp/npm/javascript-typescript-langserver to make the obsolete lang server go away.
    – g-gundam
    Commented Oct 4, 2022 at 23:39
  • Oddly, this doesn't seem to work anymore, lsp information must be store somewhere other than just .cache now. After deleting this folder and restarting emacs, the language server backend I'm trying to remove, persists.
    – Caleb Jay
    Commented Mar 31 at 1:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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