From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jimmy Wong Newsgroups: gmane.emacs.bugs Subject: bug#63086: 29.0.90; go-ts-mode treesit-query-error during jit-lock Date: Wed, 26 Apr 2023 12:07:53 +0100 Message-ID: <077666b3-657b-4b35-b271-78d6bd26d2df@Spark> References: <83r0s7szfj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="64490618_52bb25ce_18ec" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23578"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63086@debbugs.gnu.org To: Randy Taylor , Yuan Fu , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 26 13:09:13 2023 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 1prd1M-0005sP-6s for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Apr 2023 13:09:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prd1D-00006n-QD; Wed, 26 Apr 2023 07:09:03 -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 1prd1C-00006c-Mx for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 07:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1prd1C-0000XU-EY for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 07:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1prd1B-0005CA-TB for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 07:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jimmy Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Apr 2023 11:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63086 X-GNU-PR-Package: emacs Original-Received: via spool by 63086-submit@debbugs.gnu.org id=B63086.168250730019919 (code B ref 63086); Wed, 26 Apr 2023 11:09:01 +0000 Original-Received: (at 63086) by debbugs.gnu.org; 26 Apr 2023 11:08:20 +0000 Original-Received: from localhost ([127.0.0.1]:54404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prd0W-0005BD-CD for submit@debbugs.gnu.org; Wed, 26 Apr 2023 07:08:20 -0400 Original-Received: from mail-wm1-f51.google.com ([209.85.128.51]:52618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prd0R-0005As-VU for 63086@debbugs.gnu.org; Wed, 26 Apr 2023 07:08:19 -0400 Original-Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-3f196e8e2c6so51281715e9.1 for <63086@debbugs.gnu.org>; Wed, 26 Apr 2023 04:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682507290; x=1685099290; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=inHYxRwBNOKoghaM3tOJFwJyozpK/IW/vkWhcK+APbQ=; b=I+6I6PZHykfWBkcvsC3G6EC8XVjj/go5Zmjo923kBgFqzCb0wLJ8Xky7f2JZKN9oQZ NosOItMcU+VOAZUaHkZSIsDuEF5o/6pw2BFrkxg7JB2J5PeC2skbeRT5EUNeDfrHR4TT bCIlm5AvSwn7A/ikkCREN5U/rQH00jP1RshnovrOD65iVW82yiJFZi4Gkjp9jV1gM5LC /CssVaWrZ8y6UbiiF3DFNJ6NTdE7C9RMAfvo9FRRjMrqD4PFUC9164Uy7alhn+r7FExn vfB1E1Lh2Woqvs2yXtwvSYrFpeUsrP+VVBTCJCRfDP9+lPVZ0inSzDvehVovEWypTIfZ dHGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682507290; x=1685099290; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=inHYxRwBNOKoghaM3tOJFwJyozpK/IW/vkWhcK+APbQ=; b=N84uzQvbIUpYHCGZwA0fF3l/oKKLX6jYrQqf5xCt+5er6CrtPBmzAAs5iuDt89sHwv O2pRqKyS+UkMJOoI18il7t5Zf7xHk4IL26LLif4D1Rlf0OAewU5wzdf8Fpnol8dFeZvj OydKpsO8390u/JWEuayRqxB5qtXjMM8ngRPzFwZ0FCuODHRPIR/yUVA3ShnQcOVGTq3x BmTY/BpiPmWCkHo7RrJG3AvkVrx7glD4qti8TWQ7zE5aWqrrl0qrcFc8XF6ZeKCmWf94 XhbKzLdv6OCgS3i+ghOm7DnyahlcNXjEpMG0MZYkzzEaJTlLmMulDu46pYvAc3GHiI9A oqHg== X-Gm-Message-State: AAQBX9dqnuu1/UcC9I/Xdxygm+tOBFO/UUbpIJowsiOBFI0V48WYpnAE +KdfeazHu9op2ru1/76m3j05odUhbo4= X-Google-Smtp-Source: AKy350aAPnBDBa0RQyh0KsPUwyC9MaQbR6UcpU9HcntzjEcTNXZSdf7sN3ny1/mtLicHvF5iUS84hA== X-Received: by 2002:a7b:cd87:0:b0:3ed:c468:ab11 with SMTP id y7-20020a7bcd87000000b003edc468ab11mr12865678wmj.28.1682507289810; Wed, 26 Apr 2023 04:08:09 -0700 (PDT) Original-Received: from [2a01:4b00:89a0:2400:a4:dc29:100:0] ([2a01:4b00:89a0:2400:1058:2dbc:580e:2bdb]) by smtp.gmail.com with ESMTPSA id r6-20020a05600c458600b003f195d540d9sm13341274wmo.14.2023.04.26.04.08.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Apr 2023 04:08:09 -0700 (PDT) In-Reply-To: <83r0s7szfj.fsf@gnu.org> X-Readdle-Message-ID: 077666b3-657b-4b35-b271-78d6bd26d2df@Spark 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:260667 Archived-At: --64490618_52bb25ce_18ec Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Any go file will trigger this On 26 Apr 2023 at 11:35 AM +0100, Eli Zaretskii , wrote: > > From: Jimmy Yuen Ho Wong > > Date: Wed, 26 Apr 2023 11:00:14 +0100 > > > > > > After visiting a go file and turning on M-x go-ts-mode, this following > > message appears in the *Messages* buffer and the go buffer is not > > highlighted as a result. > > > > QuitError during redisplay: (jit-lock-function 1) signaled (treesit-query-error "Node type error at" 11 "[(false) (iota) (nil) (true)] @font-lock-constant-face (const_declaration (const_spec name: (identifier) @font-lock-constant-face))" "Debug the query with `treesit-query-validate'") > > Error during redisplay: (jit-lock-function 1) signaled (treesit-query-error "Node type error at" 11 "[(false) (iota) (nil) (true)] @font-lock-constant-face (const_declaration (const_spec name: (identifier) @font-lock-constant-face))" "Debug the query with `treesit-query-validate'") > > Can you post a minimal file that triggers this? Or are you saying > that any Go file will cause this? > > Thanks. --64490618_52bb25ce_18ec Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Any go file will trigger this
On 26 Apr 2023 at 11:35 AM +0100, E= li Zaretskii <eliz=40gnu.org>, wrote:
=46rom: Jimmy Yuen Ho Wong <wyuenho=40gm= ail.com>
Date: Wed, 26 Apr 2023 11:00:14 +0100


After visiting a go file and turning on M-x go-ts-mode, this following message appears in the *Messages* buffer and the go buffer is not
highlighted as a result.

QuitError during redisplay: (jit-lock-function 1) signaled (treesit-query= -error =22Node type error at=22 11 =22=5B(false) (iota) (nil) (true)=5D =40= font-lock-constant-face (const=5Fdeclaration (const=5Fspec name: (identif= ier) =40font-lock-constant-face))=22 =22Debug the query with =60treesit-q= uery-validate'=22)
Error during redisplay: (jit-lock-function 1) signaled (treesit-query-err= or =22Node type error at=22 11 =22=5B(false) (iota) (nil) (true)=5D =40fo= nt-lock-constant-face (const=5Fdeclaration (const=5Fspec name: (identifie= r) =40font-lock-constant-face))=22 =22Debug the query with =60treesit-que= ry-validate'=22)

Can you post a minimal file that triggers this=3F Or are you saying
= that any Go file will cause this=3F

Thanks.
--64490618_52bb25ce_18ec--