GNU bug report logs - #79655
31.0.50; eglot: request body of eglot-signal-didChangeConfiguration

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: parlando@HIDDEN; Done: João Távora <joaotavora@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 79655-done <at> debbugs.gnu.org:


Received: (at 79655-done) by debbugs.gnu.org; 20 Oct 2025 12:02:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 20 08:02:01 2025
Received: from localhost ([127.0.0.1]:44413 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vAoaO-0005vK-QZ
	for submit <at> debbugs.gnu.org; Mon, 20 Oct 2025 08:02:01 -0400
Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:44064)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vAoaL-0005uv-G9
 for 79655-done <at> debbugs.gnu.org; Mon, 20 Oct 2025 08:01:58 -0400
Received: by mail-wr1-x430.google.com with SMTP id
 ffacd0b85a97d-3ee15b5435bso4448308f8f.0
 for <79655-done <at> debbugs.gnu.org>; Mon, 20 Oct 2025 05:01:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1760961711; x=1761566511; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=7FWI0kE5DrCyo+IDKXJKUCJRVX+7zhcONBgRJlcYJIM=;
 b=TEnOT3tHAyw01kaq1SoPWMm1P869hiPCZK59lqaa25byKevNWoxa9VxtYq6QknLe4a
 zFp4yQZUKm1cUR1aZn+7EzeLU9Tj7pTy8ZrtTu4GhUmpjwHnzpFFBs7leh95es/wSHPs
 61CARtbLbgGaoyURjDkCBHQTwmFpEqVylbUrkE6LEb+oh7d9O6t1COSydg6Bg2kPniaj
 aJZH0ed4sEt7QRyhIIwQ/aOn+L4J5F6Evp+yyivq5NIg8F0TizLc6OKjklJaQdREMF9W
 s1D8+qUKFgMggQE2zspe4G6TLdoN9eJhYd0ulj9plQKaFogvvxVU4D1s5rTDdrT2W8rm
 eH7A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1760961711; x=1761566511;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=7FWI0kE5DrCyo+IDKXJKUCJRVX+7zhcONBgRJlcYJIM=;
 b=UOnDdy4uAOFHnKP2/3ubXYRUkOGZiMWvbHUGxjLGZprB98Vxto4PH1pcmDbKAZzXeK
 aflAOkulp1CKJ2DQDmdyIWNB9CeyNudXuD3SxQpuwg+5ZxjjqhCIBuUxTVizi8oQQGZZ
 TWNBC69J5mr1rmCeIqhvCo7EWi6pSibUQjNtBFbAYULp+u5kWLyeKZ5NyRCqAm13InHY
 G1sqJS8cYG6rPQbDBw8LP8/KCGpcop1MjUVXNfg11n+9zt6lhX0r3q9/UNMH4OXN1U5z
 lwWzh53V5rg3SRh8Z07bKubBbWs1PokBCw1ScVo9tTXMaoudE+F1yKj3NBprNAvAqfKZ
 7sJw==
X-Forwarded-Encrypted: i=1;
 AJvYcCWAA5K0XounQwsgz//ZHG9IyOowgh3g5A3ThHB31Yqv44gN0skffpRcGnNwL5cmcPrCWjdLt6dmfiSi <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0YxttnhxXuU1OlQFtNX2RhpWq/nsGudyxZ8gVRqUGaTwF78pWK6m
 FyG7gOM/9Pb0zGDNWLSQm9MzBrPxvVskooKjRxp1xsmUJQHaTviSRESLXaSahA==
X-Gm-Gg: ASbGnctfmCc/BuCqTgrZtZoG2xQp++7S8pyMwlRID06bifWjZhAgCQNmY7QZj+Gqqxr
 IMkQVqfmKStHYw7eaQeljTPtPjBYVNYkEKRmjscEQSFvUirzyGZcZJCzh3sq+WZZVwn87lOP1G6
 RZCQRWQ1IvDEfG3XBYod3r5RhhIXHQ6vwSD+OewjPfpyHsGzhk+mKm5FkazMAecQfpPRlVTJHyL
 3eUKzcRk3Dc1mE0UDWEJU4Rre9EUp0wf+qkv1bHUzd4v1VtL81N8VWMBBNkUwQxt54GCoOvbIHx
 pCJMleVzOQtzBA25FdQFwdVkEBHJqUMp41BUC2nDtKZDbYVmJ+vdeuDixfqOZzosjIWLcCdxXZE
 i3hkDN+lNJmGsIggP1kj0XjwS9WE9lVGwohzuH2riZWGItRnf9MYYfTNKL55t9mFfv3v5q15CGk
 1pixkL02+lft5G2FFmmFNsmHPrhhXF
X-Google-Smtp-Source: AGHT+IG/DqBOhqroypfQyxnu2w5pR7sVQRV48kBxZSlGTJb40gN6NtYN5qx6vY8bj1eV6DNK+MGfNw==
X-Received: by 2002:a5d:64c3:0:b0:427:8fe:4359 with SMTP id
 ffacd0b85a97d-42708fe44f3mr7489695f8f.27.1760961710100; 
 Mon, 20 Oct 2025 05:01:50 -0700 (PDT)
Received: from krug (87-196-72-166.net.novis.pt. [87.196.72.166])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-427ea5a0f7dsm14772412f8f.4.2025.10.20.05.01.49
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 20 Oct 2025 05:01:49 -0700 (PDT)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: parlando@HIDDEN
Subject: Re: bug#79655: 31.0.50; eglot: request body of
 eglot-signal-didChangeConfiguration
In-Reply-To: <5299d783-ac60-4843-aae1-71792bda05f4@HIDDEN>
References: <68c7ae84-ab6e-4d3c-b71d-cc1ffd5e8b4a@HIDDEN>
 <86ldl7yuy4.fsf@HIDDEN> <87ecqypve1.fsf@HIDDEN>
 <ca2117ba-94d4-415d-a78a-3aaeae878843@HIDDEN>
 <87plai5wmh.fsf@HIDDEN>
 <bf10d9c5-06ae-45f9-9d79-3aad553e2015@HIDDEN>
 <CALDnm53QpTGDQzxHTCQeHaej37kCfk_f8NLv=1Sj4RuiCYKsRg@HIDDEN>
 <5299d783-ac60-4843-aae1-71792bda05f4@HIDDEN>
Date: Mon, 20 Oct 2025 13:03:12 +0100
Message-ID: <87a51l6arj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79655-done
Cc: Eli Zaretskii <eliz@HIDDEN>, 79655-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

parlando@HIDDEN writes:

> To clarify, 2 things were confusing to me:
>
> 1. The use of the server keyword (:gopls etc.) in the
> settings. Intuitively, I had expected that eglot uses it internally to
> identify the configured server, but not as part of a server API.

Your intuition was not correct.

> 2. As a consequence, this prevents different configuration requests
> for different servers. A .dir-locals.el like

Perhaps, as a consequence of your mistaken intuition, right?  Because in
the manual there a section that says "This following form may also be
used:" which shows how you can prevent pylsp settings from reaching the
gopls server.

Anyway, I pushed a commit to the manual rewording this.  I trust it will
be better and not ambiguous.

    [...]
=20=20=20=20=20
    The above form sets the value of @code{eglot-workspace-configuration} in
    all the buffers inside the project; each language server will then use
    only the section of the parameters intended for it, and ignore the rest.
    In our example, @command{pylsp} and @command{gopls} are solely
    interested in the @code{:pylsp} and @code{:gopls} parameter section
    names, respectively.  However, section names don't have to match the
    server name and some servers may be even interested in multiple
    sections: the @command{typescript-language-server} server is known to be
    interested in the @code{:javascript} and @code{:typescript} section
    names.
=20=20=20=20=20
    To avoid sending whole configuration sections to servers who are
    decidedly not interested in them, the following form may also be used:
=20=20=20=20=20
    [...]

I'm closing this report,
Jo=C3=A3o




Notification sent to parlando@HIDDEN:
bug acknowledged by developer. Full text available.
Reply sent to João Távora <joaotavora@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 79655 <at> debbugs.gnu.org:


Received: (at 79655) by debbugs.gnu.org; 20 Oct 2025 11:15:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 20 07:15:00 2025
Received: from localhost ([127.0.0.1]:44243 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vAnqu-0007bQ-0O
	for submit <at> debbugs.gnu.org; Mon, 20 Oct 2025 07:15:00 -0400
Received: from smtp06.prod.qlmail.ch ([89.236.174.46]:33146)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <parlando@HIDDEN>)
 id 1vAnqr-0007b4-Mm
 for 79655 <at> debbugs.gnu.org; Mon, 20 Oct 2025 07:14:58 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intergga.ch;
 s=quickline2020; t=1760958891;
 bh=AKTG6qAejLBI69FHOAVzp0qfel5rfyElL3X/om9rVqM=;
 h=Date:Subject:To:Cc:References:From:In-Reply-To;
 b=BNsASUUVwothUJhJhd2nOKlZ2u9EXs6SIG9ar6JKDTlkOt8s5ou21lnu/fu1QGGNo
 H8g1eGqTjGtuB22IKZDClNk9wfyFWtVlTGwIsNr2Kl16xspUAvQYhiFU5IYak9iBYZ
 jhtGVHP32TocOl7ibNgNOHBiVOg4IncyN2yu4vvNn0MEc9SCNxJpvMMuqE4lqBHwhE
 cwaHITG7/xLsqpVO+ORL0vlqUjVaaRvcs/MICJrOvar21yHKFb0kcJIdqfgoeYKSlH
 ZtGyRwF6Xa0xr5gpr5k3GMuNWGiP0qpXToMurG7omNOE6aRLLJ1qiXRBJTbXwDyrCz
 GUIg2pO6sKlVw==
Received: from [192.168.1.33] (207-135-16-94.dyn.cable.qlnet.ch
 [94.16.135.207]) (Authenticated sender: parlando@HIDDEN)
 by smtp06.prod.qlmail.ch (Postfix) with ESMTPSA id 46D38A057E;
 Mon, 20 Oct 2025 13:14:51 +0200 (CEST)
Message-ID: <5299d783-ac60-4843-aae1-71792bda05f4@HIDDEN>
Date: Mon, 20 Oct 2025 13:14:50 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79655: 31.0.50; eglot: request body of
 eglot-signal-didChangeConfiguration
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
References: <68c7ae84-ab6e-4d3c-b71d-cc1ffd5e8b4a@HIDDEN>
 <86ldl7yuy4.fsf@HIDDEN> <87ecqypve1.fsf@HIDDEN>
 <ca2117ba-94d4-415d-a78a-3aaeae878843@HIDDEN> <87plai5wmh.fsf@HIDDEN>
 <bf10d9c5-06ae-45f9-9d79-3aad553e2015@HIDDEN>
 <CALDnm53QpTGDQzxHTCQeHaej37kCfk_f8NLv=1Sj4RuiCYKsRg@HIDDEN>
Content-Language: de-CH
From: parlando@HIDDEN
In-Reply-To: <CALDnm53QpTGDQzxHTCQeHaej37kCfk_f8NLv=1Sj4RuiCYKsRg@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 1.0.7 at smtp06
X-Virus-Status: Clean
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79655
Cc: Eli Zaretskii <eliz@HIDDEN>, 79655 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

To clarify, 2 things were confusing to me:

1. The use of the server keyword (:gopls etc.) in the settings. 
Intuitively, I had expected that eglot uses it internally to identify 
the configured server, but not as part of a server API.

2. As a consequence, this prevents different configuration requests for 
different servers. A .dir-locals.el like
(
  (nil . ((eglot-workspace-configuration . (:pylsp (:plugins 
(:jedi_completion (:include_params t :fuzzy t)))
                                            :gopls (:usePlaceholders t)))))
  )

sends
{
   "settings": {
     "pylsp": {
       "plugins": {
         "jedi_completion": {
           "include_params": true,
           "fuzzy": true
         }
       },
       "gopls": {
         "usePlaceholders": true
       }
     }
   }
}

to both pylsp and gopls, even though it may work.

In the original example, assume one wants to configure, beside 
typescript-language-server, a second server (a linter e.g.) that also 
expects a top level javascript object. A scenario like this would be 
easily realizable with eglot sending only the actual configuration.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79655; Package emacs. Full text available.

Message received at 79655 <at> debbugs.gnu.org:


Received: (at 79655) by debbugs.gnu.org; 20 Oct 2025 07:51:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 20 03:51:07 2025
Received: from localhost ([127.0.0.1]:43408 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vAkfb-0000uu-29
	for submit <at> debbugs.gnu.org; Mon, 20 Oct 2025 03:51:07 -0400
Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:61583)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vAkfZ-0000u8-3H
 for 79655 <at> debbugs.gnu.org; Mon, 20 Oct 2025 03:51:05 -0400
Received: by mail-ot1-x32b.google.com with SMTP id
 46e09a7af769-74572fb94b3so2976383a34.2
 for <79655 <at> debbugs.gnu.org>; Mon, 20 Oct 2025 00:51:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1760946659; x=1761551459; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=kHa5X1reRbBihdKadMXZ+l9XAPi5L+D8a1qg5e6SoQY=;
 b=UpIIOhOEVYVue4fEyYDwaxelVMQOdEdasMj95VW3mOhQFYe3Tpa0sdNKHZn9E8iFvg
 SsZi1TKIV7QHsqRmXX7DqsSozg1CUiY1CTENBQZvFP9zFh9CPicQ0vPk4WmyfYWvqRfa
 ly89NA+nWUoI4kO40G3FUcrIkN957FosBAEnHgvQ2zka36awV7hoAyHm+yz667GZB0w6
 1Xwf/5AuKorwvbRCafIzdBKm1IkzpR+NZsW7vrAgU7U82qinRmaWoG5lzvMO/sj+Gnr8
 sfUGRkpIKZJE9eAf/QsdFfT0F/Ggt62wCEAF8zzbEVch1crawHQmbm0omZXlucR05wrp
 1BBA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1760946659; x=1761551459;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=kHa5X1reRbBihdKadMXZ+l9XAPi5L+D8a1qg5e6SoQY=;
 b=bnIiCXd7MqtMXMnAQX/szDMInKudkGhkwtfPKax5JpuLbK7H8MO1DrqAzvywk1D4GY
 0TatkEgvTyv9koVhcZtNtoJ/AnctJ3MyBUYOHLl4C/BsDWaPmMJZ4TjUrpULtbZN+Tky
 pkUPQwrwUAgZJN1cMdsS9p48wX4VqeFbYx0yL+m+AncljEVeEmpXVYvw1eKsI9We6bGT
 aT49SRwz9huMm4eWn9XTAb7Eo5GjWvKEA3y/SNxMrHXPWGSZ+XZ3tWsFcNYKFNkNvwH/
 PYm/zxtIZM6qzG4We4+DOKfRuDJXVIlGvdAa9WZ2+/v7YHtyjFdPOEpL72lo8gGuQ6y2
 sFxw==
X-Forwarded-Encrypted: i=1;
 AJvYcCVKmy3PaEn0wI3SMDsxZg68Xp/BvfIpYacshBQ5w0wADfMzF+efd/J9ZOBLN3sfLjQBgGvcKA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yw7Y7h76KRyf++JERXiRVeLURzrIPi3nuxH+sK5nr/rVgoCdLwv
 +1r5hNkPpkXVda7+XRS/F+S5byb3DHNOFucJ4wfbdr8CPCgd0SX+RtxAxKdaTSPgaU+1Ogwf8Di
 3Edvs7w+ABnJMIG1OqrrjEqgig+GLyJE=
X-Gm-Gg: ASbGncuPVWaeFQFSo/2uoofOSRrKhmJ08e40t1rM6V1ChUr8XQOAnGl70Ug/XNdvIiw
 1J5PUfnuPCsrx9IULTj9ZLg6RZFRAJ69Qd6QXqtX45M8mAgXz/9j9me26tlbEbXcZnwyG8mM8es
 tZJB2JA/p8rxqnK0E1vQzhFKA0d0COzUAOoyJfBy5BqeuTJEGDezVxybtxuVpt5n8PJp1FZmjt6
 jnCuBXYltIe0JiYWkiYk3EsiJDiGz06KWL3uDYEzvLorZNMGsH5rgFpj/Lg
X-Google-Smtp-Source: AGHT+IHNE/Y2Cb0/+rgSTMF/f9lAj5dGJ7JRSM6WbJ0En3dfHkLX2hzpaZAuccHDf+dR69cqK4/5Ptu3kTwfww3vJ4c=
X-Received: by 2002:a05:6808:15a1:b0:43f:7a87:b3d with SMTP id
 5614622812f47-443a2f63ec0mr4637319b6e.29.1760946658946; Mon, 20 Oct 2025
 00:50:58 -0700 (PDT)
MIME-Version: 1.0
References: <68c7ae84-ab6e-4d3c-b71d-cc1ffd5e8b4a@HIDDEN>
 <86ldl7yuy4.fsf@HIDDEN> <87ecqypve1.fsf@HIDDEN>
 <ca2117ba-94d4-415d-a78a-3aaeae878843@HIDDEN>
 <87plai5wmh.fsf@HIDDEN> <bf10d9c5-06ae-45f9-9d79-3aad553e2015@HIDDEN>
In-Reply-To: <bf10d9c5-06ae-45f9-9d79-3aad553e2015@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Mon, 20 Oct 2025 08:50:48 +0100
X-Gm-Features: AS18NWCtnp8LKno7mJsu6Yhs_jue1sFkgTyS2ySsJX3S0Kgqd9s6oqtXBpQ8cLg
Message-ID: <CALDnm53QpTGDQzxHTCQeHaej37kCfk_f8NLv=1Sj4RuiCYKsRg@HIDDEN>
Subject: Re: bug#79655: 31.0.50;
 eglot: request body of eglot-signal-didChangeConfiguration
To: parlando@HIDDEN
Content-Type: multipart/alternative; boundary="0000000000001334e906419258b3"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79655
Cc: Eli Zaretskii <eliz@HIDDEN>, 79655 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000001334e906419258b3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Jo=C3=A3o T=C3=A1vora

On Mon, Oct 20, 2025, 08:07 <parlando@HIDDEN> wrote:

> On 10/20/2025 12:56 AM, Jo=C3=A3o T=C3=A1vora wrote:
>
> > It is up to the server how to interpret that part.  Apparently
> > typescript-language-serve doesn't like to see its name in the LSP
> > settings sections.
> >
> >> Same here, :gopls is the section/server part of
> >> `eglot-workspace-configuration' and should not be sent within the
> >> request.
> >
> > gopls !=3D typescript-language-server.  How do you know that that the
> > :gopls should _not_ be sent?
> >
>
> Means that if in a workspace I have configured more than one language
> server (as documented), eglot sends all these settings to each server,
> assuming that each server is able to handle the ambiguities.
>
> If this is intended, i misunderstood the docs and the ticket should be
> closed.


I don't use any of these, adds but I was just trying to decipher what you
meant by "should not be sent". Apparently, it was just a supposition.

And yes, I'd say different servers interpret different subsections of
settings differently. Gopls wants to find a "gopls" one and typescript
wants to find a "javascript" one. But as far as I can tell, this is not
encoded in the LSP spec and it can't be known in advance.

If you were misled by text in the manual feel free to propose a rewording
of that section, or an addition to it.

Jo=C3=A3o

--0000000000001334e906419258b3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><div><br></div><div><br></div><div data-smartmail=3D=
"gmail_signature">Jo=C3=A3o T=C3=A1vora</div><br><div class=3D"gmail_quote =
gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Oct 20=
, 2025, 08:07  &lt;<a href=3D"mailto:parlando@HIDDEN">parlando@intergg=
a.ch</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex">On 10/20/2025 12:56 AM, Jo=C3=A3o T=C3=A1vora wrote:<br>
<br>
&gt; It is up to the server how to interpret that part.=C2=A0 Apparently<br=
>
&gt; typescript-language-serve doesn&#39;t like to see its name in the LSP<=
br>
&gt; settings sections.<br>
&gt; <br>
&gt;&gt; Same here, :gopls is the section/server part of<br>
&gt;&gt; `eglot-workspace-configuration&#39; and should not be sent within =
the<br>
&gt;&gt; request.<br>
&gt; <br>
&gt; gopls !=3D typescript-language-server.=C2=A0 How do you know that that=
 the<br>
&gt; :gopls should _not_ be sent?<br>
&gt; <br>
<br>
Means that if in a workspace I have configured more than one language <br>
server (as documented), eglot sends all these settings to each server, <br>
assuming that each server is able to handle the ambiguities.<br>
<br>
If this is intended, i misunderstood the docs and the ticket should be <br>
closed.</blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"aut=
o">I don&#39;t use any of these, adds but I was just trying to decipher wha=
t you meant by &quot;should not be sent&quot;. Apparently, it was just a su=
pposition.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto">And yes=
, I&#39;d say different servers interpret different subsections of settings=
 differently. Gopls wants to find a &quot;gopls&quot; one and typescript wa=
nts to find a &quot;javascript&quot; one. But as far as I can tell, this is=
 not encoded in the LSP spec and it can&#39;t be known in advance.</div><di=
v dir=3D"auto"><br></div><div dir=3D"auto">If you were misled by text in th=
e manual feel free to propose a rewording of that section, or an addition t=
o it.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Jo=C3=A3o</div><di=
v dir=3D"auto"></div></div>

--0000000000001334e906419258b3--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79655; Package emacs. Full text available.

Message received at 79655 <at> debbugs.gnu.org:


Received: (at 79655) by debbugs.gnu.org; 20 Oct 2025 07:07:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 20 03:07:14 2025
Received: from localhost ([127.0.0.1]:43320 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vAjz7-0006dU-P6
	for submit <at> debbugs.gnu.org; Mon, 20 Oct 2025 03:07:14 -0400
Received: from smtp01.prod.qlmail.ch ([89.236.174.41]:35436)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <parlando@HIDDEN>)
 id 1vAjz4-0006cn-Gr
 for 79655 <at> debbugs.gnu.org; Mon, 20 Oct 2025 03:07:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intergga.ch;
 s=quickline2020; t=1760944024;
 bh=gUdMaQjeWfjTazEKvw8M1U7TuHhGaQ2A03lzrm0CNac=;
 h=Date:Subject:To:Cc:References:From:In-Reply-To;
 b=AMUX6m8lkpQ91r+WTvr4uJNHnP+i7oCrHdRWh+d5o0z/MiD8wvIYKxXsBA2XOulNs
 duPry+inz7XJNkTBDntMrXzvT+EplOVYITaIvLD1Htu0K6UU0aQB6yRLmfu73/4DGf
 Ej6Zjb3i5/56KcqGKwayYd3VO85iQVUmhuKD03Lmd36zO2Szj7/lfwtJLSq3aItW0u
 KXI58GpxJTTHYC8FIF0jSgx4gACHweKv5txURS3xUN871Tk5+saPCETWQIsS5XNQih
 /pH3n3V59JYAQJ/5oFDK8/KINxxRLcQPat8Y18W37Hj15jabmm91hNQxk5ohvjqRem
 yLDRwXMHqSjeg==
Received: from [192.168.1.33] (207-135-16-94.dyn.cable.qlnet.ch
 [94.16.135.207]) (Authenticated sender: parlando@HIDDEN)
 by smtp01.prod.qlmail.ch (Postfix) with ESMTPSA id 02EF4A02AD;
 Mon, 20 Oct 2025 09:07:03 +0200 (CEST)
Message-ID: <bf10d9c5-06ae-45f9-9d79-3aad553e2015@HIDDEN>
Date: Mon, 20 Oct 2025 09:07:04 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79655: 31.0.50; eglot: request body of
 eglot-signal-didChangeConfiguration
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
References: <68c7ae84-ab6e-4d3c-b71d-cc1ffd5e8b4a@HIDDEN>
 <86ldl7yuy4.fsf@HIDDEN> <87ecqypve1.fsf@HIDDEN>
 <ca2117ba-94d4-415d-a78a-3aaeae878843@HIDDEN> <87plai5wmh.fsf@HIDDEN>
Content-Language: de-CH
From: parlando@HIDDEN
In-Reply-To: <87plai5wmh.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 1.0.7 at smtp01
X-Virus-Status: Clean
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79655
Cc: Eli Zaretskii <eliz@HIDDEN>, 79655 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 10/20/2025 12:56 AM, João Távora wrote:

> It is up to the server how to interpret that part.  Apparently
> typescript-language-serve doesn't like to see its name in the LSP
> settings sections.
> 
>> Same here, :gopls is the section/server part of
>> `eglot-workspace-configuration' and should not be sent within the
>> request.
> 
> gopls != typescript-language-server.  How do you know that that the
> :gopls should _not_ be sent?
> 

Means that if in a workspace I have configured more than one language 
server (as documented), eglot sends all these settings to each server, 
assuming that each server is able to handle the ambiguities.

If this is intended, i misunderstood the docs and the ticket should be 
closed.

Many thanks!





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79655; Package emacs. Full text available.

Message received at 79655 <at> debbugs.gnu.org:


Received: (at 79655) by debbugs.gnu.org; 19 Oct 2025 22:55:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 19 18:55:12 2025
Received: from localhost ([127.0.0.1]:41101 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vAcIy-0008WF-0m
	for submit <at> debbugs.gnu.org; Sun, 19 Oct 2025 18:55:12 -0400
Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:55306)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vAcIu-0008Vb-Uo
 for 79655 <at> debbugs.gnu.org; Sun, 19 Oct 2025 18:55:09 -0400
Received: by mail-wr1-x42e.google.com with SMTP id
 ffacd0b85a97d-42706c3b7cfso1080308f8f.2
 for <79655 <at> debbugs.gnu.org>; Sun, 19 Oct 2025 15:55:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1760914502; x=1761519302; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=N7rULPCSosHROax1Y/6xm3ctxWjppP+8qg2MGdFqDb0=;
 b=IRm6FwGctotxXIlcuPGhTrp7cdeZ9vFi7c2gEljJgaQH9mVgywxVMdzD+pQLpllK5E
 tl7vTcLIQ0K2BIV1P05+s6jaYkSjQ3Yonrry+h4gHve29hdCbHdqA9Q19GSsBkSJ/HF/
 DjzA1EWjvH+15JkR9qgu8Ov7uAefnJuFX105Ttwe/bSS7Bgs7N0kToKaxHqFnQN84+sl
 pfGnOkrhfbugCeaYQDMWM9esBD75gvRsk2W/LZc7sYjNeeyNrL9PCITJSx28MtGCPuew
 PNebRL6+Woi14dBvfpnxtxwY1yROMSf/FHimRHDdIxEkhPp/2URMdTBE4/SzAKF8u0E+
 Pp7Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1760914502; x=1761519302;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=N7rULPCSosHROax1Y/6xm3ctxWjppP+8qg2MGdFqDb0=;
 b=pGntOpfxAcSpc4HaSSCBQfEubMsIm0/sE/5wuCUZ9Gjse0e13UPtt3l2n77S1kRmzI
 QIAU1qDYVesbzwZc4m4kcHsA7ySL7kaqqPZ9pLisVS8Ze5enmViTtegNAaVPQy6upJNG
 Cnf9043ms2dw0CSyLZiOkakwHvnNsVGOQpI68zgDAE4ic8sCqTdTTdfjmveKPJPJ77Sv
 mucbemWFaP8rIy/rk0BwHaZ6XQEVYhtkDhoy4G2JAxkfQMFjSWP8XtoV4xJM1I1SDZH1
 n2JjWE/ZVGpuBo850mq1Q+8M8ETIpRfEeLhD3T7kXZ5CuZxtiPhr20LANr5XSYLDMjL6
 OumA==
X-Forwarded-Encrypted: i=1;
 AJvYcCW1Kpc9idAc0sYqyBYvJkj6K1zCkpH2dwiPKqW0vahiQ+N1VHpoL2gOTvdGBEg/0rD7ipLIyw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YySvA9e6cm/HJrQNSMd5BqiNnKROeeIusfHqPkRDhIYkFA5oOh5
 0KmWNMjsSIJHM6mobjmkSVtzF2UXxnQScKiN27VHThIdEbfCBzPFFc6Urhkj/A==
X-Gm-Gg: ASbGncsPKLb9z9NFJ4y4evU54Fc96reTwybcMto6d7MJZrIh/Vst1U5lQpswZZYmehA
 61uvlKGadMjLU6YQDZLBtyiQUURaj2wftGx0bC7TbPwmzmgcq9fwitwkRy2N8Cba9QqjDA6MSOm
 tR5y58tcuK7SwT/TEiMr/HrSpXBU4IEWbSfsS/62CMOujCR0fMgkGhNxd2mD3uNIrx47q6gyJiI
 KL6SEFskBPQ8C4eaFFDG+d7S9rdTZGKhQ2zkffIp7XQnYskMSmrWt4n3McKRThcbnHezkfNpLf1
 qCqXGeww9RBWOa0WGLx3jRgk0VINAczjO9UEyoza5JjQ+Sy3KaelkgHuCc/gQjiSOzVo0XHRye3
 DUmobukZXFOL2bdQAObn5+XzBHy55RAA/VN/HfP+RB2g0Auz2to9EX9gJTqwOHSnvoHmUc4W5Uu
 TZUbm5MLSBL8aK9gjDd6sNhE0aryMR
X-Google-Smtp-Source: AGHT+IGBrUHUnJm9mgt5oDNoWHrGvYRkJEZQzGFP8dmJsXmObqqEawjhQARpGT3hq8KRD+lhP8SdQQ==
X-Received: by 2002:a05:6000:400d:b0:3ee:1461:1659 with SMTP id
 ffacd0b85a97d-42704d98980mr7018825f8f.31.1760914501586; 
 Sun, 19 Oct 2025 15:55:01 -0700 (PDT)
Received: from krug (87-196-72-166.net.novis.pt. [87.196.72.166])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-427ea5a102fsm12449988f8f.1.2025.10.19.15.54.58
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 19 Oct 2025 15:55:00 -0700 (PDT)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: parlando@HIDDEN
Subject: Re: bug#79655: 31.0.50; eglot: request body of
 eglot-signal-didChangeConfiguration
In-Reply-To: <ca2117ba-94d4-415d-a78a-3aaeae878843@HIDDEN>
References: <68c7ae84-ab6e-4d3c-b71d-cc1ffd5e8b4a@HIDDEN>
 <86ldl7yuy4.fsf@HIDDEN> <87ecqypve1.fsf@HIDDEN>
 <ca2117ba-94d4-415d-a78a-3aaeae878843@HIDDEN>
Date: Sun, 19 Oct 2025 23:56:22 +0100
Message-ID: <87plai5wmh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79655
Cc: Eli Zaretskii <eliz@HIDDEN>, 79655 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

parlando@HIDDEN writes:

> On 10/19/2025 9:02 PM, Jo=C3=A3o T=C3=A1vora wrote:
>
>> Has the user tried this variation to their dir-locals file?
>>   (
>>     (js-mode . ((eglot-workspace-configuration .
>>                   (:javascript (:format (:indentSize 2))))))
>>   )
>
> Works in this case, but (I may be wrong) it should not because the
> section/server part (:typescript-language-server) is missing.

It is up to the server how to interpret that part.  Apparently
typescript-language-serve doesn't like to see its name in the LSP
settings sections.

> Same here, :gopls is the section/server part of
> `eglot-workspace-configuration' and should not be sent within the
> request.

gopls !=3D typescript-language-server.  How do you know that that the
:gopls should _not_ be sent?





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79655; Package emacs. Full text available.

Message received at 79655 <at> debbugs.gnu.org:


Received: (at 79655) by debbugs.gnu.org; 19 Oct 2025 22:39:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 19 18:39:54 2025
Received: from localhost ([127.0.0.1]:40912 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vAc49-0007J8-MH
	for submit <at> debbugs.gnu.org; Sun, 19 Oct 2025 18:39:53 -0400
Received: from smtp02.prod.qlmail.ch ([89.236.174.42]:52222)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <parlando@HIDDEN>)
 id 1vAc46-0007Il-AM
 for 79655 <at> debbugs.gnu.org; Sun, 19 Oct 2025 18:39:51 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intergga.ch;
 s=quickline2020; t=1760913584;
 bh=iYzeOSe0Pdj7jeRqhnV0wS1gR78x9NJju5KDK45jhgE=;
 h=Date:Subject:To:Cc:References:From:In-Reply-To;
 b=EYkqQoLv6QqcmeuUhSA5dlI4UHGUGd5PsAaEqKDoZTIXwf5riSOBOcvKnByXZx+SY
 +GJvrqTYRo77Vo0kesHuSWFmw3sDjtjxKcGDzQYuiaFmNZL8W2yuYZ/LGG0mwH2+sV
 FdL5sYYIYbxOXEQOk1toYMKFoICofXBD8J0ipP/ogbPVABX9xVQzl1VdeA3NWPEypu
 ii0aqN2t4TAgNo2vpXpW8FWtnbPYMB65sj9q5DvAfHJ5Mv6ePhtzkUJ2h+jmRbzh8V
 VYBPYFngI6gscFYbdJs4K/IaoLBjDt1xHNbmpPQUjUJ6tRCs6shtyE10aZ5mN/SR3T
 wk7oU29rKPSZw==
Received: from [192.168.1.33] (248-161-16-94.dyn.cable.qlnet.ch
 [94.16.161.248]) (Authenticated sender: parlando@HIDDEN)
 by smtp02.prod.qlmail.ch (Postfix) with ESMTPSA id B278CA04D9;
 Mon, 20 Oct 2025 00:39:43 +0200 (CEST)
Message-ID: <ca2117ba-94d4-415d-a78a-3aaeae878843@HIDDEN>
Date: Mon, 20 Oct 2025 00:39:27 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79655: 31.0.50; eglot: request body of
 eglot-signal-didChangeConfiguration
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>
References: <68c7ae84-ab6e-4d3c-b71d-cc1ffd5e8b4a@HIDDEN>
 <86ldl7yuy4.fsf@HIDDEN> <87ecqypve1.fsf@HIDDEN>
Content-Language: de-CH
From: parlando@HIDDEN
In-Reply-To: <87ecqypve1.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 1.0.7 at smtp02
X-Virus-Status: Clean
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79655
Cc: 79655 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

On 10/19/2025 9:02 PM, João Távora wrote:

> Has the user tried this variation to their dir-locals file?
> 
>   (
>     (js-mode . ((eglot-workspace-configuration .
>                   (:javascript (:format (:indentSize 2))))))
>   )

Works in this case, but (I may be wrong) it should not because the 
section/server part (:typescript-language-server) is missing.

According to another example from eglot's documentation, the used 
.dir-locals.el seems fine:

(
   (go-mode . ((eglot-workspace-configuration . (:gopls 
(:usePlaceholders t)))))
   )

Same here, :gopls is the section/server part of 
`eglot-workspace-configuration' and should not be sent within the request.

Regards




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79655; Package emacs. Full text available.

Message received at 79655 <at> debbugs.gnu.org:


Received: (at 79655) by debbugs.gnu.org; 19 Oct 2025 19:01:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 19 15:01:34 2025
Received: from localhost ([127.0.0.1]:38037 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vAYer-0004c3-U2
	for submit <at> debbugs.gnu.org; Sun, 19 Oct 2025 15:01:34 -0400
Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:54361)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vAYep-0004ba-6O
 for 79655 <at> debbugs.gnu.org; Sun, 19 Oct 2025 15:01:31 -0400
Received: by mail-wr1-x42d.google.com with SMTP id
 ffacd0b85a97d-4282fba734bso608978f8f.0
 for <79655 <at> debbugs.gnu.org>; Sun, 19 Oct 2025 12:01:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1760900484; x=1761505284; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=4t7Ul2FYjaXNCitO9r9B5SMJKpUun5y0qPRIA2CQZTQ=;
 b=HFF17IjRkN+n/abm5K+iOUK81NQhuG7tUyOgO2cHMAsNTDYzT+tXyYlf78wOU6ea5T
 eOviQdZcwOjdEbOJAeF/OJx9c4QJv3JbPoAMvoHiH2hws26XRbjn0aOkfaA4mTVMSEvC
 Wr5F6nduNztKExpopDKQpGhozpHi0pABohM5BYE9VEHg9JEm3tdDzc/Wk2vICVER5iNN
 xjavUQJqrkA55pUwrT3fI7NinhMc96Wz9EUWPXs4qws9/RfjyM8x8/742f+hF/mUgBWV
 gsjs1mAlJ1P77gxDWgUsHC5Dyyhl4m/CZwrpcnjB3PZ5ZCxmg9ZIB10Zb9xQ/lGMq2O3
 2l/Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1760900485; x=1761505285;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=4t7Ul2FYjaXNCitO9r9B5SMJKpUun5y0qPRIA2CQZTQ=;
 b=GGbtkkXU09zvYn/wLRmQ//auUubSDl0uaUxaozF6YQFOQ5Vr8U84yJ8zg0mpuQ9LBK
 iJqtIxWH6OiTSvSnwiEIlW7+C7WatzXMLAqYIh59iYRL9+A0GwU5X+Yf/WIBdSSszwOR
 h5erCctR5SIKXYs+T3OckAd8s06zkUJ8eSlfU27/YCTGmDer7zHiYrNdWgkaGs7Uv7tT
 G6AbsLQ3/KDwyTWeIFt1VLH8vy3ZT3+7mSwZeGadqCxXRiqW8Hh8sIFy43HPtexZopHq
 KnB/V9X771s2oQ5WBhnxn/Y1Fnaqo3vkYs+5tEQNbbEYBUMuhMoChqUYGZlABs8AFBgc
 oTeg==
X-Forwarded-Encrypted: i=1;
 AJvYcCXM5F/ikSno+KWgSOYfe6gLXQEi1LYOt3QqGN5IIZKfKLSUJvsIF5zc2gsHQMwuEKdUqrKjkQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxIFnBbW7F82nM7acbjVUQYd1asdMfVFgJnWvNQt+k5ybtU4AIk
 QQwaNYDDI39hyVEcAjgqsTG3MCBQ4lKq9V04swEd1evbjp9cT3Yn2xixG6I39Q==
X-Gm-Gg: ASbGncvE6o7wCSt/OJbYR5r98h9fyXS3dzdzvpmXyHNwaVrCYJWi/igHor6YV0z9aff
 Nn5sNPW/+BJCMgGFqYipKKFxdy6dOSpWU59wWhqq3VhCUXcpD8EMo4CEZ66si/DFDISTpjbaszs
 GmRYuj8TPx3dV3UNs3UlWgGgCK/MmMZiB2hDHHxp84kEZttTpGZ0zOU6O+vya0ckw5IFZoL+RZS
 OUg7iBPOk8Stkp3+bX/NwBnpbTd4eW8O1oSjFWjaw3yGXGz/Snscl1XEUdnghv/Y3ocKsYrvPGU
 f2AcTGGH0/eShCi5HjnR+uOLtzSqypDxEomgGzip7hzN3GSnkSN2Id5gLI9kyf8ExpkFdhWAFqi
 DDv12DnKVLy82Yxo3C00HB3qtHWNazIkrIoXA454Ppp6FFC5uvhwabY8K0k+T4kiTV+uZu7RJ8f
 k/Z2VZsXuUN4HUjgHrlrqiIRrDryQK
X-Google-Smtp-Source: AGHT+IE4McE+WUsg2N/l5d1xmERr/mBsgpVTr/NN0zBTnQEjlIJMHDQg94ir7X637M8KRSHt9hgOiA==
X-Received: by 2002:a05:6000:2dc3:b0:426:d54d:224d with SMTP id
 ffacd0b85a97d-42704d7ebbamr7963551f8f.27.1760900484430; 
 Sun, 19 Oct 2025 12:01:24 -0700 (PDT)
Received: from krug (87-196-72-166.net.novis.pt. [87.196.72.166])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-427f009a96asm11538407f8f.31.2025.10.19.12.01.22
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 19 Oct 2025 12:01:23 -0700 (PDT)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79655: 31.0.50; eglot: request body of
 eglot-signal-didChangeConfiguration
In-Reply-To: <86ldl7yuy4.fsf@HIDDEN>
References: <68c7ae84-ab6e-4d3c-b71d-cc1ffd5e8b4a@HIDDEN>
 <86ldl7yuy4.fsf@HIDDEN>
Date: Sun, 19 Oct 2025 20:02:46 +0100
Message-ID: <87ecqypve1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79655
Cc: 79655 <at> debbugs.gnu.org, parlando@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> Date: Sun, 19 Oct 2025 13:39:11 +0200
>> From: parlando--- via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>>=20
>> The request body of `eglot-signal-didChangeConfiguration' has an=20
>> incorrect structure. This possibly applies to all supported progmodes.
>>=20
>> Prerequisites for js-mode e.g.:
>>=20
>> - typescript-language-server installed
>> - .dir-locals.el containing:
>> (
>>   (js-mode . ((eglot-workspace-configuration .=20
>> (:typescript-language-server (:javascript (:format (:indentSize 2)))))))
>>   )
>>=20
>> Steps:
>> 1. emacs -Q
>> 2. C-x C-f <path to a js file under .dir-locals.el>
>> 3. M-x eglot
>> 4. In the eglot events buffer, look for workspace/didChangeConfiguration
>>=20
>> What it should send:
>>=20
>>  > [jsonrpc] e[11:00:00.000] --> workspace/didChangeConfiguration=20
>> {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"=
settings":{"javascript":{"format":{"indentSize":2}}}}}
>>=20
>> What it actually sends:
>>=20
>>  > [jsonrpc] e[11:00:00.000] --> workspace/didChangeConfiguration=20
>> {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"=
settings":{"typescript-language-server":{"javascript":{"format":{"indentSiz=
e":2}}}}}}
>>=20
>> In my .emacs I use this workaround:
>>=20
>> (defun advice-eglot--workspace-configuration-plist (&rest args)
>>    "Remove eglot server property in settings object."
>>    (cadr (car args)))
>>=20
>> (advice-add #'eglot--workspace-configuration-plist :filter-return=20
>> #'advice-eglot--workspace-configuration-plist)
>>=20
>> Many thanks!
>
> Adding Jo=C3=A3o to the discussion.

Has the user tried this variation to their dir-locals file?

 (
   (js-mode . ((eglot-workspace-configuration .=20
                 (:javascript (:format (:indentSize 2))))))
 )

Jo=C3=A3o




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79655; Package emacs. Full text available.

Message received at 79655 <at> debbugs.gnu.org:


Received: (at 79655) by debbugs.gnu.org; 19 Oct 2025 11:47:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 19 07:47:49 2025
Received: from localhost ([127.0.0.1]:60284 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vARt7-0007so-8J
	for submit <at> debbugs.gnu.org; Sun, 19 Oct 2025 07:47:49 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49376)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vARsz-0007qi-6o
 for 79655 <at> debbugs.gnu.org; Sun, 19 Oct 2025 07:47:43 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vARss-0000o6-CS; Sun, 19 Oct 2025 07:47:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=uDQAe780kNpiEDHX1bVMWdnQiZ/CnKiHdnWRFKvSuSY=; b=rrTdhAv/+HE8SDFoN/I7
 EBmj/LPcvk++RL7qa4PHAvwz1cQmuKbNcg+szQauEOZXwX7jKLmI+seSeONXfP+IlUngFSMjAOM7o
 fZiLMlOT8IC56+uHJi3xD1pHrD8kvDut7I7h/Tf2mzpvxhYpwVkWQkbF9P9c5zUa0sacU/xE6pC3P
 USCm0i6oELQXWdJGBXJgMJIXHkMA4P6i5567fHAmFUyXZrjpch5pwAPNtfc5aJ2lYP5vR9aSLvaAK
 kUNKE+6i6v5e1bmGMlgYOknw0fCelYdmeVx7brt4KS7YMlyGyGyLFLfNOlBCB7TqLcQXLjHiyyND5
 qJsI4yYMmZ72oQ==;
Date: Sun, 19 Oct 2025 14:47:31 +0300
Message-Id: <86ldl7yuy4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: parlando@HIDDEN, =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=
 <joaotavora@HIDDEN>
In-Reply-To: <68c7ae84-ab6e-4d3c-b71d-cc1ffd5e8b4a@HIDDEN>
 (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#79655: 31.0.50;
 eglot: request body of eglot-signal-didChangeConfiguration
References: <68c7ae84-ab6e-4d3c-b71d-cc1ffd5e8b4a@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79655
Cc: 79655 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Sun, 19 Oct 2025 13:39:11 +0200
> From: parlando--- via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> The request body of `eglot-signal-didChangeConfiguration' has an 
> incorrect structure. This possibly applies to all supported progmodes.
> 
> Prerequisites for js-mode e.g.:
> 
> - typescript-language-server installed
> - .dir-locals.el containing:
> (
>   (js-mode . ((eglot-workspace-configuration . 
> (:typescript-language-server (:javascript (:format (:indentSize 2)))))))
>   )
> 
> Steps:
> 1. emacs -Q
> 2. C-x C-f <path to a js file under .dir-locals.el>
> 3. M-x eglot
> 4. In the eglot events buffer, look for workspace/didChangeConfiguration
> 
> What it should send:
> 
>  > [jsonrpc] e[11:00:00.000] --> workspace/didChangeConfiguration 
> {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"javascript":{"format":{"indentSize":2}}}}}
> 
> What it actually sends:
> 
>  > [jsonrpc] e[11:00:00.000] --> workspace/didChangeConfiguration 
> {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"typescript-language-server":{"javascript":{"format":{"indentSize":2}}}}}}
> 
> In my .emacs I use this workaround:
> 
> (defun advice-eglot--workspace-configuration-plist (&rest args)
>    "Remove eglot server property in settings object."
>    (cadr (car args)))
> 
> (advice-add #'eglot--workspace-configuration-plist :filter-return 
> #'advice-eglot--workspace-configuration-plist)
> 
> Many thanks!

Adding João to the discussion.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79655; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Oct 2025 11:39:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 19 07:39:33 2025
Received: from localhost ([127.0.0.1]:60168 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vARl6-00074C-Qa
	for submit <at> debbugs.gnu.org; Sun, 19 Oct 2025 07:39:33 -0400
Received: from lists.gnu.org ([2001:470:142::17]:50362)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <parlando@HIDDEN>)
 id 1vARl4-00073S-ID
 for submit <at> debbugs.gnu.org; Sun, 19 Oct 2025 07:39:31 -0400
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 <parlando@HIDDEN>)
 id 1vARku-0004uJ-IC
 for bug-gnu-emacs@HIDDEN; Sun, 19 Oct 2025 07:39:21 -0400
Received: from smtp05.prod.qlmail.ch ([89.236.174.45])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <parlando@HIDDEN>)
 id 1vARkr-00089y-JF
 for bug-gnu-emacs@HIDDEN; Sun, 19 Oct 2025 07:39:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intergga.ch;
 s=quickline2020; t=1760873951;
 bh=OzF7Ut1ziD1+txjpQeYYpXnJc1s+5zdC3zMV/id/xdI=;
 h=Date:From:Subject:To;
 b=aYnviNmzuMllVy7iv07r0OLia8taQYyQf45w/0olt+TsZpyS8vzDzH2Pd1nQZM02V
 vkOoj2d25nUwlcL5AfvSEcz9MFB0H7LX4kP0UjZcPkDCAM8tWiuO1o8RV6nDwuFXTC
 ct1qGU8Jq9u3rhB4sAat3rRS9hnPNh9hF5RDKZyHDnRY+hO7Tq7VB7L6sBBfwNkfmd
 THXkZUeWxC5d/WS6+KihB3tRB8zSKEl39KEDWtheSyjJXLiSyOAJJaELji1DQTheHp
 LQPCV7kAicydKcQE8QudJcARf8kK5m6OcRb1xtrYb8c8MDQRpFhbaSm3LL8kwb6E6h
 O3Vc62o1EdEKg==
Received: from [192.168.1.33] (248-161-16-94.dyn.cable.qlnet.ch
 [94.16.161.248]) (Authenticated sender: parlando@HIDDEN)
 by smtp05.prod.qlmail.ch (Postfix) with ESMTPSA id 89981A035A
 for <bug-gnu-emacs@HIDDEN>; Sun, 19 Oct 2025 13:39:11 +0200 (CEST)
Message-ID: <68c7ae84-ab6e-4d3c-b71d-cc1ffd5e8b4a@HIDDEN>
Date: Sun, 19 Oct 2025 13:39:11 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: de-CH
From: parlando@HIDDEN
Subject: 31.0.50; eglot: request body of eglot-signal-didChangeConfiguration
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 1.0.7 at smtp05
X-Virus-Status: Clean
Received-SPF: pass client-ip=89.236.174.45; envelope-from=parlando@HIDDEN;
 helo=smtp05.prod.qlmail.ch
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,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

Hi,

The request body of `eglot-signal-didChangeConfiguration' has an 
incorrect structure. This possibly applies to all supported progmodes.

Prerequisites for js-mode e.g.:

- typescript-language-server installed
- .dir-locals.el containing:
(
  (js-mode . ((eglot-workspace-configuration . 
(:typescript-language-server (:javascript (:format (:indentSize 2)))))))
  )

Steps:
1. emacs -Q
2. C-x C-f <path to a js file under .dir-locals.el>
3. M-x eglot
4. In the eglot events buffer, look for workspace/didChangeConfiguration

What it should send:

 > [jsonrpc] e[11:00:00.000] --> workspace/didChangeConfiguration 
{"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"javascript":{"format":{"indentSize":2}}}}}

What it actually sends:

 > [jsonrpc] e[11:00:00.000] --> workspace/didChangeConfiguration 
{"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"typescript-language-server":{"javascript":{"format":{"indentSize":2}}}}}}

In my .emacs I use this workaround:

(defun advice-eglot--workspace-configuration-plist (&rest args)
   "Remove eglot server property in settings object."
   (cadr (car args)))

(advice-add #'eglot--workspace-configuration-plist :filter-return 
#'advice-eglot--workspace-configuration-plist)

Many thanks!

--
In GNU Emacs 31.0.50 (build 1, x86_64-w64-mingw32) of 2025-10-19 built
  on <...>
Repository revision: 6cb8a67e4bcfea913fd0ee461e3a4c064250c39a
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.26100
System Description: Microsoft Windows 10 Pro (v10.0.2009.26100.6899)

Configured using:
  'configure --with-tree-sitter --without-sound --with-small-ja-dic
  --with-native-compilation=aot --disable-gc-mark-trace
  --prefix=<...>

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

Important settings:
   value of $LC_CTYPE: en_US.UTF-8
   value of $LANG: ENU
   locale-coding-system: cp1252

Major mode: Apropos

Minor modes in effect:
   tooltip-mode: t
   global-eldoc-mode: t
   eldoc-mode: t
   show-paren-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   minibuffer-nonselected-mode: t
   minibuffer-regexp-mode: t
   buffer-read-only: t
   line-number-mode: t
   indent-tabs-mode: t
   transient-mark-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug lisp-mnt message mailcap yank-media puny
dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode
mailabbrev gmm-utils mailheader sendmail mail-parse rfc2231 rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch
compile text-property-search comint subr-x ansi-osc ansi-color ring
comp-run bytecomp byte-compile comp-common rx mule-util help-mode
cl-loaddefs cl-lib apropos rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
touch-screen dos-w32 ls-lisp term/w32-nt disp-table term/w32-win w32-win
w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads w32notify w32 lcms2 multi-tty move-toolbar make-network-process
tty-child-frames native-compile emacs)

Memory information:
((conses 16 75354 20149) (symbols 48 7122 0) (strings 32 20075 1408)
  (string-bytes 1 704702) (vectors 16 11445)
  (vector-slots 8 165105 10698) (floats 8 28 98) (intervals 56 719 0)
  (buffers 1064 13))




Acknowledgement sent to parlando@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79655; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 20 Oct 2025 12:15:02 UTC

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