From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ~kby via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61478: 28.2; eglot keeps sending `didSave` notifications despite the active server not supporting `textDocumentSync` Date: Mon, 13 Feb 2023 15:52:47 +0100 Message-ID: <43958a5c-a163-d1b3-5c1c-8a5ea3c1064d@tilde.team> Reply-To: ~kby Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------RVsN7AJzjW2HtvFq2iuAEoJl" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20468"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 To: 61478@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 13 15:54:28 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRaDs-000539-1s for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Feb 2023 15:54:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRaDU-0006Hl-Jm; Mon, 13 Feb 2023 09:54:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRaDS-0006Hc-SO for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2023 09:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRaDS-0007nh-Jm for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2023 09:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRaDS-000671-GL for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2023 09:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ~kby Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Feb 2023 14:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61478 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167629999723435 (code B ref -1); Mon, 13 Feb 2023 14:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Feb 2023 14:53:17 +0000 Original-Received: from localhost ([127.0.0.1]:48085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRaCi-00065s-C7 for submit@debbugs.gnu.org; Mon, 13 Feb 2023 09:53:17 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRaCN-00064w-3n for submit@debbugs.gnu.org; Mon, 13 Feb 2023 09:52:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRaCM-0006D1-UH for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2023 09:52:54 -0500 Original-Received: from tilde.team ([2607:5300:60:4f58::248]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRaCL-0007hv-6v for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2023 09:52:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tilde.team; s=mail; t=1676299971; bh=jgscNYr+ge+37AcRcCbwq7iJ7uR+AygKXYgYElUotRE=; h=Date:To:From:Subject:From; b=Hu9MGLNel94WAqcmgFJUS14gjgHjGZetegPb/ZC79ICj6pp02fwqDIC8tUbIAw+mb nE2R6K0N5etl0DP+U47dvhtKEyAgaZ43K2kSXoMmrhA/teCq8wzAD+OxhQXH5vEInd /HYCrSwoA8W1jdRkYVqx9SVo6B9Dv5/h9FJ4NBmM= Original-Received: from [IPV6:2001:7c7:20e8:7d:3af2:c68c:cf92:6e31] (unknown [IPv6:2001:7c7:20e8:7d:3af2:c68c:cf92:6e31]) by tilde.team (Postfix) with ESMTPSA id EE2AD4C02E1 for ; Mon, 13 Feb 2023 14:52:50 +0000 (UTC) Content-Language: en-GB, de-DE Received-SPF: pass client-ip=2607:5300:60:4f58::248; envelope-from=kby@tilde.team; helo=tilde.team X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 13 Feb 2023 09:53:15 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255494 Archived-At: This is a multi-part message in MIME format. --------------RVsN7AJzjW2HtvFq2iuAEoJl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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. || --------------RVsN7AJzjW2HtvFq2iuAEoJl Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

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.

--------------RVsN7AJzjW2HtvFq2iuAEoJl--