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#70408: 30.0.50; Eglot and Project integration Date: Tue, 16 Apr 2024 21:30:20 +0100 Message-ID: References: <87o7aas3sk.fsf.ref@aol.com> <87o7aas3sk.fsf@aol.com> <86le5djzz2.fsf@gnu.org> <8cfba95b-fedd-4b5f-9778-d656601006d1@gutov.dev> <3i7r7yspjdbjtlyrc6ry3vi4rbsxvm52axyehk3dn4ykjltndh@aqizn4e6dflm> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000860bb06163c9cbc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12523"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , Eli Zaretskii , 70408@debbugs.gnu.org To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 16 22:31:19 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 1rwpSY-00034P-3F for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Apr 2024 22:31:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwpSA-0001EC-Pb; Tue, 16 Apr 2024 16:30:54 -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 1rwpS8-0001Av-2j for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 16:30:52 -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 1rwpS7-0004go-Ow for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 16:30:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rwpSK-0003rC-4w for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 16:31:04 -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: Tue, 16 Apr 2024 20:31:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70408 X-GNU-PR-Package: emacs Original-Received: via spool by 70408-submit@debbugs.gnu.org id=B70408.171329945414766 (code B ref 70408); Tue, 16 Apr 2024 20:31:04 +0000 Original-Received: (at 70408) by debbugs.gnu.org; 16 Apr 2024 20:30:54 +0000 Original-Received: from localhost ([127.0.0.1]:45151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwpSA-0003q6-GD for submit@debbugs.gnu.org; Tue, 16 Apr 2024 16:30:54 -0400 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:57850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwpS6-0003pi-Nm for 70408@debbugs.gnu.org; Tue, 16 Apr 2024 16:30:53 -0400 Original-Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-516d3a470d5so5642277e87.3 for <70408@debbugs.gnu.org>; Tue, 16 Apr 2024 13:30:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713299432; x=1713904232; 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=LiMxM8Xc88RlVa4++2oNlffjlcfn2XZI3g4Kl4F+cGY=; b=I22TsirvkmXUdg4p9OnuwOpFt9UU0/UpW1AO+Ude1kFgv6UP9jIEppG5YGeyFzEOPT nnTHHFvfKozcWXlI1QQ9NN8T1A3XUGcGSSPDNBdJtRamVJ+T6/Wx3wyq+JdDsE8njrai t77328ZtjGk+5/iIHBFQIPA0tTdkx1XRg1rSgZUJvcCXbmV8uO6v0b3lExObDrXXpBGC ZnoKgRqZhYw4/cJMyYW2PqAYVunMfaY4nmRLzUSqNWvLlCuKVdYwjhY7D5exSpuf4YCQ PAHW3sLJNNdzUV0ZfVq0yBSO0RMK7LLkQ4NZR2kpKJ5WLQde2DJQpU25nJVd0MnEMjjJ AK8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713299432; x=1713904232; 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=LiMxM8Xc88RlVa4++2oNlffjlcfn2XZI3g4Kl4F+cGY=; b=Sa+GJX8lyTv/eRHmnheo1OSPUGdl1XC8cNuQkxPF+srqZzgW/ah4LVm05WFq+MMcSP AdzTNKh0t859rd95eNwCJ2H4xhCFcg2Dle9W7P1HpDpIiX1pUTW67TkZQwfvPUdY/Axq ZUAsPQJnpDMWAZHJarBZrgNd2rt/RUR5i1g0MSBpe68aspBVOCflJqubCLPWnoaa7STc YMyXUcPbSPBaJ2OsfZNAMrU/yUkmzlBZANmxtGZ8hmg+k5p42cKUY0uwACkS+bPdY8la PVY+843yuLw9JVOBE7twMXN0UH0oHeA3yld/RL73wG680e8pyZssPy9UZdiqHpFxk9Kz TcOA== X-Forwarded-Encrypted: i=1; AJvYcCUP8uDDWtQT7xxU/ARn2DjltjlF1v58AUVoQfs+HFa7R3BnDeNab42ZVwyJeeiLQOiY/57bdngNmC/vLZC5IAfpYaH55KY= X-Gm-Message-State: AOJu0YwGEaOzhzxrCgtMz968Q2IzfyAdN3UT5QqqMOH9h2Dr1iN0k5us 6NuU2kHL35K17UUWcLIlo/BK2kO4orh88k3vH8XcDh4Kn4kWjx6KOAW11b0Kg4qzaStsa2LiGFZ E39CJkp79tJndMou8FdCYSJ/0NrI= X-Google-Smtp-Source: AGHT+IEVNulspXA36tytcZ/xTOuip9ecuq14gHSx5i8ABOGrEWshc2rO3gfiZ1fC6nyK2GCVjkgZrahvGW7qGJP6298= X-Received: by 2002:a05:6512:acd:b0:518:9138:4c93 with SMTP id n13-20020a0565120acd00b0051891384c93mr9259389lfu.63.1713299431905; Tue, 16 Apr 2024 13:30:31 -0700 (PDT) In-Reply-To: <3i7r7yspjdbjtlyrc6ry3vi4rbsxvm52axyehk3dn4ykjltndh@aqizn4e6dflm> 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:283456 Archived-At: --0000000000000860bb06163c9cbc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 16, 2024 at 5:02=E2=80=AFPM Ergus wrote: > project-multi--merge-plist is just a hack function to merge the > eglot-workspace-configuration value without overriding the existing > sub-values if already set (in case the user sets some sub-values in the > dir locals then those takes precedence) > > Then this restarts eglot > > IIUC this is equivalent to call `--compile-commands-dir=3Dbuild` and at > the moment is working for me. This seems extremely complicated, but happy it works for you. If during an eglot session something happens that leads to want to update the "workspace configuration" for a given session, you can set it and then call `eglot-signal-didChangeConfiguration` which is part of Eglot's API. No need to restart. Also note that eglot-workspace-configuration can be a function, maybe that's useful to you somehow. > At the moment I assume the outer most only; which is the simpler one to > setup and implement woth the current project.el support. The main goal I > have is OOSC, not nested projects. OK. I don't know what OOSC is but if it's somehow related to "out of tree builds" I think these are fine, but builds aren't normally not part of a project: my .gitignore files ignores them. Jo=C3=A3o --0000000000000860bb06163c9cbc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Apr 16, 2024 at 5:02=E2=80=AFPM Ergus <spacibba@aol.com> wrote:

> pr= oject-multi--merge-plist is just a hack function to merge the
> eglot= -workspace-configuration value without overriding the existing
> sub-= values if already set (in case the user sets some sub-values in the
>= dir locals then those takes precedence)
>
> Then this restarts= eglot
>
> IIUC this is equivalent to call `--compile-commands-= dir=3Dbuild` and at
> the moment is working for me.

This seems= extremely complicated, but happy it works=C2=A0for you.

If during an eglot session something happens that leads to want to update= =C2=A0
the "workspace configuration" for a given sessio= n, you can set it and=C2=A0
then call `eglot-signal-didChangeConf= iguration` which is part of Eglot's=C2=A0
API. No need to res= tart.=C2=A0 Also note that eglot-workspace-configuration=C2=A0
ca= n be a function, maybe that's useful to you somehow.

> At th= e moment I assume the outer most only; which is the simpler one to
> = setup and implement woth the current project.el support. The main goal I> have is OOSC, not nested projects.

OK.=C2=A0 I don't know = what OOSC is but if it's somehow related to "out of tree builds&qu= ot;
I think these are fine, but builds aren't normally not part of = a project: my
.gitignore files ignores them.

=
Jo=C3=A3o
--0000000000000860bb06163c9cbc--