From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#72088: eglot: Segregates language servers in a way that hampers polyglot language servers Date: Sun, 14 Jul 2024 10:48:32 +0100 Message-ID: References: <6e65694c-88d6-4c54-93a8-2ffb843ce6d0@thykier.net> <86bk31lsvd.fsf@gnu.org> <86cyngk2qm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d53f6c061d32041a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17227"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 72088@debbugs.gnu.org To: Niels Thykier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 14 11:50:23 2024 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 1sSvs5-0004Fc-39 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Jul 2024 11:50:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSvrp-0005kD-Fv; Sun, 14 Jul 2024 05:50:05 -0400 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 1sSvrl-0005jk-Et for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 05:50:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sSvrk-0007XL-KI for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 05:50:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sSvrl-0006ix-TI for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 05:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jul 2024 09:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72088 X-GNU-PR-Package: emacs Original-Received: via spool by 72088-submit@debbugs.gnu.org id=B72088.172095059725833 (code B ref 72088); Sun, 14 Jul 2024 09:50:01 +0000 Original-Received: (at 72088) by debbugs.gnu.org; 14 Jul 2024 09:49:57 +0000 Original-Received: from localhost ([127.0.0.1]:57177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSvrh-0006ia-26 for submit@debbugs.gnu.org; Sun, 14 Jul 2024 05:49:57 -0400 Original-Received: from mail-ot1-f54.google.com ([209.85.210.54]:50359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSvre-0006iE-6h for 72088@debbugs.gnu.org; Sun, 14 Jul 2024 05:49:55 -0400 Original-Received: by mail-ot1-f54.google.com with SMTP id 46e09a7af769-70365f905b6so1907626a34.0 for <72088@debbugs.gnu.org>; Sun, 14 Jul 2024 02:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720950527; x=1721555327; 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=ZbOeuRV9E/qWUj7pZkR99kb1xA98dhJUtO4clK2S2NQ=; b=gAMAuB9ULFpU+vDpXq6jbHMIoB7SRD/a22ruy3AkspV3uMCMz5BwgjglewPKAbbJh3 CEu8p98gTUpUCzbu1zrss7w9hJ/xMHPyCfdmq3nvbBh+RLWSKj2J+2KXI8GV++Gtxhab Bk6yizXijr4cFmDBvn89p0Rh7SrkNJK2+p/v/h+kpcunOjm8xNETBAOkQ8D8sStj0T09 v4aZMa+yElypkaDjlfsVRZrUYcQrdHHr/MXilKC9LkhMBptCB5+4sa45fgZlVhSqxDb4 9yJNMkvsQ/E9SjiWjPYhTO9ERcBmd0XNnCFRv7n3GJ4Jk9FKiOh/eEvB8BZFVq72DyuS 9r1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720950527; x=1721555327; 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=ZbOeuRV9E/qWUj7pZkR99kb1xA98dhJUtO4clK2S2NQ=; b=s5BAMQxflTX+T8iHXsDC4IQ/av/7qt8bkQjfFzn45YlqSxR39/oS1h4atPJINlErCA C5Nkss91GuVGhQejgntuwAiMBWvkdwjIrkJaLu1yrBk7CLZRSmfDW4H6niVUMQagV/Ba hfd1DqjmErLHJB2ZxvtFi/PMLdChTVNRM2friKzzcb7QV9qlp8CjGfKAZ+/lSQ8k8S+J 7I3R0C6kGho7oGIoqA3/dH+yvG6VrsGDTPGJrBlznXRvoctHZzQZWcEzGBnaPyQMJ1Kx ZdTS8B3WFhxqELDe2XBUmFHC5NY9Ic3niiTbzCtGg27Rt1RYpFLEUmmMd/5zVrdRvowO 4EIQ== X-Forwarded-Encrypted: i=1; AJvYcCXC3GGZHEAOJU8pw0LqgMZ15m2FZ8z/LNAtKZwUsXhA3RmSHYtNmh1HuAFiJKIMfjrXExH0M5Ox70k/DkUE8LaSmwvCwPQ= X-Gm-Message-State: AOJu0YwWHeJuY4Qaf8485C5E7oR9qC8bxea6Cs0CiJ/OSiMn3hKMTkiZ Fobo8mkQGl9b+YKJkkpUtqEvmshZ+Y4Jz9+sxZmNMeU1EmQ6Bzo5G1hCb5/CyHUUkXReByRttNZ oTx+Jxys7qTuV+mcJzTHwx1+99v8= X-Google-Smtp-Source: AGHT+IFtJIglBTy8j1EYugEiXc3DRXrf0zdJPeoxcdQfaLk6tE4bXSfs2orY9VzC4XUQch52bOL73XCyDkPkt0973Gw= X-Received: by 2002:a05:6870:7185:b0:25e:1e11:aa4a with SMTP id 586e51a60fabf-25eaebfa1a0mr12434542fac.45.1720950526914; Sun, 14 Jul 2024 02:48:46 -0700 (PDT) In-Reply-To: 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:288838 Archived-At: --000000000000d53f6c061d32041a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jul 14, 2024, 10:36 Niels Thykier wrote: > I read through > > https://www.gnu.org/software/emacs/manual/html_node/eglot/Setting-Up-LSP-= Servers.html > and I do not see anything here that decides how to control whether one > or two instances per project will be spawned. > In that section, did you happen to read this sentence? "In addition, major-mode can be a list of several major modes specified in one of the above forms =E2=80=93 this means a running instance of the assoc= iated server is responsible for files of multiple major modes or languages in the project. " If so, how do you comprehend or interpret it? Maybe it could be clarified. Regardless, the default value of the eglot-server-programs variable that ships with Emacs has several examples that make use of this feature, so it may be worth studying those. Jo=C3=A3o --000000000000d53f6c061d32041a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Jul 14, 2024, 10:36 Niels Thykier <niels@thykier.net= > wrote:
I read through
https://www.gnu.org/software/emacs/manual/html_node/eglot/Setting-Up= -LSP-Servers.html
and I do not see anything here that decides how to control whether one
or two instances per project will be spawned.
<= div dir=3D"auto">
In that section, did you happe= n to read this sentence?=C2=A0

"In addition, major-mode can be a list of several major modes s= pecified in one of the above forms =E2=80=93 this means a running instance = of the associated server is responsible for files of multiple major modes o= r languages in the project. "

If so, how do you comprehend or interpret it? Maybe it could be = clarified. Regardless, the default value of the eglot-server-programs varia= ble that ships with Emacs has several examples that make use of this featur= e, so it may be worth studying those.

Jo=C3=A3o --000000000000d53f6c061d32041a--