GNU bug report logs - #64859
30.0.50; Eglot: codeAction.resolveSupport capability is incorrect

Previous Next

Package: emacs;

Reported by: Matan Peled <chaosite <at> gmail.com>

Date: Tue, 25 Jul 2023 16:40:03 UTC

Severity: normal

Found in version 30.0.50

Full log


View this message in rfc822 format

From: João Távora <joaotavora <at> gmail.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: Matan Peled <chaosite <at> gmail.com>, 64859 <at> debbugs.gnu.org
Subject: bug#64859: 30.0.50; Eglot: codeAction.resolveSupport capability is incorrect
Date: Fri, 2 Feb 2024 09:13:40 +0000
On Fri, Feb 2, 2024 at 7:33 AM Stefan Kangas <stefankangas <at> gmail.com> wrote:
>
> Matan Peled <chaosite <at> gmail.com> writes:
>
> > I'm using a recent snapshot build.
> >
> > When trying to use Eglot on Rust code (with the rust-analyzer LSP
> > server), it crashes complaining about the InitializationOptions message
> > being misformed.
> >
> > This is due to this commit:
> > https://git.savannah.gnu.org/cgit/emacs.git/commit/lisp/progmodes/eglot.el?id=3b7273f4ae3623962c5d5fdc922a62af1136f448
> >
> > resolveSupport is supposed to be a list, not a boolean, see here:
> > https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_codeAction
> >
> > I'm not sure what properties Eglot supports here, so I'm not certain on
> > what the correction should be.
>
> João, any comments here?

I think this was already fixed by:

commit bc1e7b9b8e681346e407c4dc32272a0bf4decd68
Author: João Távora <joaotavora <at> gmail.com>
Date:   Wed Jul 12 10:11:34 2023 +0100

    Eglot: fix advertisement of textDocument.codeAction.resolveSupport

    See https://github.com/joaotavora/eglot/issues/1255.

    * lisp/progmodes/eglot.el (eglot-client-capabilities):
    Use correct format for textDocument.codeAction.resolveSupport.

I just didn't mention the debbugs id.

João




This bug report was last modified 1 year and 137 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.