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#64830: 30.0.50 C++ treesitter mode no coloration Date: Mon, 26 Aug 2024 20:51:00 +0300 Message-ID: <868qwjjhq3.fsf@gnu.org> References: <86o75s5pu0.fsf@gnu.org> <86mslc5plq.fsf@gnu.org> <86h6bk5nnu.fsf@gnu.org> <3C502C2B-829D-42C3-A74A-2A783F5880CE@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11885"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64830@debbugs.gnu.org, casouri@gmail.com To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 26 19:54:27 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 1sidv9-0002zs-6f for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Aug 2024 19:54:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siduv-0008G5-15; Mon, 26 Aug 2024 13:54:13 -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 1sidut-0008Fn-8F for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 13:54:11 -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 1sidus-0004CZ-To for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 13:54:10 -0400 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:To:Subject; bh=/lMtW2h9RO7M5GksBBHkSdI88giamA0ZSBG6McaUjG0=; b=nLsrDOLiJfLrWAmBW1t5OOwNjZ3D4JvoBNzZr5DHzg45Rp3kU8FEV9TwZvbll1kFCTtBjXSsXpB5tT02Af+UknWFyRQXVeYeRewGpoRIIjl1MNt0Jea+xNJXuji88nH9cOc/CQe6JMi7SyIft4qLN1uuZd+rTbGIc1ZfJNqnIe4wmNByTTbkLiKSzfozbkASxpQPgr1sN4eXRSVd+9mcZqvfz4PzFzmacy0iugQUvyYn5SdGA5LDnrv5f8pA0tkIic2beAyLRgNUX+d8lF5FoXzCIzyEgAD2Zj613wzD9ry4FHuuieZhO3j3S/a+u1D5KSgEn70mQw2ndutGjeY9UQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sidvi-0004sI-1a for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 13:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Aug 2024 17:55: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.172469485318674 (code B ref 64830); Mon, 26 Aug 2024 17:55:02 +0000 Original-Received: (at 64830) by debbugs.gnu.org; 26 Aug 2024 17:54:13 +0000 Original-Received: from localhost ([127.0.0.1]:45179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siduv-0004r7-3P for submit@debbugs.gnu.org; Mon, 26 Aug 2024 13:54:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sidus-0004qr-Cx for 64830@debbugs.gnu.org; Mon, 26 Aug 2024 13:54:11 -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 1sidrr-00041W-ND; Mon, 26 Aug 2024 13:51:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/lMtW2h9RO7M5GksBBHkSdI88giamA0ZSBG6McaUjG0=; b=p/qmuPEyZ0Uf ZbK2lyUuygZKOcHfr7OdMTUbaOHUhnNZ5SKCdY9gxnUNuqy7mz+/b2/mCdvn0OzcUn6MQwTLzwsaK dKo0NPBnOfzEW+g/f5ZQLhU+SbwgcVzOKKIQXRa9rbtTvqnoUP+04jiO9Q9AzSM/EcIbXKuAZOz84 kaur7TExDTHSAPCLw4Of8vo/JgpwmXP4+qiRlz+R3ovGCkpxM2bp7Au36brGVqDAxjcfpZcBQw3ci OqhuzqFaMsVr9eQ4poIUk42w0XFH4V35JzkI+mDIshkt6OGRXTlhW8Ee2aVpADolOLLKJe2RuEZI8 +K0indQ+vteXKG6pkZtN4g==; In-Reply-To: (message from Alan Mackenzie on Mon, 26 Aug 2024 17:25:34 +0000) 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:290787 Archived-At: > 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.