emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.79k stars 890 forks source link

Can't install LSP servers from raw.githubusercontent.com #3006

Open liar666 opened 3 years ago

liar666 commented 3 years ago

Thank you for the bug report

Bug description

I can't install LSP servers from raw.githubusercontent.com (e.g. lsp-java & lsp-metals). I get error:

"LSP :: Server metals install process failed with the following error message: (error Attempt to accept output from process raw.githubusercontent.com locked to thread #<thread 0x9fe8a0>)."

Steps to reproduce

In .emacs: (add-hook 'scala-mode-hook #'lsp)

In Emacs (scala-mode + lsp-metals + lsp installed):

In terminal:

In Emacs:

LSP :: Server metals install process failed with the following error message: (error Attempt to accept output from process raw.githubusercontent.com locked to thread #<thread 0x9fe8a0>).

Expected behavior

metals should install flawlessly.

Which Language Server did you use?

lsp-metals / lsp-java

OS

Linux

Error callstack

Command "zls" is not present on the path.
Command "bundle exec steep langserver --log-level warn" is not present on the path.
Command "sqls" is not present on the path.
Command "hdl_checker --lsp" is not present on the path.
Command "svlangserver" is not present on the path.
Command "vala-language-server" is not present on the path.
Command "vls" is not present on the path.
Command "terraform-lsp" is not present on the path.
Command "~/Softs/TeXLab/texlab" is present on the path.
Command "digestif" is not present on the path.
Command "srb typecheck --lsp --disable-watchman" is not present on the path.
Command "solargraph stdio" is not present on the path.
Command "rust-analyzer" is not present on the path.
Command "rls" is not present on the path.
Command "~/.nvm/versions/node/v9.11.2/bin/node ~/.vscode/extensions/tomiturtiainen.rf-intellisense-2.8.0/server/server.js" is not present on the path.
Command "R --slave -e languageserver::run()" is present on the path.
Command "pylsp" is present on the path.
Command "pyls" is present on the path.
Command "~/.composer/vendor/phpactor/phpactor/bin/phpactor language-server" is not present on the path.
Command "perl -MPerl::LanguageServer -e Perl::LanguageServer::run -- --port 13603 --version 2.1.0" is present on the path.
Command "ocamllsp" is not present on the path.
Command "ocaml-language-server --stdio" is not present on the path.
Command "rnix-lsp" is not present on the path.
Command "nimlsp" is not present on the path.
Command "kotlin-language-server" is not present on the path.
Command "deno lsp" is not present on the path.
Command "flow lsp" is not present on the path.
Command "node ~/.haxe-language-server/bin/server.js" is present on the path.
Command "java -jar ~/.emacs.d/.cache/lsp/groovy-language-server-all.jar" is present on the path.
Command "hh_client lsp --from emacs" is not present on the path.
Command "gopls" is not present on the path.
Command "fortls" is not present on the path.
Command "erlang_ls --transport stdio" is not present on the path.
Command "language_server.bat" is not present on the path.
Command "dhall-lsp-server" is not present on the path.
Command "serve-d" is not present on the path.
Command "scry --stdio" is not present on the path.
Command "cmake-language-server" is not present on the path.
Command "clangd --header-insertion-decorators=0" is present on the path.
Command "beancount-langserver --stdio" is not present on the path.
Command "/usr/local/bin/bash-language-server start" is present on the path.
Command "node /usr/local/lib/node_modules/@angular/language-server --ngProbeLocations /usr/local/lib/node_modules --tsProbeLocations /usr/local/lib/node_modules --stdio" is present on the path.
Command "ada_language_server" is not present on the path.

Anything else?

No response

liar666 commented 3 years ago

Sorry tried again multiple times and ended up working...

Seems the only difference this time is that I refused to install the server when automatically asked at opening of the .scala file, then manually asked for the installation using M-x lsp-install-server

Not sure if the problem was on my side, on Emacs side or on GitHub side...

yyoncho commented 3 years ago

I saw that bug as part of multiple installations, we will have to investigate it. Most likely we will remove threads from the install process.

worace commented 2 years ago

was running into this in emacs 27.1 / ubuntu 22.04 as well. Running lsp-install multiple times didn't do anything for me, but I quit and re-started emacs and after that i was able to install it successfully. No explanation for why but it did work for me.