[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#57725: 29.0.50; eglot: Error when using :initializationOptions
From: |
Augusto Stoffel |
Subject: |
bug#57725: 29.0.50; eglot: Error when using :initializationOptions |
Date: |
Sun, 11 Sep 2022 09:02:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
If I attempt to pass :initializationOptions to a server like so:
(setf (alist-get 'python-mode eglot-server-programs)
'("jedi-language-server" :initializationOptions eglot--{}))
I get an error:
Debugger entered--Lisp error: (invalid-slot-name "#<eglot-lsp-server
eglot-lsp-server-92f0c8>" :initializationOptions)
A workaround is to add this to the eglot-lsp-server defclass:
@@ -788,6 +788,7 @@ treated as in `eglot-dbind'."
(managed-buffers
:documentation "List of buffers managed by server."
:accessor eglot--managed-buffers)
+ (_ :initarg :initializationOptions)
(saved-initargs
:documentation "Saved initargs for reconnection purposes."
:accessor eglot--saved-initargs)
I can also confirm that after the workaround, the options are passed
correctly to the server upon initialization.
- bug#57725: 29.0.50; eglot: Error when using :initializationOptions,
Augusto Stoffel <=
- bug#57725: 29.0.50; eglot: Error when using :initializationOptions, Basil L. Contovounesios, 2022/09/11
- bug#57725: 29.0.50; eglot: Error when using :initializationOptions, João Távora, 2022/09/11
- bug#57725: 29.0.50; eglot: Error when using :initializationOptions, Augusto Stoffel, 2022/09/11
- bug#57725: 29.0.50; eglot: Error when using :initializationOptions, João Távora, 2022/09/11
- bug#57725: 29.0.50; eglot: Error when using :initializationOptions, Augusto Stoffel, 2022/09/11
- bug#57725: 29.0.50; eglot: Error when using :initializationOptions, João Távora, 2022/09/11
- bug#57725: 29.0.50; eglot: Error when using :initializationOptions, Augusto Stoffel, 2022/09/17
- bug#57725: 29.0.50; eglot: Error when using :initializationOptions, Stefan Kangas, 2022/09/17
- bug#57725: 29.0.50; eglot: Error when using :initializationOptions, Augusto Stoffel, 2022/09/17
- bug#57725: 29.0.50; eglot: Error when using :initializationOptions, Stefan Kangas, 2022/09/17