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 14:26:09 +0100 Message-ID: <80fa402e-058b-4144-ab1e-a7dd6301bb4d@Spark> References: <83r0s7szfj.fsf@gnu.org> <077666b3-657b-4b35-b271-78d6bd26d2df@Spark> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="6449267a_736819a_18ec" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15974"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , 63086@debbugs.gnu.org, Eli Zaretskii To: Randy Taylor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 26 15:27:33 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 1prfBE-0003ux-Tx for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Apr 2023 15:27:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prfAn-00080x-UX; Wed, 26 Apr 2023 09:27:05 -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 1prfAl-00080Z-6h for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 09:27:03 -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 1prfAk-0004DM-UP for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 09:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1prfAk-00031j-3H for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 09:27:02 -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 13:27:02 +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.168251559211596 (code B ref 63086); Wed, 26 Apr 2023 13:27:02 +0000 Original-Received: (at 63086) by debbugs.gnu.org; 26 Apr 2023 13:26:32 +0000 Original-Received: from localhost ([127.0.0.1]:54602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prfAG-00030x-27 for submit@debbugs.gnu.org; Wed, 26 Apr 2023 09:26:32 -0400 Original-Received: from mail-wm1-f44.google.com ([209.85.128.44]:52462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prfAB-00030h-Ke for 63086@debbugs.gnu.org; Wed, 26 Apr 2023 09:26:30 -0400 Original-Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-3f1958d3a53so56298155e9.0 for <63086@debbugs.gnu.org>; Wed, 26 Apr 2023 06:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682515582; x=1685107582; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=yAivwhEyd1Qi/oBjCDQ3U0G3HRQZRgFPJl3m2TRvMDQ=; b=N5D2P0ywxz9IqLj5p0ba76Mukmkm8HdPeE40t6lWDkad9gfH1ZWcmedzlSmQrMbnv9 rps6i22zV94XQyWBOHU/2eya8YaFTNnixTml7JJtcZIBGmsEFgq8ZZ5FwGCTJj0MbyDo PTgmuAfbGOP0Jd4tbP193ibeXBIYIf7RzMWWr5g9CsQ5Tym1f08YEdUVDmiHLqp6eX1e Dh5M51a2eEhEn/X72Rh9pJA2uCEslHZwRLe9DPw1pKyPpKPYF99FuGKRAQ+DU9nwCDAP trDtyrCmC8BIcrY4MBMTuOWYyWuqTNAuMygbJuF+PVMXOyY3bS2Av7/rc7BOn4fmQ0LM 8ccw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682515582; x=1685107582; 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=yAivwhEyd1Qi/oBjCDQ3U0G3HRQZRgFPJl3m2TRvMDQ=; b=M6iG6vmXMkOVfb/hqIE/gh3JCprBEQ+vD4lYGrRsiaJw9eVd3BfgvxC6YF0s+IBeR3 +MysohRdoe5qWwV4Wb4hNgWOxwJaeIIPeG4GmrZ+jTqcI20y4z1W9Q5fnipCaI79/mPE J0s+RpQdb+pW4Eug5ityjT/p1XCFP837AMk3lH5M+YwvQgYKPibMCeI3VIqvsc0ZqUsN 9Z/Mug4NAqVgYM5qNUTnGPp8htOyLA8UFXC9KPpRp4L4rkV3W3gWRa2/Dvce/38/Bt7P 4jZ2bE2ZHzPpqdXfk4fABafoHRBdfW1DfKtF/H+e2D3EncntGZ8R3qusReLh5o43QCl9 KYrg== X-Gm-Message-State: AAQBX9e7lE3CXim54+wICAY7ZARs1x0tgkWO13ntA+Geqkdw1lf9HZ/r kqsHANd3gHCCR0Zbd3PWoyA= X-Google-Smtp-Source: AKy350aMq079D6yqM5G5ngNi029UJp/DwDtcUFlchPJt/LqVecsbScqVxtS5q7M4xZ8hkJMjpoLQMw== X-Received: by 2002:a1c:7c0a:0:b0:3f0:b095:15d9 with SMTP id x10-20020a1c7c0a000000b003f0b09515d9mr12303635wmc.40.1682515581587; Wed, 26 Apr 2023 06:26:21 -0700 (PDT) Original-Received: from [2a01:4b00:89a0:2400:f0:791c:100:0] ([2a01:4b00:89a0:2400:1058:2dbc:580e:2bdb]) by smtp.gmail.com with ESMTPSA id bi26-20020a05600c3d9a00b003eddc6aa5fasm17717640wmb.39.2023.04.26.06.26.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Apr 2023 06:26:20 -0700 (PDT) In-Reply-To: X-Readdle-Message-ID: 80fa402e-058b-4144-ab1e-a7dd6301bb4d@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:260675 Archived-At: --6449267a_736819a_18ec Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I can produce this with emacs-q. I=E2=80=99m using tree-sitter-go 0.19.1 = from Macports. On 26 Apr 2023 at 1:38 PM +0100, Randy Taylor , wrote: > On Wednesday, April 26th, 2023 at 07:07, Jimmy Wong wrote: > > > Any go file will trigger this > > On 26 Apr 2023 at 11:35 AM +0100, Eli Zaretskii , wro= te: > > > > =46rom: 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 foll= owing > > > > message appears in the *Messages* buffer and the go buffer is not= > > > > highlighted as a result. > > > > > > > > QuitError during redisplay: (jit-lock-function 1) signaled (trees= it-query-error =22Node type error at=22 11 =22=5B(false) (iota) (nil) (tr= ue)=5D =40font-lock-constant-face (const=5Fdeclaration (const=5Fspec name= : (identifier) =40font-lock-constant-face))=22 =22Debug the query with =60= treesit-query-validate'=22) > > > > Error during redisplay: (jit-lock-function 1) signaled (treesit-q= uery-error =22Node type error at=22 11 =22=5B(false) (iota) (nil) (true)=5D= =40font-lock-constant-face (const=5Fdeclaration (const=5Fspec name: (ide= ntifier) =40font-lock-constant-face))=22 =22Debug the query with =60trees= it-query-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. > > I can't reproduce this with any .go files I have laying around. Can you= share one that reproduces the issue=3F > > Is the tree-sitter-go shared library file you're using the latest and m= ost up to date one=3F > > What is the version of tree-sitter=3F If it's not the latest, can you t= ry the latest and see if that helps=3F > > Also, and just to be on the safe side, are you able to reproduce this w= ith emacs -Q=3F > --6449267a_736819a_18ec Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I can produce this with emacs-q. I=E2=80=99m using = tree-sitter-go 0.19.1 from Macports.&=23160;
On 26 Apr 2023 at 1:38 PM +0100, Ra= ndy Taylor <dev=40rjt.dev>, wrote:
On Wednesday, April 26th, 2023 at 07:07, Jimmy Wong <wyuenho= =40gmail.com> wrote:

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.

I can't reproduce this with any .go files I have laying a= round. Can you share one that reproduces the issue=3F

Is the tree-sitter-go shared library file you're using th= e latest and most up to date one=3F

What is the version of tree-sitter=3F If it's not the lat= est, can you try the latest and see if that helps=3F

Also, and just to be on the safe side, are you able to re= produce this with emacs -Q=3F

--6449267a_736819a_18ec--