GNU bug report logs - #61478
28.2; eglot keeps sending `didSave` notifications despite the active server not supporting `textDocumentSync`

Previous Next

Package: emacs;

Reported by: ~kby <kby <at> tilde.team>

Date: Mon, 13 Feb 2023 14:54:02 UTC

Severity: normal

Found in version 28.2

Done: João Távora <joaotavora <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: ~kby <kby <at> tilde.team>
Subject: bug#61478: closed (Re: bug#61478: 28.2; eglot keeps sending
 `didSave` notifications despite the active server not supporting
 `textDocumentSync`)
Date: Tue, 14 Feb 2023 23:33:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#61478: 28.2; eglot keeps sending `didSave` notifications despite the active server not supporting `textDocumentSync`

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 61478 <at> debbugs.gnu.org.

-- 
61478: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61478
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: João Távora <joaotavora <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 61478-done <at> debbugs.gnu.org, felician.nemeth <at> gmail.com, kby <at> tilde.team
Subject: Re: bug#61478: 28.2; eglot keeps sending `didSave` notifications
 despite the active server not supporting `textDocumentSync`
Date: Tue, 14 Feb 2023 23:34:07 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: João Távora <joaotavora <at> gmail.com>
>> Date: Tue, 14 Feb 2023 12:57:35 +0000
>> Cc: kby <at> tilde.team, Felician Nemeth <felician.nemeth <at> gmail.com>, 61478 <at> debbugs.gnu.org
>> 
>>  ENOPATCH
>> 
>>  Probably no need for copyright assignment, but I need to see the
>>  changes.
>> 
>> I don't understand, i see a didSave.patch file attached to to kby's mail to this bug. That's the (trivial) patch I'm
>> referring to. Can't you see it, Eli?
>
> You mean, the one here:
>
>   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61478#17
>
> ?  I received this message after receiving and answering yours.
>
> If that is the patch, it is OK, but please remember a proper commit
> log message, which mentions the bug number and includes the
> Copyright-paperwork-exempt thingy.

I just committed this patch as agreed, to emacs-29.  Closing.

João


[Message part 3 (message/rfc822, inline)]
From: ~kby <kby <at> tilde.team>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.2; eglot keeps sending `didSave` notifications despite the active
 server not supporting `textDocumentSync`
Date: Mon, 13 Feb 2023 15:52:47 +0100
[Message part 4 (text/plain, inline)]
I've come across this bug whilst using the Dart language server, which 
is included in the Dart SDK.

Steps to reproduce bug:

- Create example Dart project using Flutter: `flutter create hello_world`

- Open `hello_world/lib/main.dart` in Emacs

- Start eglot with `M-x eglot RET`

- Make a rudimentary change in the file; ex. add a line break

- Save with `C-x C-s`

- Following text appears in the minibuffer area: `[eglot] Server reports 
(type=1): Unknown method textDocument/didSave`

Related bug reports (on GitHub): 
https://github.com/dart-lang/sdk/issues/36464 and 
https://github.com/microsoft/language-server-protocol/issues/288

I am using eglot 1.11 (from ELPA) with Emacs 28.2 on Arch.

Thanks in advance.

||
[Message part 5 (text/html, inline)]

This bug report was last modified 2 years and 160 days ago.

Previous Next


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