GNU bug report logs -
#71642
30.0.50; eglot-execute doesn't support ExecuteCommandParams
Previous Next
Reported by: Troy Brown <brownts <at> troybrown.dev>
Date: Wed, 19 Jun 2024 03:25:02 UTC
Severity: normal
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 71642 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Thu, Jun 20, 2024 at 5:46 AM João Távora <joaotavora <at> gmail.com> wrote:
>
> On closer analysis the only confusing thing is that the spec
> encourages clients to call textDocument/executeCommand with
> illegal ExecuteCommandParams objects that contain an extraneous
> 'title'
>
> Most servers apparently don't care, but Eglot is doing this and
> it's a subtle bug.
>
> I think the right thing to do is to have Command _and_
> ExecuteCommandParams in the matcher.
>
Thanks for the explanation.
> I've done a tweak to your patch. See after my sig. It's untested, so
> please have a look. If you can, test, add more comments, change the order
> if indeed it's needed. You can also change the implementation if you think
> the recursiveness makes it more confusing.
>
I've updated the patch based on your suggestions. I've tested all
invocations of executeCommand through Command, ExecuteCommandParams
and CodeAction and they all appear to be working as expected now. I
think the recursion is fine, it's simple and elegant. With regards to
the order, you are correct, since the command in CodeAction isn't a
string, it's not a problem. I was previously erroneously only testing
with a string.
[0001-Eglot-Fix-command-execution-bug-71642.patch (text/x-patch, attachment)]
This bug report was last modified 328 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.