From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Martin via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70299: 30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting Date: Wed, 10 Apr 2024 09:38:31 +0100 Message-ID: References: <86y19nw1mh.fsf@gnu.org> <09BC30DC-A05E-4FF9-900F-C510C2AC04CE@gmail.com> Reply-To: Martin Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000511b5f0615b9f7d4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40804"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , 70299@debbugs.gnu.org, Eli Zaretskii To: dev@rjt.dev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 10 10:40:11 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 1ruTV4-000AK0-NX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Apr 2024 10:40:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruTUp-0003iX-Vu; Wed, 10 Apr 2024 04:39:56 -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 1ruTUn-0003iH-Rw for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 04:39:53 -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 1ruTUn-00006a-6J for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 04:39:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ruTUv-0008PL-MI for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 04:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Martin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Apr 2024 08:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70299-submit@debbugs.gnu.org id=B70299.171273834331823 (code B ref 70299); Wed, 10 Apr 2024 08:40:01 +0000 Original-Received: (at 70299) by debbugs.gnu.org; 10 Apr 2024 08:39:03 +0000 Original-Received: from localhost ([127.0.0.1]:52107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruTTw-0008Gh-Rd for submit@debbugs.gnu.org; Wed, 10 Apr 2024 04:39:03 -0400 Original-Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:45195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruTTt-0008F6-6l for 70299@debbugs.gnu.org; Wed, 10 Apr 2024 04:38:59 -0400 Original-Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1e24c889618so52535315ad.2 for <70299@debbugs.gnu.org>; Wed, 10 Apr 2024 01:38:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1712738323; x=1713343123; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KpRiecwiH35jrWHvfKWAyZ0jxC0zZqjFVEp/ytbENMk=; b=ZcKRSoC1z4ab+0k1Ymgp8g5mVAEIXdanuGlBQachUI2lvz0LUBrc4/QaMf9A1DaLFt NSDHirupDbd62AZX8Kpd+VK37Ki6yFcU+qpMnuX8a1tySA4tUXF4bSXSaC3sgPygUh43 s1C0Pc2cKeihY+suxexz69Z9nUE7UwIj4/Inal/y4CUX/Pq/JiumNe2OXoh0Csr+gd3b OyOHTLzKE4t4eYsGiee9E580OJVP4nulsJogQv3NSruij6shGrr3bj+QPQKCkxfta2QS IAlfFK0X2Pz/5+lepHStJ4FTPl9SFMMn+fjO5xSfZR2TSXqxYNfodvNBbcxRcAAt0ylE xFfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712738323; x=1713343123; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KpRiecwiH35jrWHvfKWAyZ0jxC0zZqjFVEp/ytbENMk=; b=UNxdnKSbzjHTwN1leoVbYRJ+3jZV3fEhcdga5CK3ta7Vo3LGM106tFBqUHDqJmfUnw q/XAEDmDsiEWPaIkGd67MYfwIe/cajjGmjU4MoYmWrKYdKxXylhRL9XSCzbev3rpKmlA PGbcbUDgBpSgghmn2F3blbSTo63sKTvL1r55Gr7lPfD1CNKqjY/jAOksT1JVmTqLh8Vt Rw7kCSFJafOKVeWbearLM1ZrzORvp6guuOPbin5ILvM6fgTBw7GGdosJRze6g0aX2pEk DIcCT0fJObut1uwDR0rUHfJ51JF3zDXM7O/cI8zUpFRSmersz4sHTr1ws6H2mrrXjSNS 4p7A== X-Forwarded-Encrypted: i=1; AJvYcCUxqDOVt29+3B2XuPBGk4GEIThoc1cx6VTt7JzRLgZNXOaQdP19URjW7k8QQ2NhigadXfBvK6bFgOVoY7U5ilYvfFtW+a4= X-Gm-Message-State: AOJu0Yx0NLbC4F6Vwzhm0z5lEw2KwIgpTn66ktp9mbeyRQ16XEtRkp3b BeU6iHp0A8w+0qN54yMkecPg0gF8xeE9aLJoqAgLI/UO8F0S0Ss5g+OZAkrPiRb8BuTI0ApnqmB f0uAd/5cqZaYx4FWEMP0QpC2Lzng= X-Google-Smtp-Source: AGHT+IG/zTuDIKNLbrglzAAwm30j6ywAvaiOX/623aelwSHKzHtB9J1xRerOLOqNfxPc2EDBobJEXkdN6ilWn3iDVRI= X-Received: by 2002:a17:902:ab81:b0:1e3:e022:1dd9 with SMTP id f1-20020a170902ab8100b001e3e0221dd9mr1829301plr.40.1712738322682; Wed, 10 Apr 2024 01:38:42 -0700 (PDT) In-Reply-To: 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:283032 Archived-At: --000000000000511b5f0615b9f7d4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =F0=9F=A4=A6 heh. yeah that was it. deleted the .elc and now it works. Weirdly, setting load-prefer-newer to t did not fix the issue.. I probably did something wrong there too. Anyway, all good. Thanks! On Wed, Apr 10, 2024 at 12:22=E2=80=AFAM Randy Taylor wrote: > On Tuesday, April 9th, 2024 at 09:08, Martin via "Bug reports for GNU > Emacs, the Swiss army knife of text editors" > wrote: > > I can see this in *Messages* > > > > > Error during redisplay: (jit-lock-function 6092) signaled > (treesit-query-error "Node type error at" 150 "(function_declaration name= : > (identifier) @font-lock-function-name-face) (method_declaration name: > (field_identifier) @font-lock-function-name-face) (method_spec name: > (field_identifier) @font-lock-function-name-face) (field_declaration name= : > (field_identifier) @font-lock-property-name-face) (parameter_declaration > name: (identifier) @font-lock-variable-name-face) (short_var_declaration > left: (expression_list (identifier) @font-lock-variable-name-face (\",\" > (identifier) @font-lock-variable-name-face) *)) (var_spec name: > (identifier) @font-lock-variable-name-face (\",\" name: (identifier) > @font-lock-variable-name-face) *)" "Debug the query with > `treesit-query-validate'") > > > > > > On Tue, Apr 9, 2024 at 12:55=E2=80=AFPM Martin > wrote: > > > > > I tried manually applying that patch to my local emacs - it didn't > seem to fix the issue of no syntax highlighting? > >> > > The patch fixes it for me. > > How did you apply the patch? > > Perhaps the stale bytecompiled go-ts-mode.elc is used instead - can you > try either regenerating it or setting load-prefer-newer to t and trying > again? > > --000000000000511b5f0615b9f7d4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=F0=9F=A4=A6

heh. yeah that was it. del= eted the .elc and now it works. Weirdly, setting load-prefer-newer to t did= not fix the issue.. I probably did something wrong there too.
Anyway, all good. Thanks!

On Wed, Apr 10, 2024 at 12:22= =E2=80=AFAM Randy Taylor <dev@rjt.dev= > wrote:
On T= uesday, April 9th, 2024 at 09:08, Martin via "Bug reports for GNU Emac= s, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> wrote:
> I can see this in *Messages*
>
> > Error during redisplay: (jit-lock-function 6092) signaled (treesi= t-query-error "Node type error at" 150 "(function_declaratio= n name: (identifier) @font-lock-function-name-face) (method_declaration nam= e: (field_identifier) @font-lock-function-name-face) (method_spec name: (fi= eld_identifier) @font-lock-function-name-face) (field_declaration name: (fi= eld_identifier) @font-lock-property-name-face) (parameter_declaration name:= (identifier) @font-lock-variable-name-face) (short_var_declaration left: (= expression_list (identifier) @font-lock-variable-name-face (\",\"= (identifier) @font-lock-variable-name-face) *)) (var_spec name: (identifie= r) @font-lock-variable-name-face (\",\" name: (identifier) @font-= lock-variable-name-face) *)" "Debug the query with `treesit-query= -validate'")
>
>
> On Tue, Apr 9, 2024 at 12:55=E2=80=AFPM Martin <martin.tang365@googlemail.c= om> wrote:
>
> > I tried manually applying that patch to my local emacs - it didn&= #39;t seem to fix the issue of no syntax highlighting?
>>

The patch fixes it for me.

How did you apply the patch?

Perhaps the stale bytecompiled go-ts-mode.elc is used instead - can you try= either regenerating it or setting load-prefer-newer to t and trying again?=

--000000000000511b5f0615b9f7d4--