Closed ileixe closed 6 months ago
I don't know but I see no reason why it shouldn't. Do you have the wrapper installed on the remote end? You might open an issue with emacs-lsp-booster to get their input.
I have wrapper on the remote end.
(defun eglot-booster--jsonrpc--json-read (old-fn &rest args)
"Try to parse bytecode instead of json."
(or
(when (equal (following-char) ?#)
(let ((bytecode (read (current-buffer))))
(when (byte-code-function-p bytecode)
(funcall bytecode))))
(apply old-fn args)))
;; (defun eglot-booster--jsonrpc--json-read (orig-func)
;; "Read JSON or bytecode, wrapping the ORIG-FUNC JSON reader."
;; (if eglot-booster-boosted ; local to process-buffer
;; (or (and (= (following-char) ?#)
;; (let ((bytecode (read (current-buffer))))
;; (when (byte-code-function-p bytecode)
;; (funcall bytecode))))
;; (funcall orig-func))
;; ;; Not in a boosted process, fallback
;; (funcall orig-func)))
It's weird in that I can run eglot successfully with the function that original repo has.
Can you change to your *EGLOT ... output*
buffer (note the leading space) and in there C-h v eglot-booster-boosted
? What is the value there?
eglot-booster-boosted is a variable defined in ‘eglot-booster.el’.
Its value is nil
Not documented as a variable.
After adding leading space *ELOGT ... output*
, its changed to nil
. Do you have any clue?
I have pushed caee55e, which attempts to handle tramp remote commands (which are typically starting /bin/sh) correctly. Let me know if that works for you (works here).
Works like a charm! Thanks for quick response.
Hi, thanks for great package.
I wonder this package works in tramp env. I got error below in Message buffer
and eglot log buffer nothing appeared
Can you give me any guidance? I don't have any customization for eglot itself.
Thanks.