Closed Dav1d23 closed 5 years ago
Can you share your emacs version and your lsp-mode version?
emacs compiled from sources:
GNU Emacs 26.2.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) of 2019-07-01
lsp-mode lates package:
lsp-mode: 20190705.532
Hm, it looks like we wrongly expect executable-find to have 2 params in emacs 26.2.
Evaluating the following piece of code should fix your issue.
(defun lsp-server-present? (final-command)
"Check whether FINAL-COMMAND is present."
;; executable-find only gained support for remote checks after 26.1 release
(or (and (cond
((not (file-remote-p default-directory))
(executable-find (cl-first final-command)))
;; ((not (version<= emacs-version "26.2"))
;; (with-no-warnings (executable-find (cl-first final-command) (file-remote-p default-directory))))
(t))
(prog1 t
(lsp-log "Command \"%s\" is present on the path." (s-join " " final-command))))
(ignore (lsp-log "Command \"%s\" is not present on the path." (s-join " " final-command)))))
I update lsp-mode this morning and it seems working fine. Thanks.
How to use virtualenv over tramp ? Exactly what setting variables to edit. Thanks
Describe the bug The minibuffer shows an error, and lsp-mode does not work on remote files.
To Reproduce Using the configuration below, just open a file remotely via ssh.
Expected behavior I would expect it to work.
Which Language Server did you use I installed via conda-forge python-language-server
OS Centos7
Error callstack