[X] You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain
Bug description
lsp-mode.el uses shell-file-name to launch the language server (clangd, in my case) even when connected to a remote host via TRAMP. I use fish on my local host, but it is not installed on a remote machine I use for development; this prevents me from using lsp-mode unless I first customize shell-file-name.
Surely the TRAMP remote-shell property would be a more appropriate choice?
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
lsp-mode.el uses
shell-file-name
to launch the language server (clangd, in my case) even when connected to a remote host via TRAMP. I use fish on my local host, but it is not installed on a remote machine I use for development; this prevents me from using lsp-mode unless I first customizeshell-file-name
.Surely the TRAMP
remote-shell
property would be a more appropriate choice?https://www.gnu.org/software/tramp/#Predefined-connection-information
Steps to reproduce
/usr/bin/fish
was not found.Expected behavior
The shell specified by the TRAMP
remote-shell
property for this host is used in place of fishWhich Language Server did you use?
lsp-clangd
OS
Linux
Error callstack
No response
Anything else?
No response