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: Sun, 25 Aug 2024 07:54:43 +0300 Message-ID: <86a5h1mcbw.fsf@gnu.org> References: <868qwy8ii9.fsf@gnu.org> <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="17050"; 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 Sun Aug 25 06:55:33 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 1si5Ho-0004FC-8E for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Aug 2024 06:55:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1si5HZ-0007lx-PZ; Sun, 25 Aug 2024 00:55:18 -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 1si5HV-0007lZ-JF for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 00:55:13 -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 1si5HU-00076Q-Of for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 00:55:13 -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=1V8RG4WaPsK0u64RAg+5RsnWcHu6JiN9aQ/EtyWzKHw=; b=QXTynPd2tk4QENrjAgxkGVdeib3T8xFsvjZh4jAflK9LQB9Q1FDhAhiGmLpWaXvkCu2+f+Mq3yp1kpmsJefXgv4/zPByUnUhE1EzgcfWCO5Fdn3/P5ROwNvr61ImaxODBKuX02Yjf2mh4m2LUqAoC97b1FlsRdKpoea2wst7oaMsZlxFC3C0k7xGZGhuHYI6jbpbxmv8hKHwBjsi+nZujwqdZJeA3ggm7hChVp+C1QHQO8R7QdoqtCI3757HBPTidVhwZuJJHwKkk/EZiLOOunWY6347++9XPji0vMbJ29SNpldUwzgj2LDaQQfRNGXRhVpUWmA9v5ZflyZVqkFjjg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1si5IH-0007pQ-PH for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 00:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Aug 2024 04:56:01 +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.172456174830069 (code B ref 64830); Sun, 25 Aug 2024 04:56:01 +0000 Original-Received: (at 64830) by debbugs.gnu.org; 25 Aug 2024 04:55:48 +0000 Original-Received: from localhost ([127.0.0.1]:42064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1si5I3-0007ov-R3 for submit@debbugs.gnu.org; Sun, 25 Aug 2024 00:55:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1si5I1-0007oe-3J for 64830@debbugs.gnu.org; Sun, 25 Aug 2024 00:55:46 -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 1si5H4-0006uK-I1; Sun, 25 Aug 2024 00:54:49 -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=1V8RG4WaPsK0u64RAg+5RsnWcHu6JiN9aQ/EtyWzKHw=; b=gNgNJRJkz5J6 g0AVFrA2+eQuq5k14gYSz8Ik7AaWA1NZihoilp9vyGEIw4aAkBKMtMHjyCwlql0AdS/+UMmOFQqb8 WjA2InaLJWG5lX0OPEzfrUav+deXhRU9JocQeIh0JMbJ9dIdCFW5qBdAlFOGR5YawrukArl5hc39H YwrFe7Zc+LxcZwpDu6C7gOWsbYSIv0vNlTXcS2NWb0MSca7sYW/nTNlxkLWhM59YP6VoQwuk9eGYa f/sUGObgupL82RX6EcxzzY/lhUw9N39aOvNK3nzKJDcSfMt7PKZNtjamylPmk4UAKU3nOWfVmvdg7 q3iNsFWcpzZfnwTE8v9KzA==; In-Reply-To: (message from Alan Mackenzie on Sun, 25 Aug 2024 02:19:28 +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:290712 Archived-At: > Date: Sun, 25 Aug 2024 02:19:28 +0000 > Cc: Eli Zaretskii , 64830@debbugs.gnu.org > From: Alan Mackenzie > > I've now applied your patch, the one whose first hunk's header is: > > @@ -537,6 +537,16 @@ c-ts-mode--top-level-label-matcher > > , but it unfortunately doesn't solve the bug. On templates-21.cc, one of > the test files from CC Mode, on doing M-x c++-ts-mode, there is no > fontification at all. In *Messages* we have > > Error during redisplay: (jit-lock-function 1) signaled > (treesit-query-error "Node type error at" 677 "[\"_Atomic\" \"break\" > \"case\" \"const\" \"continue\" \"default\" \"do\" \"else\" \"enum\" > \"extern\" \"for\" \"goto\" \"if\" \"inline\" \"register\" \"restrict\" > \"return\" \"sizeof\" \"static\" \"struct\" \"switch\" \"typedef\" > \"union\" \"volatile\" \"while\" \"and\" \"and_eq\" \"bitand\" \"bitor\" > \"catch\" \"class\" \"co_await\" \"co_return\" \"co_yield\" \"compl\" > \"concept\" \"consteval\" \"constexpr\" \"constinit\" \"decltype\" > \"delete\" \"explicit\" \"final\" \"friend\" \"mutable\" \"namespace\" > \"new\" \"noexcept\" \"not\" \"not_eq\" \"operator\" \"or\" \"or_eq\" > \"override\" \"private\" \"protected\" \"public\" \"requires\" > \"template\" \"throw\" \"try\" \"typename\" \"using\" \"xor\" \"xor_eq\"] > @font-lock-keyword-face (auto) @font-lock-keyword-face (this) > @font-lock-keyword-face (virtual) @font-lock-keyword-face" "Debug the > query with `treesit-query-validate'") > > That "Node type error at" 677 isn't a buffer position - the buffer is > only 325 characters long. > > Is there anything else I could do to help, here? AFAIR, you still didn't respond to my questions about the version of the C++ grammar library you are using, nor tried to upgrade to the latest version of that grammar library. FTR, I'm using tree-sitter version 0.20.8 and grammar library from their Git repository as of June 17 (this is version 0.22.2 of the grammar library with a couple of changes after that version). I have no problems with displaying C++ files whatsoever, and *Messages* is clean. I also tried the latest version of the grammar library (0.22.3), and didn't see any problems there, either.