Closed vitvakatu closed 2 years ago
See also https://github.com/joaotavora/eglot/discussions/845#discussioncomment-2539437.
EDIT
See also https://bugs.gnu.org/57725.
Thanks. This is a new feature that hasn't been properly tested.
@vitvakatu can you try with this patch to eglot.el (or simply evaluate the form)
diff --git a/eglot.el b/eglot.el
index ff94d5ca5f..3b1b1a9536 100644
--- a/eglot.el
+++ b/eglot.el
@@ -796,6 +796,8 @@ treated as in `eglot-dbind'."
:documentation
"Represents a server. Wraps a process for LSP communication.")
+(cl-defmethod initialize-instance :before ((_server eglot-lsp-server) &optional args)
+ (cl-remf args :initializationOptions))
;;; Process management
(defvar eglot--servers-by-project (make-hash-table :test #'equal)
LSP transcript - M-x eglot-events-buffer (mandatory unless Emacs inoperable)
Not possible to provide -
eglot
is not starting.Backtrace (mandatory, unless no error message seen or heard):
Minimum Reproducible Example (mandatory)
I start Emacs GUI
I downloaded the latest
rust-analyzer
executable from here: https://github.com/rust-lang/rust-analyzer/releases/tag/2022-04-25 and placed it to the directory inPATH
.I can reproduce on any Rust file or repository, but let's take https://github.com/rust-lang/rustfmt. Go to file
rustfmt/src/config/mod.rs
.I have the following Eglot config in my Emacs config file:
After running
M-x eglot
in any Rust file, I get the following error:I expect
eglot
to start normally, as the documentation states: