From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Acid Bong" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74334: 29.4; Eglot ignores locally set configuration Date: Wed, 13 Nov 2024 09:45:37 +0000 Message-ID: References: Reply-To: "Acid Bong" Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8836"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74334@debbugs.gnu.org To: "=?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 Wed Nov 13 10:46:28 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 1tB9xC-00025I-7a for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Nov 2024 10:46:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tB9x4-0003aC-Kp; Wed, 13 Nov 2024 04:46:19 -0500 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 1tB9wx-0003Tw-8i for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2024 04:46:12 -0500 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 1tB9wp-0005TD-3i for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2024 04:46:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:MIME-Version:To:Subject; bh=eSHEoJW2bWiLR4AkCzFhoyMVJ9yKd/edoTUOxE7EJag=; b=dg8fXDFiYeiy0LDIGp9k0OsI5cpPgd7meDqjHWgqaie3vB2kmfJ6Se77Kd/8CqwDo+D2M+Q13mCWDoP/2i/oK+jytEs1VlVAthv7SoNqypvlUfsu5pQfQDTcCKsMCkGpGz9fh5y5FzOIl75dnqYLBedtc4Tm/bYZWt1JbO+T2fZSXFqZ3OTSmNljC+c9qMkNqqm6EQgGnmbqmcNBFNsvStcx8TfK9D9EC+a3smpw/exfBl4UpNPlrUJoYuAuLwQxEKrZl/GWhAwUY1jCyhWowuZpJmtNKLTYqMi/dgpqtsqjrOVjYSOd/QMh5ReUUTCujwpfm0OV4qnL31WNYRNTXg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tB9wn-0005jK-Tk for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2024 04:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Acid Bong" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Nov 2024 09:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74334 X-GNU-PR-Package: emacs Original-Received: via spool by 74334-submit@debbugs.gnu.org id=B74334.173149114221998 (code B ref 74334); Wed, 13 Nov 2024 09:46:01 +0000 Original-Received: (at 74334) by debbugs.gnu.org; 13 Nov 2024 09:45:42 +0000 Original-Received: from localhost ([127.0.0.1]:40792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tB9wT-0005ik-M0 for submit@debbugs.gnu.org; Wed, 13 Nov 2024 04:45:42 -0500 Original-Received: from tilde.club ([142.44.150.184]:44666 ident=postfix) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tB9wR-0005ib-DH for 74334@debbugs.gnu.org; Wed, 13 Nov 2024 04:45:40 -0500 Original-Received: from webmail.tilde.club (tilde.club [IPv6:2607:5300:203:b92b::115]) by tilde.club (Postfix) with ESMTPSA id 08158220DAD7B; Wed, 13 Nov 2024 09:45:38 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 tilde.club 08158220DAD7B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tilde.club; s=mail; t=1731491138; bh=JCICZVYoUU3OGJtcBueW6EJzNGZkyhM7oTdwGKfZ4FY=; h=Date:From:Subject:To:Cc:In-Reply-To:References:From; b=Xk7WZgLgcnqz+4u0pU4APyNDMZy7o0HvLKaUGf9zuRMdikS2gbkD1zI02nbxIjWCE wl9MNafy94a7WQjD9fcVjeXB/nXP5Qq+lKMboyvjqQ7WKSVci/7aNMP3kPtvyWU0dg +tFMKOTYiPZT3DJHb92FnisZ4Q2n5QZFJlQHqxMM= TLS-Required: No 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:295264 Archived-At: > On Wed, Nov 13, 2024 at 8:03 AM Acid Bong wrote: >=20 >=20>=20 >=20> Ight, Joao, you accidentally created a new report, but i'll answer = your questions under the original one. > >=20 >=20 > Bug in tracker, likely you weren't vetted yet. Reply all usually > works and fetches the bug report. Who's Ight? >=20 It's=20short for "alright", sorry for confusing you. >=20 >=20>=20 >=20> Speaking of `project-current`: I tried to follow the advices from > > https://github.com/joaotavora/eglot/discussions/687 and add "Cargo.t= oml" > > and "Cargo.lock" to `project-vc-extra-root-markers`, but `M-: (proje= ct-current)` > > still shows "~/.config/nixos". Looks like project.el can't recognize= nested > > projects (both 0.9.8 and 0.11.0), but that's a whole different issue= I don't care about. >=20 >=20You probably should care because .dir-locals needs to exist in the > project root directory. Read the manual > https://joaotavora.github.io/eglot/#Project_002dspecific-configuration > "The most common way to set eglot-workspace-configuration is using a > .dir-locals.el file in the root of your project." >=20 >=20M-x eglot doesn't much care where inside a given project you start it= . For > all it knows you could started it visiting ight.rs in your nixis dir an= d it'd > be the same. >=20 Woah,=20it actually works. Kinda weird that it requires .dir-locals.el to= be in the Git root, not in the Cargo root. Thanks a lot