lsp-mode
lsp-mode copied to clipboard
lsp-mode works on local server but not on remote server (lsp-pyright)
Thank you for the bug report
- [X] I am using the latest version of
lsp-mode
related packages. - [X] I checked FAQ and Troubleshooting sections
- [x] You may also try reproduce the issue using clean environment using the following command:
M-x lsp-start-plain
Bug description
I have been able to run lsp on my local files, however, when i try to do the same for a remote server, an error message pops up saying
Error processing message (void-function json-rpc-pid).
I had some initial trouble getting lsp-mode to detect the language server on my remote server, however, I was able to resolve that using
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
My lsp config is as below
(use-package lsp-pyright
:ensure t
:hook (python-mode . (lambda ()
(require 'lsp-pyright)
(lsp-deferred)))) ; or lsp
(setq lsp-log-io t)
(setq lsp-pyright-use-library-code-for-types t)
;(setq lsp-pyright-diagnostic-mode "workspace")
(lsp-register-client
(make-lsp-client
:new-connection (lsp-tramp-connection (lambda ()
(cons "pyright-langserver"
lsp-pyright-langserver-command-args)))
:major-modes '(python-mode)
:remote? t
:server-id 'pyright-tramp
:environment t
:multi-root t
:priority 3
:initialization-options (lambda () (ht-merge (lsp-configuration-section "pyright")
(lsp-configuration-section "python")))
:initialized-fn (lambda (workspace)
(with-lsp-workspace workspace
(lsp--set-configuration
(ht-merge (lsp-configuration-section "pyright")
(lsp-configuration-section "python")))))
:download-server-fn (lambda (_client callback error-callback _update?)
(lsp-package-ensure 'pyright callback error-callback))
:notification-handlers (lsp-ht ("pyright/beginProgress" 'lsp-pyright--begin-progress-callback)
("pyright/reportProgress" 'lsp-pyright--report-progress-callback)
("pyright/endProgress" 'lsp-pyright--end-progress-callback))))
Steps to reproduce
- install pyright to remote server using
python -m pip install pyright
- Install node using nvm (required for pyright )
- Make sure to include paths for both bins in the remote $PATH variable
- add tramp remote and tramp-own-remote paths to list so that the appropriate binaries are discovered
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
- Open a python file and run
M-x lsp
Expected behavior
I expected it to enter lsp-mode without any issues. However, the above mentioned error pops up. Also, the tramp file mentioned in the backtrace is blank
Which Language Server did you use?
lsp-pyright
OS
Linux
Error callstack
Debugger entered--Lisp error: (error "Cannot do file visiting in a non-empty buffer")
signal(error ("Cannot do file visiting in a non-empty buffer"))
tramp-signal-hook-function(error ("Cannot do file visiting in a non-empty buffer"))
signal(error ("Cannot do file visiting in a non-empty buffer"))
tramp-handle-insert-file-contents("/ssh:abc@xyz:/tmp/tramp.qmPG9D" visit nil nil nil)
apply(tramp-handle-insert-file-contents ("/ssh:abc@xyx:/tmp/tramp.qmPG9D" visit nil nil nil))
tramp-sh-file-name-handler(insert-file-contents "/ssh:abc@xyx:/tmp/tramp.qmPG9D" visit nil nil nil)
apply(tramp-sh-file-name-handler insert-file-contents ("/ssh:abc@xyx:/tmp/tramp.qmPG9D" visit nil nil nil))
tramp-file-name-handler(insert-file-contents "/ssh:abc@xyx:/tmp/tramp.qmPG9D" visit nil nil nil)
insert-file-contents("/ssh:abc@xyx:/tmp/tramp.qmPG9D" visit)
tramp-sh-handle-make-process(:name "pyright-tramp" :connection-type pipe :buffer "*pyright-tramp*" :coding no-conversion :command ("/bin/sh" "-c" "stty raw > /dev/null; pyright-langserver --stdio") :filter #f(compiled-function (proc input) #<bytecode 0x1588c3ecc701>) :sentinel #f(compiled-function (&rest args2) #<bytecode 0x1588c3d47c35>) :stderr #<buffer *pyright-tramp::stderr*> :noquery t :file-handler t)
apply(tramp-sh-handle-make-process (:name "pyright-tramp" :connection-type pipe :buffer "*pyright-tramp*" :coding no-conversion :command ("/bin/sh" "-c" "stty raw > /dev/null; pyright-langserver --stdio") :filter #f(compiled-function (proc input) #<bytecode 0x1588c3ecc701>) :sentinel #f(compiled-function (&rest args2) #<bytecode 0x1588c3d47c35>) :stderr #<buffer *pyright-tramp::stderr*> :noquery t :file-handler t))
tramp-sh-file-name-handler(make-process :name "pyright-tramp" :connection-type pipe :buffer "*pyright-tramp*" :coding no-conversion :command ("/bin/sh" "-c" "stty raw > /dev/null; pyright-langserver --stdio") :filter #f(compiled-function (proc input) #<bytecode 0x1588c3ecc701>) :sentinel #f(compiled-function (&rest args2) #<bytecode 0x1588c3d47c35>) :stderr #<buffer *pyright-tramp::stderr*> :noquery t :file-handler t)
apply(tramp-sh-file-name-handler make-process (:name "pyright-tramp" :connection-type pipe :buffer "*pyright-tramp*" :coding no-conversion :command ("/bin/sh" "-c" "stty raw > /dev/null; pyright-langserver --stdio") :filter #f(compiled-function (proc input) #<bytecode 0x1588c3ecc701>) :sentinel #f(compiled-function (&rest args2) #<bytecode 0x1588c3d47c35>) :stderr #<buffer *pyright-tramp::stderr*> :noquery t :file-handler t))
tramp-file-name-handler(make-process :name "pyright-tramp" :connection-type pipe :buffer "*pyright-tramp*" :coding no-conversion :command ("/bin/sh" "-c" "stty raw > /dev/null; pyright-langserver --stdio") :filter #f(compiled-function (proc input) #<bytecode 0x1588c3ecc701>) :sentinel #f(compiled-function (&rest args2) #<bytecode 0x1588c3d47c35>) :stderr #<buffer *pyright-tramp::stderr*> :noquery t :file-handler t)
make-process(:name "pyright-tramp" :connection-type pipe :buffer "*pyright-tramp*" :coding no-conversion :command ("/bin/sh" "-c" "stty raw > /dev/null; pyright-langserver --stdio") :filter #f(compiled-function (proc input) #<bytecode 0x1588c3ecc701>) :sentinel #f(compiled-function (&rest args2) #<bytecode 0x1588c3d47c35>) :stderr #<buffer *pyright-tramp::stderr*> :noquery t :file-handler t)
#f(compiled-function (filter sentinel name environment-fn workspace) #<bytecode 0x1588c400e249>)(#f(compiled-function (proc input) #<bytecode 0x1588c3ecc701>) #f(compiled-function (&rest args2) #<bytecode 0x1588c3d47c35>) "pyright-tramp" nil #s(lsp--workspace :ewoc nil :server-capabilities nil :registered-server-capabilities nil :root "/ssh:abc@xyx:/data/abc/exp/bouncing" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn workspace) #<bytecode 0x1588c400e249>) :test\? #f(compiled-function () #<bytecode 0x1588c400e261>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 3/65 0x1588c400e26d> :request-handlers #<hash-table equal 0/65 0x1588c4069b25> :response-handlers #<hash-table eql 0/65 0x1588c400e395> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1588c3da0df1> :action-handlers #<hash-table equal 0/65 0x1588c3ab2b09> :major-modes (python-mode) :activation-fn nil :priority 3 :server-id pyright-tramp :multi-root t :initialization-options (lambda nil (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))) :semantic-tokens-faces-overrides nil :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp--set-configuration (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))))) :remote? t :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil :async-request-handlers #<hash-table equal 0/65 0x1588c3d92559> :download-server-fn (lambda (_client callback error-callback _update\?) (lsp-package-ensure 'pyright callback error-callback)) :download-in-progress? nil :buffers nil :synchronize-sections nil) :host-root "/ssh:abc@xyx:" :proc nil :cmd-proc nil :buffers (#<buffer transducer_inference_decoder.py>) :semantic-tokens-faces nil :semantic-tokens-modifier-faces nil :extra-client-capabilities nil :status starting :metadata #<hash-table equal 0/65 0x1588c40de939> :watches #<hash-table equal 0/65 0x1588c40de959> :workspace-folders nil :last-id 0 :status-string nil :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x1588c40de979> :work-done-tokens #<hash-table equal 0/65 0x1588c3cb5f8d>))
lsp--start-workspace(#s(lsp-session :folders ("/ssh:abc@xyx:/data/abc/exp/bouncing" "/ssh:haley10:/data/abc/exp/bouncing" "/home/abc-pqrst/Documents/Code/bouncing" "/home/abc-pqrst/Documents/Code/bouncing_feature2...") :folders-blocklist nil :server-id->folders #<hash-table equal 2/65 0x1588c3959c11> :folder->servers #<hash-table equal 0/65 0x1588c39776dd> :metadata #<hash-table equal 0/65 0x1588c382214d>) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn workspace) #<bytecode 0x1588c400e249>) :test\? #f(compiled-function () #<bytecode 0x1588c400e261>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 3/65 0x1588c400e26d> :request-handlers #<hash-table equal 0/65 0x1588c4069b25> :response-handlers #<hash-table eql 0/65 0x1588c400e395> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1588c3da0df1> :action-handlers #<hash-table equal 0/65 0x1588c3ab2b09> :major-modes (python-mode) :activation-fn nil :priority 3 :server-id pyright-tramp :multi-root t :initialization-options (lambda nil (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))) :semantic-tokens-faces-overrides nil :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp--set-configuration (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))))) :remote? t :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil :async-request-handlers #<hash-table equal 0/65 0x1588c3d92559> :download-server-fn (lambda (_client callback error-callback _update\?) (lsp-package-ensure 'pyright callback error-callback)) :download-in-progress? nil :buffers nil :synchronize-sections nil) "/ssh:abc@xyx:/data/abc/exp/bouncing" #<hash-table equal 3/65 0x1588c3f33189>)
lsp--start-connection(#s(lsp-session :folders ("/ssh:abc@xyx:/data/abc/exp/bouncing" "/ssh:haley10:/data/abc/exp/bouncing" "/home/abc-pqrst/Documents/Code/bouncing" "/home/abc-pqrst/Documents/Code/bouncing_feature2...") :folders-blocklist nil :server-id->folders #<hash-table equal 2/65 0x1588c3959c11> :folder->servers #<hash-table equal 0/65 0x1588c39776dd> :metadata #<hash-table equal 0/65 0x1588c382214d>) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn workspace) #<bytecode 0x1588c400e249>) :test\? #f(compiled-function () #<bytecode 0x1588c400e261>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 3/65 0x1588c400e26d> :request-handlers #<hash-table equal 0/65 0x1588c4069b25> :response-handlers #<hash-table eql 0/65 0x1588c400e395> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1588c3da0df1> :action-handlers #<hash-table equal 0/65 0x1588c3ab2b09> :major-modes (python-mode) :activation-fn nil :priority 3 :server-id pyright-tramp :multi-root t :initialization-options (lambda nil (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))) :semantic-tokens-faces-overrides nil :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp--set-configuration (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))))) :remote? t :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil :async-request-handlers #<hash-table equal 0/65 0x1588c3d92559> :download-server-fn (lambda (_client callback error-callback _update\?) (lsp-package-ensure 'pyright callback error-callback)) :download-in-progress? nil :buffers nil :synchronize-sections nil) "/ssh:abc@xyx:/data/abc/exp/bouncing")
#f(compiled-function (client) #<bytecode 0x1588c3cfb389>)(#s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn workspace) #<bytecode 0x1588c400e249>) :test\? #f(compiled-function () #<bytecode 0x1588c400e261>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 3/65 0x1588c400e26d> :request-handlers #<hash-table equal 0/65 0x1588c4069b25> :response-handlers #<hash-table eql 0/65 0x1588c400e395> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1588c3da0df1> :action-handlers #<hash-table equal 0/65 0x1588c3ab2b09> :major-modes (python-mode) :activation-fn nil :priority 3 :server-id pyright-tramp :multi-root t :initialization-options (lambda nil (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))) :semantic-tokens-faces-overrides nil :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp--set-configuration (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))))) :remote? t :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil :async-request-handlers #<hash-table equal 0/65 0x1588c3d92559> :download-server-fn (lambda (_client callback error-callback _update\?) (lsp-package-ensure 'pyright callback error-callback)) :download-in-progress? nil :buffers nil :synchronize-sections nil))
mapcar(#f(compiled-function (client) #<bytecode 0x1588c3cfb389>) (#s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn workspace) #<bytecode 0x1588c400e249>) :test\? #f(compiled-function () #<bytecode 0x1588c400e261>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 3/65 0x1588c400e26d> :request-handlers #<hash-table equal 0/65 0x1588c4069b25> :response-handlers #<hash-table eql 0/65 0x1588c400e395> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1588c3da0df1> :action-handlers #<hash-table equal 0/65 0x1588c3ab2b09> :major-modes (python-mode) :activation-fn nil :priority 3 :server-id pyright-tramp :multi-root t :initialization-options (lambda nil (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))) :semantic-tokens-faces-overrides nil :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp--set-configuration (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))))) :remote? t :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil :async-request-handlers #<hash-table equal 0/65 0x1588c3d92559> :download-server-fn (lambda (_client callback error-callback _update\?) (lsp-package-ensure 'pyright callback error-callback)) :download-in-progress? nil :buffers nil :synchronize-sections nil)))
-map(#f(compiled-function (client) #<bytecode 0x1588c3cfb389>) (#s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn workspace) #<bytecode 0x1588c400e249>) :test\? #f(compiled-function () #<bytecode 0x1588c400e261>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 3/65 0x1588c400e26d> :request-handlers #<hash-table equal 0/65 0x1588c4069b25> :response-handlers #<hash-table eql 0/65 0x1588c400e395> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1588c3da0df1> :action-handlers #<hash-table equal 0/65 0x1588c3ab2b09> :major-modes (python-mode) :activation-fn nil :priority 3 :server-id pyright-tramp :multi-root t :initialization-options (lambda nil (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))) :semantic-tokens-faces-overrides nil :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp--set-configuration (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))))) :remote? t :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil :async-request-handlers #<hash-table equal 0/65 0x1588c3d92559> :download-server-fn (lambda (_client callback error-callback _update\?) (lsp-package-ensure 'pyright callback error-callback)) :download-in-progress? nil :buffers nil :synchronize-sections nil)))
lsp--ensure-lsp-servers(#s(lsp-session :folders ("/ssh:abc@xyx:/data/abc/exp/bouncing" "/ssh:haley10:/data/abc/exp/bouncing" "/home/abc-pqrst/Documents/Code/bouncing" "/home/abc-pqrst/Documents/Code/bouncing_feature2...") :folders-blocklist nil :server-id->folders #<hash-table equal 2/65 0x1588c3959c11> :folder->servers #<hash-table equal 0/65 0x1588c39776dd> :metadata #<hash-table equal 0/65 0x1588c382214d>) (#s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn workspace) #<bytecode 0x1588c400e249>) :test\? #f(compiled-function () #<bytecode 0x1588c400e261>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 3/65 0x1588c400e26d> :request-handlers #<hash-table equal 0/65 0x1588c4069b25> :response-handlers #<hash-table eql 0/65 0x1588c400e395> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1588c3da0df1> :action-handlers #<hash-table equal 0/65 0x1588c3ab2b09> :major-modes (python-mode) :activation-fn nil :priority 3 :server-id pyright-tramp :multi-root t :initialization-options (lambda nil (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))) :semantic-tokens-faces-overrides nil :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp--set-configuration (ht-merge (lsp-configuration-section "pyright") (lsp-configuration-section "python"))))) :remote? t :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil :async-request-handlers #<hash-table equal 0/65 0x1588c3d92559> :download-server-fn (lambda (_client callback error-callback _update\?) (lsp-package-ensure 'pyright callback error-callback)) :download-in-progress? nil :buffers nil :synchronize-sections nil)) "/ssh:abc@xyx:/data/abc/exp/bouncing" nil)
lsp--try-project-root-workspaces(nil nil)
lsp(nil)
funcall-interactively(lsp nil)
call-interactively(lsp record nil)
command-execute(lsp record)
helm-M-x-execute-command(lsp)
helm-execute-selection-action-1()
helm-execute-selection-action()
helm-internal((((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1588c3fdf6f1>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal stat..." ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (f12 . #f(compiled-function () ... #<bytecode 0x1588c33613a9>)) (f11 . #f(compiled-function () ... #<bytecode 0x1588c3361389>)) (f10 . #f(compiled-function () ... #<bytecode 0x1588c3361369>)) (f9 . #f(compiled-function () ... #<bytecode 0x1588c3361349>)) (f8 . #f(compiled-function () ... #<bytecode 0x1588c3361329>)) (f7 . #f(compiled-function () ... #<bytecode 0x1588c3361309>)) (f6 . #f(compiled-function () ... #<bytecode 0x1588c33612e9>)) (f5 . #f(compiled-function () ... #<bytecode 0x1588c33612c9>)) (f4 . #f(compiled-function () ... #<bytecode 0x1588c33612a9>)) (f3 . #f(compiled-function () ... #<bytecode 0x1588c3361289>)) (f2 . #f(compiled-function () ... #<bytecode 0x1588c3361269>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1588c3361249>)) (8 keymap ... ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode 0x1588c3d6339d>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1588c3e8847d>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode 0x1588c410eb81>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal stat..." ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (f12 . #f(compiled-function () ... #<bytecode 0x1588c33613a9>)) (f11 . #f(compiled-function () ... #<bytecode 0x1588c3361389>)) (f10 . #f(compiled-function () ... #<bytecode 0x1588c3361369>)) (f9 . #f(compiled-function () ... #<bytecode 0x1588c3361349>)) (f8 . #f(compiled-function () ... #<bytecode 0x1588c3361329>)) (f7 . #f(compiled-function () ... #<bytecode 0x1588c3361309>)) (f6 . #f(compiled-function () ... #<bytecode 0x1588c33612e9>)) (f5 . #f(compiled-function () ... #<bytecode 0x1588c33612c9>)) (f4 . #f(compiled-function () ... #<bytecode 0x1588c33612a9>)) (f3 . #f(compiled-function () ... #<bytecode 0x1588c3361289>)) (f2 . #f(compiled-function () ... #<bytecode 0x1588c3361269>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1588c3361249>)) (8 keymap ... ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode 0x1588c3d6339d>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1588c3fdf711>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history)
apply(helm-internal ((((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1588c3fdf6f1>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap ... keymap ... ... keymap ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode 0x1588c3d6339d>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1588c3e8847d>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode 0x1588c410eb81>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap ... keymap ... ... keymap ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode 0x1588c3d6339d>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1588c3fdf711>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history))
helm((((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1588c3fdf6f1>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal stat..." ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (f12 . #f(compiled-function () ... #<bytecode 0x1588c33613a9>)) (f11 . #f(compiled-function () ... #<bytecode 0x1588c3361389>)) (f10 . #f(compiled-function () ... #<bytecode 0x1588c3361369>)) (f9 . #f(compiled-function () ... #<bytecode 0x1588c3361349>)) (f8 . #f(compiled-function () ... #<bytecode 0x1588c3361329>)) (f7 . #f(compiled-function () ... #<bytecode 0x1588c3361309>)) (f6 . #f(compiled-function () ... #<bytecode 0x1588c33612e9>)) (f5 . #f(compiled-function () ... #<bytecode 0x1588c33612c9>)) (f4 . #f(compiled-function () ... #<bytecode 0x1588c33612a9>)) (f3 . #f(compiled-function () ... #<bytecode 0x1588c3361289>)) (f2 . #f(compiled-function () ... #<bytecode 0x1588c3361269>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1588c3361249>)) (8 keymap ... ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode 0x1588c3d6339d>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1588c3e8847d>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode 0x1588c410eb81>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (normal-state keymap "Auxiliary keymap for Normal stat..." ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (insert-state keymap "Auxiliary keymap for Insert stat..." ... ... ... ... ... ... ... ...) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert nor...") (f12 . #f(compiled-function () ... #<bytecode 0x1588c33613a9>)) (f11 . #f(compiled-function () ... #<bytecode 0x1588c3361389>)) (f10 . #f(compiled-function () ... #<bytecode 0x1588c3361369>)) (f9 . #f(compiled-function () ... #<bytecode 0x1588c3361349>)) (f8 . #f(compiled-function () ... #<bytecode 0x1588c3361329>)) (f7 . #f(compiled-function () ... #<bytecode 0x1588c3361309>)) (f6 . #f(compiled-function () ... #<bytecode 0x1588c33612e9>)) (f5 . #f(compiled-function () ... #<bytecode 0x1588c33612c9>)) (f4 . #f(compiled-function () ... #<bytecode 0x1588c33612a9>)) (f3 . #f(compiled-function () ... #<bytecode 0x1588c3361289>)) (f2 . #f(compiled-function () ... #<bytecode 0x1588c3361269>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1588c3361249>)) (8 keymap ... ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode 0x1588c3d6339d>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1588c3fdf711>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history)
apply(helm ((((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1588c3fdf6f1>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap ... keymap ... ... keymap ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode 0x1588c3d6339d>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1588c3e8847d>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode 0x1588c410eb81>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap ... keymap ... ... keymap ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode 0x1588c3d6339d>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command (keep...") (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1588c3fdf711>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) nil "M-x " nil nil "*helm M-x*" nil nil helm-M-x-input-history))
helm(:sources (((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1588c3fdf6f1>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap ... keymap ... ... keymap ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode 0x1588c3d6339d>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command...") (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1588c3e8847d>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode 0x1588c410eb81>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap ... keymap ... ... keymap ... ... keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort #f(compiled-function (candidates source) #<bytecode 0x1588c3d6339d>) helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . "C-j: Describe this command...") (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode 0x1588c3fdf711>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) :prompt "M-x " :buffer "*helm M-x*" :history helm-M-x-input-history :truncate-lines t)
helm-M-x-read-extended-command([undo-tree-id43706 undo-tree-id43707 undo-tree-id43708 undo-tree-id43709 undo-tree-id29993 undo-tree-id29994 undo-tree-id29995 vc-git-stash-snapshot lsp:serenata-did-progress-indexing-folder-uri edebug-trace undo-tree-id43710 undo-tree-id43711 undo-tree-id43712 undo-tree-id43713 undo-tree-id43714 undo-tree-id43715 undo-tree-id43716 lsp-rust-analyzer-lens-references-trait-enable undo-tree-id43718 undo-tree-id43719 undo-tree-id22381 undo-tree-id22382 lsp-solargraph-references undo-tree-id22384 cl-print--preprocess undo-tree-id22386 lsp-pyls-plugins-flake8-max-line-length edebug-clear-frequency-count undo-tree-id43722 vc-git-conflicted-files undo-tree-id43724 undo-tree-id43725 undo-tree-id43726 undo-tree-id43727 undo-tree-id43728 undo-tree-id43729 Edebug\ All\ Defs undo-tree-id22392 lsp-sql-switch-database \' undo-tree-id22395 undo-tree-id22396 undo-tree-id43730 undo-tree-id43731 muletibetan-2 tramp-gvfs-unmount undo-tree-id43734 undo-tree-id43735 undo-tree-id43736 undo-tree-id43737 ...])
helm-M-x(nil)
funcall-interactively(helm-M-x nil)
call-interactively(helm-M-x nil nil)
command-execute(helm-M-x)
Anything else?
I log into the server using ssh keys using a passphrase.
Initially the lsp-tramp mode was not working as i was not able to detect the language server, however, adding tramp-paths to the list seems to have solved it.
When I try to reproduce the issue using lsp-start-plain
, I get another error which says /usr/bin/emacs not found
. My guess is that it is for some reason looking for emacs in the remote server.