From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70408: 30.0.50; Eglot and Project integration Date: Tue, 16 Apr 2024 14:42:25 +0300 Message-ID: <86le5djzz2.fsf@gnu.org> References: <87o7aas3sk.fsf.ref@aol.com> <87o7aas3sk.fsf@aol.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21013"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70408@debbugs.gnu.org To: Ergus , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 16 13:43:11 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 1rwhDS-0005J3-Fy for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Apr 2024 13:43:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwhDD-0004PU-8Z; Tue, 16 Apr 2024 07:42:55 -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 1rwhDA-0004Oy-Bt for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 07:42: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 1rwhD9-00018G-73 for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 07:42:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rwhDL-0001fO-85 for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 07:43:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Apr 2024 11:43:03 +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.17132677776342 (code B ref 70408); Tue, 16 Apr 2024 11:43:03 +0000 Original-Received: (at 70408) by debbugs.gnu.org; 16 Apr 2024 11:42:57 +0000 Original-Received: from localhost ([127.0.0.1]:43398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwhDE-0001eE-EM for submit@debbugs.gnu.org; Tue, 16 Apr 2024 07:42:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwhDA-0001cq-M3 for 70408@debbugs.gnu.org; Tue, 16 Apr 2024 07:42:54 -0400 Original-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 ) id 1rwhCp-00012j-E0; Tue, 16 Apr 2024 07:42:34 -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=EARFpVae10rhXSEuAH4mzg+lO2Vcp9EzJwlH6ItNpZ0=; b=YDpXTFgYnW5n0LuTg5uJ A9KijmLGHeJ1SmuYlbzYZ3HXoZo9h65iqdizjUsHxLlOihaQ4/pbzrJhgJoXzVUn50OYFdM4x+GE9 s6bmBp4eihYabwxSKo3Ab+x7uiPHGy7oAjIyfPbriip6X07ybA+nu7cqR+Ca3rHmNt0XC3SIr2l1i XFq8Y+WIG56LvjYe1CDPe9L2bbTuAeDRnFbezI2Vy1J/ArUOTbH6JWfcmNrlXvVvgXuLsFuvrm8Ei 8YOIz7aSMC9dyTJx+jFuYsQc02ziYbgGtFWRBnc/HKNwk7TnSCsagGKYVykuOwO1swukl9WXITDQF QjiAXyIy4VrRWQ==; In-Reply-To: <87o7aas3sk.fsf@aol.com> (bug-gnu-emacs@gnu.org) 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:283415 Archived-At: > Date: Mon, 15 Apr 2024 23:40:27 +0200 > From: Ergus via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Recently we have been discussing the possibility to improve project.el > in order to recognize/interact a bit more smartly with common modern > build infrastructures (i.e meson and cmake). > > These build systems generally are also capable to generate the > compile_commands.json for clangd in the build directory independently of > its location (generally out of sources). > > The current extension for project.el is capable to recognize the build > directory to execute project-compile. The approach works well in the > tests and I added a small POC code to modify the > `glot-workspace-configuration' variable on the fly. > > This integration of project.el is pretty useful and simplifies the > configurations required to make eglot work a bit more consistently by > detecting the database more accurately. > > The only limitation I am facing at the moment with this is that > project.el initializes lazily (when a project-something command is > called) and generally eglot seems to be designed to autostart as a mode > hook. > > So the issue has two parts: > > 1. Is it desirable or are the eglot developers somehow interested in the > integration with project.el? If so, what are the key features of > interest. > > 2. Do you have some suggestion about how to initialize the eglot server > to properly update the `glot-workspace-configuration' on the fly? > > My very primitive proof of concept code: > > https://github.com/Ergus/project-multi-mode/blob/822316d82007e1b68c9a8dfcfbe205cb63b4f545/project-multi-mode.el#L194 Thanks. I think this discussion should include Joćo, so I added him.