GNU bug report logs - #64608
29.0.90; Eglot: reuse server when visiting external files

Previous Next

Package: emacs;

Reported by: Filippo Argiolas <filippo.argiolas <at> gmail.com>

Date: Fri, 14 Jul 2023 07:33:02 UTC

Severity: normal

Found in version 29.0.90

Full log


Message #11 received at 64608 <at> debbugs.gnu.org (full text, mbox):

From: João Távora <joaotavora <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 64608 <at> debbugs.gnu.org, Filippo Argiolas <filippo.argiolas <at> gmail.com>
Subject: Re: bug#64608: 29.0.90;
 Eglot: reuse server when visiting external files
Date: Fri, 14 Jul 2023 15:00:34 +0100
[Message part 1 (text/plain, inline)]
On Fri, Jul 14, 2023, 11:38 Eli Zaretskii <eliz <at> gnu.org> wrote:

> >
> > Any pointer to achieve something like this with current project.el and
> > eglot code would also be great. Maybe with a custom project backend?
>
> Sorry, I don't understand: AFAIU Eglot reuses the same server for all
> the buffers under the same major-mode, so you should already have what
> you want?  Or what am I missing?
>

Not really like that Eli. Within the set of all the buffers in the major
mode, subsets are defined for every project, i.e. return value of
project-current. Broadly, that pair {major-mode , project} is the
discriminator that determines Eglot's choice of server instance to manage a
given buffer. The exception is buffers visited by eglot-extend-to-xref. I
believe this is explained in the manual. If it's not clear, we should
improve it.

Fillipo, to fully understand your use case and what's missing I need you to
create a structural example of those related projects, closely
representative of the real one, pack it as a zip or a reference to a Git
repository, in a way that I can experience the same limitation you are
experiencing myself. Is the server you are using Clangd? If so, say the
version.

In summary, please follow the seven steps outlined in
https://joaotavora.github.io/eglot/#Troubleshooting-Eglot, else it's going
to be hard to help you.

João
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 343 days ago.

Previous Next


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