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#71518: 30.0.50; Errors during redisplay with c++-ts-mode Date: Sat, 22 Jun 2024 21:15:04 +0300 Message-ID: <86y16wg7yv.fsf@gnu.org> References: <865xue1gtu.fsf@gnu.org> <861q4ohq65.fsf@gnu.org> <86zfrcgb9s.fsf@gnu.org> <2832324.DJkKcVGEfx@fedora> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24628"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 71518-done@debbugs.gnu.org To: Vincenzo Pupillo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 22 20:16:19 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 1sL5Hd-0006Ae-Pc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jun 2024 20:16:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sL5HU-0004mp-5z; Sat, 22 Jun 2024 14:16:08 -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 1sL5HQ-0004mC-F6 for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 14:16:06 -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 1sL5HO-0001Tb-Rx for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 14:16:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sL5HO-0007CM-Gi for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 14:16:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jun 2024 18:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 71518 X-GNU-PR-Package: emacs Mail-Followup-To: 71518@debbugs.gnu.org, eliz@gnu.org, eliz@gnu.org Original-Received: via spool by 71518-done@debbugs.gnu.org id=D71518.171908011427597 (code D ref 71518); Sat, 22 Jun 2024 18:16:02 +0000 Original-Received: (at 71518-done) by debbugs.gnu.org; 22 Jun 2024 18:15:14 +0000 Original-Received: from localhost ([127.0.0.1]:55312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sL5Gc-0007B3-3V for submit@debbugs.gnu.org; Sat, 22 Jun 2024 14:15:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sL5Ga-0007Ao-L6 for 71518-done@debbugs.gnu.org; Sat, 22 Jun 2024 14:15:13 -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 1sL5GV-0001NG-6r; Sat, 22 Jun 2024 14:15:07 -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=ubfFom5lbwcHz4zXZhBzWjPNdCcrqYMUM+xl8WLn/48=; b=d6NEOZgXgiNR r6RHtI/D5CeKPs3VLcW3Wrpm6tmZvmghJs8fnv/QXzZfnrcW6It/i4JaMvsak+vXsQq3LNnoGXBHL 6sP7cV6dDoHsduHEvsfJUChtP33I7sU4BWEpWAxqKBbtqvJSPBbqWFhY0ZP0xAiATtsvcBnKCX1eT p4hO0FZZbFMrFAVoeG9CxsIQxRZUOhAIEyzunXEIv6jLlNRQ8hcaT59/79YojQ6DFnydHK+fA8JW6 X5Bve19oYsShYYZGOvV73EcPNLWn+PFr8LDskcrhQcg70FyFY9PZH3h1/jzcVEq5YkvEnsd6UJR/S L/3FJfEfSZ/ikOIs55aUkA==; In-Reply-To: <2832324.DJkKcVGEfx@fedora> (message from Vincenzo Pupillo on Sat, 22 Jun 2024 19:59:42 +0200) 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:287728 Archived-At: > From: Vincenzo Pupillo > Cc: 71518@debbugs.gnu.org, casouri@gmail.com > Date: Sat, 22 Jun 2024 19:59:42 +0200 > > In data sabato 22 giugno 2024 19:03:43 CEST, Eli Zaretskii ha scritto: > > > Cc: 71518@debbugs.gnu.org, casouri@gmail.com > > > Date: Sat, 22 Jun 2024 19:56:34 +0300 > > > From: Eli Zaretskii > > > > > > Hmm... I still see an error message in *Messages* after installing > > > > > > this (I have grammar library version 0.22.2): > > > Error during redisplay: (jit-lock-function 1) signaled > > > (treesit-query-error "Node type error at" 2 "(virtual) > > > @font-lock-keyword-face [\"auto\" \"_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\"] @font-lock-keyword-face" "Debug the query with > > > `treesit-query-validate'")> > > > Any ideas or suggestions? "virtual" is highlighted, though, so I > > > guess this is a matter of suppressing the errors or something? > > > > E.g., you can see in go-ts-mode.el how the code probes whether a > > certain query is supported, and uses it only if it is. > Sorry, I only tested with .cpp files. > The rule had to be protected by (when (eq mode 'cpp)... > > Now I have tested this with *.c and *.h as well, with old and new grammar. Thanks, installed on master, and closing the bug.