GNU bug report logs -
#66144
29.1; eglot-shutdown request params violate JSONRPC spec
Previous Next
Reported by: Aaron Zeng <azeng <at> janestreet.com>
Date: Thu, 21 Sep 2023 21:00:01 UTC
Severity: normal
Found in version 29.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #32 received at 66144 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> Can you test gopls shutdowns
with your patch Javier?
I have tested locally with gopls v0.11.0 and M-x eglot-shutdown works
successfully afaict. Both w/o and w/ the patch applied.
However I think it might be better to modify jsonrpc-request so that when
the param argument is nil the JSON serialization omits the param key. I'm
thinking of using the `,@(when param (list param)) idiom. jsonrpc has
tests. I'd like to give it a go this weekend to see if I can come up with
an acceptable way to have jsonrpc.el conform with the standard w/o changing
the API. What do you think?
On Sat, Oct 14, 2023 at 1:30 PM João Távora <joaotavora <at> gmail.com> wrote:
> On Sat, Oct 14, 2023 at 7:02 PM João Távora <joaotavora <at> gmail.com> wrote:
> >
> > On Sat, Oct 14, 2023 at 6:19 PM Javier Olaechea <pirata <at> gmail.com>
> wrote:
> > >
> > > > If you can find some Eglot use case that is actually hurt by this,
> we can reopen.
> > >
> > > The OP has an Eglot use case that is hurt by this, they cannot
> shutdown the ocamllsp server. Because when they call M-x eglot-shutdown,
> eglot sends an invalid request. The server dies instead of returning a
> response and then eglot restarts the server.
> >
> > But what OP? I don't see this message, can you point to it?
>
> OK, I see the message now. In that case that changes things.
> One of the misbehaving servers has to correct itself. I'd say it
> should be gopls.
>
> Unless that has already happened. Can you test gopls shutdowns
> with your patch Javier?
>
> João
>
--
"I object to doing things that computers can do." — Olin Shivers
[Message part 2 (text/html, inline)]
This bug report was last modified 166 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.