From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#64830: 30.0.50 C++ treesitter mode no coloration Date: Mon, 26 Aug 2024 19:50:43 +0000 Message-ID: References: <86h6bk5nnu.fsf@gnu.org> <3C502C2B-829D-42C3-A74A-2A783F5880CE@gmail.com> <868qwjjhq3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37315"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64830@debbugs.gnu.org, casouri@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 26 21:51:43 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 1sifkc-0009ZT-JZ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Aug 2024 21:51:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sifk7-00062j-KK; Mon, 26 Aug 2024 15:51:11 -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 1sifk6-00062Y-Si for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 15:51:10 -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 1sifk6-0001w8-Jg for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 15:51:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:In-Reply-To:MIME-Version:References:Date:To:Subject; bh=LWHzdhJmDLJ/Zb02KLrO8F9Zahdj2RXpqkMM/rHJeKI=; b=s/6jZKeCRqn9Ok/EAjnMd3DSpWVupVHVD0GmrAv7yN7nVZPNK+i80U+aQIF4t5mdQUFifSDuiunqGwygOVgJyLjhopLsTqqN65Q+7P3WfqkNmIQi7Ygl9FcCD+1KbLclNS/SL7OwujRyoT634otrEOYkG8IuHZNuy9XA8gi1htiNruHXewBWgHAXuDQbBvm+SsAG4pc73H4ioUnhY/eUbbGRbSVWmVWcZjf7F4sjinFAAp+35aftsYpnAke0gHJ6ZPhAVDMFNCmaNCBEKgEnJUIAE9zWafgBuur85eFozjk0Ob9b6u390iqXSavNI5AdsBozSaJn0hykcW9LzogX8A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sifkw-0007xt-6h for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 15:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Aug 2024 19:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64830 X-GNU-PR-Package: emacs Original-Received: via spool by 64830-submit@debbugs.gnu.org id=B64830.172470190430591 (code B ref 64830); Mon, 26 Aug 2024 19:52:02 +0000 Original-Received: (at 64830) by debbugs.gnu.org; 26 Aug 2024 19:51:44 +0000 Original-Received: from localhost ([127.0.0.1]:45261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sifke-0007xK-FP for submit@debbugs.gnu.org; Mon, 26 Aug 2024 15:51:44 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:16591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sifkc-0007x5-JH for 64830@debbugs.gnu.org; Mon, 26 Aug 2024 15:51:43 -0400 Original-Received: (qmail 10624 invoked by uid 3782); 26 Aug 2024 21:50:44 +0200 Original-Received: from muc.de (p4fe156b1.dip0.t-ipconnect.de [79.225.86.177]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 26 Aug 2024 21:50:43 +0200 Original-Received: (qmail 9765 invoked by uid 1000); 26 Aug 2024 19:50:43 -0000 Content-Disposition: inline In-Reply-To: <868qwjjhq3.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:290792 Archived-At: Hello, Eli. On Mon, Aug 26, 2024 at 20:51:00 +0300, Eli Zaretskii wrote: > > Date: Mon, 26 Aug 2024 17:25:34 +0000 > > Cc: Eli Zaretskii , 64830@debbugs.gnu.org > > From: Alan Mackenzie > > Ah, that's it! I didn't know the grammar library in use was the one in > > ~/.emacs/tree-sitter. There, I've got > > -rwxr-xr-x 1 acm acm 2319888 Jan 19 2023 libtree-sitter-cpp.so > > , which is very old. In my /usr/lib64, I've got > > lrwxrwxrwx 1 root root 26 Aug 4 18:13 /usr/lib64/libtree-sitter-cpp.so.0 -> libtree-sitter-cpp.so.0.14 > > lrwxrwxrwx 1 root root 23 Aug 4 18:13 /usr/lib64/libtree-sitter-cpp.so -> libtree-sitter-cpp.so.0 > > -rwxr-xr-x 1 root root 3175712 Aug 4 18:13 /usr/lib64/libtree-sitter-cpp.so.0.14 > > Why do we have this extra complication with ~/.emacs.d/tree-sitter as a > > location for libraries? In GNU/Linux distributions (well, in Gentoo at > > any rate), newly downloaded libraries are put into /usr/lib64, so that > > anybody naively updating a grammar library is going to have it masked out > > by the old one still in ~/.emacs.d/tree-sitter. Maybe I don't understand > > the library mechanism as well as I ought to. > We support grammar libraries in ~/.emacs.d/tree-sitter so that users > could easily install versions of grammar libraries different from what > their sysadmins decide to install. Ah, OK. Seems like a good reason. How about outputting a message looking something like this: Loading /home/acm/.emacs.d/tree-sitter/libtree-sitter.so ....Done .. This wouldn't get in the way, yet might well prevent some of the problems I've been having over the last few days. -- Alan Mackenzie (Nuremberg, Germany).