This means that when calling lsp-install-server interactively (via M-x) this form returns the client info for nix-nil instead of an actual nil value: (gethash server-id lsp-clients). Which causes lsp-install-server to print a message about installing the "nil" language server manually.
Steps to reproduce
M-x lsp-install-server
Message appears in the minibuffer: There is no automatic installation for ‘nil’, you have to install it manually following lsp-mode’s documentation.
Expected behavior
Selected list of servers to install or update shown in the minibuffer.
Which Language Server did you use?
clojure-lsp primarily, but this bug is unrelated to the language server currently being used.
OS
MacOS
Error callstack
No response
Anything else?
Calling the function manually with the server-id parameter set installs/updates the requested server as expected. Example: (lsp-install-server t 'clojure-lsp)
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
With the addition of the nix-nil lsp in #3789 there is now an entry in
lsp-clients
with keynil
. See: https://github.com/emacs-lsp/lsp-mode/pull/3789/files#diff-32a52f22910769f3a77dc26a6b03e754d28fc65eae884e25431b7500e810821fR60This means that when calling
lsp-install-server
interactively (via M-x) this form returns the client info for nix-nil instead of an actual nil value:(gethash server-id lsp-clients)
. Which causeslsp-install-server
to print a message about installing the "nil" language server manually.Steps to reproduce
M-x lsp-install-server
Message appears in the minibuffer:
There is no automatic installation for ‘nil’, you have to install it manually following lsp-mode’s documentation.
Expected behavior
Selected list of servers to install or update shown in the minibuffer.
Which Language Server did you use?
clojure-lsp primarily, but this bug is unrelated to the language server currently being used.
OS
MacOS
Error callstack
No response
Anything else?
Calling the function manually with the
server-id
parameter set installs/updates the requested server as expected. Example:(lsp-install-server t 'clojure-lsp)