reddit / emacs

lsp-eslint-server-command not working (anymore?)

diredwolf · 2022-08-01 19:46
Hello, lsp-eslint was working for me. But this morning it isn't. Trying to figure it out. I'm on macos. lsp-eslint-server-command is a variable defined in lsp-eslint.el. Value ("node" "~/server/out/eslintServer.js" "--stdio") (I don't have a ~/server/out/eslintServer.js directory. That's seems to be the default though.) When I run lsp-install-server, I get this in *Messages* buffer: LSP :: Download eslint started. LSP :: Starting to download https://github.com/emacs-lsp/lsp-server-binaries/blob/master/dbaeumer.vscode-eslint-2.2.2.vsix?raw=true to /var/folders/dk/b2328vnn2gj6mhmy6sx2y3sc0000gn/T/extWd6p44.zip... Contacting host: github.com:443 Wrote /var/folders/dk/b2328vnn2gj6mhmy6sx2y3sc0000gn/T/extWd6p44.zip LSP :: Finished downloading /var/folders/dk/b2328vnn2gj6mhmy6sx2y3sc0000gn/T/extWd6p44.zip... (Shell command succeeded with no output) LSP :: Server eslint downloaded, auto-starting in 0 buffers. It looks like the download succeeds, but it's not extracting it anywhere that I can find. What can I look in to? The error message: LSP :: Sending to process failed with the following error: Process eslint not running [3 times]
Sevenstrangemelons · 2022-08-01 23:19
IMO the better solution is installing eslint globally, e.g. npm install -g vscode-langservers-extracted and doing (setq lsp-eslint-server-command '("vscode-eslint-language-server" "--stdio"))
diredwolf · 2022-08-02 17:58
>(setq lsp-eslint-server-command '("vscode-eslint-language-server" "--stdio")) Thanks! I couldn't even figure out that vscode-langservers-extracted had what I need. Got something working.