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.

young_souvlaki
  • 526
  • 2
  • 13

2 Answers2

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.

young_souvlaki
  • 526
  • 2
  • 13
  • IOW, the question should be "How to uninstall packages". It has nothing to do with lsp specifically. Correct? – NickD Jan 06 '22 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. – young_souvlaki Jan 07 '22 at 16:39
  • 1
    IOW = "In other words". I'm not saying you did anything wrong: I'm just confirming my understanding. – NickD Jan 07 '22 at 17:28
  • Absolutely! It's a good point to make! – young_souvlaki Jan 07 '22 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.

KhalfaniW
  • 337
  • 4
  • 8
  • 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 Oct 04 '22 at 23:39