From unknown Sat Aug 16 18:46:24 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#70299 <70299@debbugs.gnu.org> To: bug#70299 <70299@debbugs.gnu.org> Subject: Status: 30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting Reply-To: bug#70299 <70299@debbugs.gnu.org> Date: Sun, 17 Aug 2025 01:46:24 +0000 retitle 70299 30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting reassign 70299 emacs submitter 70299 Martin severity 70299 normal tag 70299 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 09 00:46:07 2024 Received: (at submit) by debbugs.gnu.org; 9 Apr 2024 04:46:08 +0000 Received: from localhost ([127.0.0.1]:48063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ru3Mz-0004UY-Lf for submit@debbugs.gnu.org; Tue, 09 Apr 2024 00:46:07 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtyf6-0002L1-LY for submit@debbugs.gnu.org; Mon, 08 Apr 2024 19:44:33 -0400 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 1rtyeq-00047h-OI for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2024 19:44:13 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rtyeo-00035s-9d for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2024 19:44:12 -0400 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-5f034b4dcecso3379722a12.1 for ; Mon, 08 Apr 2024 16:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1712619848; x=1713224648; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=gJKRLnjiQSSAnihjVMmuLc+AMSvWDpkso1uLhAVVTEE=; b=L5lR0j1S0fFN2UGc8lGmkQpRwHJbzUpwyXZyDASCtOlmhmrig9MaFHfeQbU6cJU2TT 3Q2c1P0QA2b6Im4XfuoVr79ZlBL3f8fhCsA+z+P+Ip/TCQkYJg8kACvZdXRkbHWTJ4z2 4mWtAUiAS4GnJwtz+5hp7y+7jvcwp+GiX7XeSDelQU8wHCoU6gqOsbnAU0vEaZwG39ID b9+GS9Tz2T8xAeID5ZvlV/sgN17SFipUpnLDmguDBxzok5eBAulWDOwe6+Pg/+uCQ02H +qxvZIY68sz++TUpFuyzrRVvoU7Tc5x1kgK/l5lwRu+YvFIX8k6diHKkzWJ1arquAj4Q V5ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712619848; x=1713224648; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gJKRLnjiQSSAnihjVMmuLc+AMSvWDpkso1uLhAVVTEE=; b=GeS3Hi/Gt0ax65Oqgxto5iKKE+26bA31Loa9j+PmTyMQFNkqqAEj1ss9lsWaRqEqEc Uy9qF1FeiR8fcE1/KSzxBSdTm5B4qFFcIqoI9NlqirMa2UBNmcTCTyzLQyltFmYirrla kCLueEdz++v56bk++9LB8oUePAUqW01qNmLeBseP6gGZP97IKvrGPaEM1e5/QYWSv7FI fxeb2sNHw7GY3Z32od6/qbnqvFxkVjafnxvliCvx5ZSN3/4nTJ4CUH2BPfEY12z3xaDf /Qr/cgh8VQJvN2heoOJFG0bJYClNFprgLhadrxOVDmapVqeSl2CQ8Baw+0yS4k8pblOb 6dug== X-Gm-Message-State: AOJu0YyS+5s5AawJkHGsngqII2Mn93a6L9nXq9Y8Qa1vZm9VieLcH3Sb JqfFJ5oVJ/Aw0nLyMPzkX21Ltg364ObsepzkhHPmYxRo+sD8MHnfU1Y51H6hkGi/c+Tkb9TWTNb zwr1DOBTp98B97ec0c8MokvryUDjMq6WFRgA1pw== X-Google-Smtp-Source: AGHT+IFtplHpH6IY+sc4AwzxWzfZqyDc2CQ1UrCc8VLTWX+t22caEiBftGjdhh0/D3Myi8+Oc0/rQraGIy2MYUD5di0= X-Received: by 2002:a17:903:185:b0:1e2:7734:63dd with SMTP id z5-20020a170903018500b001e2773463ddmr1694051plg.30.1712619848043; Mon, 08 Apr 2024 16:44:08 -0700 (PDT) MIME-Version: 1.0 From: Martin Date: Tue, 9 Apr 2024 00:43:57 +0100 Message-ID: Subject: 30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000ad950206159e6175" Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=martin.tang365@googlemail.com; helo=mail-pg1-x530.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: --text follows this line-- - emacs -Q; - M-x treesit-install-language-grammar - go - github.com/tree-sitter/tree-sitter-go - Open up a new buffer and use go-ts-mode - Write some go-code ``` package my_pkg type myStruct struct {} func MyFunc(x context.Context) error {} ``` - Observe that there is no syntax highlighting - O [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (martin.tang365[at]googlemail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (martin.tang365[at]googlemail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 HTML_MESSAGE BODY: HTML included in message X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 09 Apr 2024 00:46:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) --000000000000ad950206159e6175 Content-Type: text/plain; charset="UTF-8" --text follows this line-- - emacs -Q; - M-x treesit-install-language-grammar - go - github.com/tree-sitter/tree-sitter-go - Open up a new buffer and use go-ts-mode - Write some go-code ``` package my_pkg type myStruct struct {} func MyFunc(x context.Context) error {} ``` - Observe that there is no syntax highlighting - Observe that treesit-explore-mode seems to work properly - Conclude that there is something wrong with go-ts-mode's highlighting. There is highlighting with tree-sitter-go v0.19.1, but that grammar also seems to come with some bugs. In GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin23.4.0, NS appkit-2487.50 Version 14.4.1 (Build 23E224)) of 2024-04-08 built on MF9VWRYQFN Windowing system distributor 'Apple', version 10.3.2487 System Description: macOS 14.4.1 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp --infodir=/opt/homebrew/Cellar/emacs-plus@30/30.0.50/share/info/emacs --prefix=/opt/homebrew/Cellar/emacs-plus@30/30.0.50 --with-xml2 --with-gnutls --without-compress-install --without-dbus --without-imagemagick --with-modules --with-rsvg --with-webp --with-ns --disable-ns-self-contained 'CFLAGS=-Os -w -pipe -mmacosx-version-min=14 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' 'CPPFLAGS=-I/opt/homebrew/opt/icu4c/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/readline/include -isystem/opt/homebrew/include -F/opt/homebrew/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk' 'LDFLAGS=-L/opt/homebrew/opt/icu4c/lib -L/opt/homebrew/opt/sqlite/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/lib -F/opt/homebrew/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Go Minor modes in effect: treesit-explore-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils python rx project byte-opt gv bytecomp byte-compile compat pcase comint ansi-osc ring ansi-color cl-seq go-ts-mode treesit vc-git diff-mode easy-mmode vc-dispatcher cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 104850 12135) (symbols 48 7868 0) (strings 32 21254 2120) (string-bytes 1 586116) (vectors 16 14537) (vector-slots 8 156722 9447) (floats 8 27 34) (intervals 56 5547 0) (buffers 992 13)) --000000000000ad950206159e6175 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
--text follows this line--

- emacs -Q;
- M-x tre= esit-install-language-grammar
=C2=A0 - go
=C2=A0 - github.com/tree-sitter/tree-sitter-g= o

- Open up a new buffer and use go-ts-mode
- Write some go-c= ode
```
package my_pkg
type myStruct struct {}
func MyFunc(x c= ontext.Context) error {}
```
- Observe that there is no syntax highli= ghting
- Observe that treesit-explore-mode seems to work properly
- C= onclude that there is something wrong with go-ts-mode's
=C2=A0 highl= ighting. There is highlighting with tree-sitter-go v0.19.1, but
=C2=A0 t= hat grammar also seems to come with some bugs.


In GNU Emacs 30.0= .50 (build 1, aarch64-apple-darwin23.4.0, NS
=C2=A0appkit-2487.50 Versio= n 14.4.1 (Build 23E224)) of 2024-04-08 built on
=C2=A0MF9VWRYQFN
Wind= owing system distributor 'Apple', version 10.3.2487
System Descr= iption: =C2=A0macOS 14.4.1

Configured using:
=C2=A0'configure= --disable-dependency-tracking --disable-silent-rules
=C2=A0--enable-loc= allisppath=3D/opt/homebrew/share/emacs/site-lisp
=C2=A0--infodir=3D/opt/= homebrew/Cellar/emacs-plus@30/30.0.50/share/info/emacs
=C2=A0--prefix=3D= /opt/homebrew/Cellar/emacs-plus@30/30.0.50 --with-xml2
=C2=A0--with-gnut= ls --without-compress-install --without-dbus
=C2=A0--without-imagemagick= --with-modules --with-rsvg --with-webp --with-ns
=C2=A0--disable-ns-sel= f-contained 'CFLAGS=3D-Os -w -pipe
=C2=A0-mmacosx-version-min=3D14=C2=A0-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
= =C2=A0-DFD_SETSIZE=3D10000 -DDARWIN_UNLIMITED_SELECT'
=C2=A0'CPP= FLAGS=3D-I/opt/homebrew/opt/icu4c/include
=C2=A0-I/opt/homebrew/opt/sqli= te/include -I/opt/homebrew/opt/readline/include
=C2=A0-isystem/opt/homeb= rew/include -F/opt/homebrew/Frameworks
=C2=A0-isysroot/Library/Developer= /CommandLineTools/SDKs/MacOSX14.sdk'
=C2=A0'LDFLAGS=3D-L/opt/hom= ebrew/opt/icu4c/lib -L/opt/homebrew/opt/sqlite/lib
=C2=A0-L/opt/homebrew= /opt/readline/lib -L/opt/homebrew/lib
=C2=A0-F/opt/homebrew/Frameworks -= Wl,-headerpad_max_install_names
=C2=A0-isysroot/Library/Developer/Comman= dLineTools/SDKs/MacOSX14.sdk''

Configured features:
ACL G= IF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS
PDUMPER P= NG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER
WEBP XIM ZL= IB

Important settings:
=C2=A0 value of $LANG: en_GB.UTF-8
=C2= =A0 locale-coding-system: utf-8-unix

Major mode: Go

Minor mod= es in effect:
=C2=A0 treesit-explore-mode: t
=C2=A0 tooltip-mode: t=C2=A0 global-eldoc-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electr= ic-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t<= br>=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 glo= bal-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mo= de: t
=C2=A0 minibuffer-regexp-mode: t
=C2=A0 line-number-mode: t
= =C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-= composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compre= ssion-mode: t

Load-path shadows:
None found.

Features:
= (shadow sort mail-extr emacsbug message mailcap yank-media puny dired
di= red-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
e= pg-config gnus-util text-property-search time-date subr-x mm-decode
mm-b= odies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendm= ail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils python
rx p= roject byte-opt gv bytecomp byte-compile compat pcase comint
ansi-osc ri= ng ansi-color cl-seq go-ts-mode treesit vc-git diff-mode
easy-mmode vc-d= ispatcher cl-loaddefs cl-lib rmc iso-transl tooltip cconv
eldoc paren el= ectric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel te= rm/ns-win ns-win ucs-normalize mule-util
term/common-win tool-bar dnd fo= ntset image regexp-opt fringe
tabulated-list replace newcomment text-mod= e lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch= easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-c= ore term/tty-colors
frame minibuffer nadvice seq simple cl-generic indon= esian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan t= hai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian = slovak czech
european ethiopic indian cyrillic chinese composite emoji-z= wj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev oba= rray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face= macroexp
files window text-properties overlay sha1 md5 base64 format en= v
code-pages mule custom widget keymap hashtable-print-readable backquot= e
threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs)
Memory information:
((conses 16 104850 12135) (symbols 48 7868 0) (= strings 32 21254 2120)
=C2=A0(string-bytes 1 586116) (vectors 16 14537)<= br>=C2=A0(vector-slots 8 156722 9447) (floats 8 27 34) (intervals 56 5547 0= )
=C2=A0(buffers 992 13))
--000000000000ad950206159e6175-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 09 01:23:46 2024 Received: (at 70299) by debbugs.gnu.org; 9 Apr 2024 05:23:46 +0000 Received: from localhost ([127.0.0.1]:48076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ru3xR-0008Ay-PL for submit@debbugs.gnu.org; Tue, 09 Apr 2024 01:23:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ru3xM-00089z-Q8 for 70299@debbugs.gnu.org; Tue, 09 Apr 2024 01:23:44 -0400 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 1ru3x9-0000oz-Bx; Tue, 09 Apr 2024 01:23:27 -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=vUo96PayGKtu9kChcIE4hSkwMTLEl4JAapKWBz/6ivA=; b=IFkFQo2FyDt2 GSO7hWvUIrpRPDBfSwG16DilP0Dvdooh3zSMqBl3m8N6s5C8D4CoCma2+6rUVdybmaLe0/l4ANy+A W/ySzl9xWRxM/GW8FXq9BUbMTxiKH4yi+9Y3vfdXjJkryV58xiSr7x/VsPYYL6gbetBR9jgB98tm1 4HR9Oh2zFkG7d/uxdXEumLnpc/CtGWkYAASctmTvglT9vhN6GOfEgCKzhc0rs9tWqMj0OdUp2/TMK w93sv8vOKz+L0ECDyrJkXn0rs3DKYT8rAr1LGpDF6Q3QzduAB6wG8m5SxlJcyTkZrSxIsMW8Vm1LZ wjeRy0KpbiSi2oEYvP4juQ==; Date: Tue, 09 Apr 2024 08:23:18 +0300 Message-Id: <86y19nw1mh.fsf@gnu.org> From: Eli Zaretskii To: Martin In-Reply-To: (bug-gnu-emacs@gnu.org) Subject: Re: bug#70299: 30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70299 Cc: 70299@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 9 Apr 2024 00:43:57 +0100 > From: Martin via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > - emacs -Q; > - M-x treesit-install-language-grammar > - go > - github.com/tree-sitter/tree-sitter-go > > - Open up a new buffer and use go-ts-mode > - Write some go-code > ``` > package my_pkg > type myStruct struct {} > func MyFunc(x context.Context) error {} > ``` > - Observe that there is no syntax highlighting > - Observe that treesit-explore-mode seems to work properly > - Conclude that there is something wrong with go-ts-mode's > highlighting. There is highlighting with tree-sitter-go v0.19.1, but > that grammar also seems to come with some bugs. Isn't this a duplicate of bug#70296? From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 09 01:45:41 2024 Received: (at control) by debbugs.gnu.org; 9 Apr 2024 05:45:41 +0000 Received: from localhost ([127.0.0.1]:48081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ru4Ie-0001qx-Qo for submit@debbugs.gnu.org; Tue, 09 Apr 2024 01:45:41 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:46181) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ru4IZ-0001qh-HF for control@debbugs.gnu.org; Tue, 09 Apr 2024 01:45:38 -0400 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1e244c7cbf8so43706595ad.0 for ; Mon, 08 Apr 2024 22:45:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712641521; x=1713246321; darn=debbugs.gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=EdGueJ9BPFGm7XwYfZMAVnVsl2ifpc7ujcn1QFgtNG8=; b=B5VQFq6qWHbtmhfXkbkoSSottoYneZi2eoQF8Ds8yrdOek0LInOfCcaqLWKORXjBlE jYbyGssJfZJ73fNqoIORU52lBPnPliaCV3CKXuxcblKfKtAOrk/fXvEFrfoT3RntTwun S7Bb4wFhF/PG9UUMNgXlq451TskPuhwlyt77DPZR4uqHfLpLarAlqGmR/zYD25EqUr8/ VbdNxjA7WUU1tQX4eMfpng86XpEmOhX+UfqeE/XE7XKDtfy2B4UWzMXiiZBMa8fI6DKd CvfZGJsVy+1VZcgDYAjgmBo7lEW7z97a5o7dojpDaFRGUVH1Wp+5yNZVEj+YCRrS5qPl 9A2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712641521; x=1713246321; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EdGueJ9BPFGm7XwYfZMAVnVsl2ifpc7ujcn1QFgtNG8=; b=cU+x0H45qkXNp1RDj0y9co2pvwynPG+xqOXbf7rV69pwmMzR4+gRK7bSYofwLzX1ex VuUfFD/R7F89InK8VPq+ljf/JcMhKlq0XDg/bM4nXYDOn1ciGDtLwZx4oMU/9ZHlWJsz 3YEPgl8cNVXy5a+e3xIrDuV7OPyIljotYZUgDLPc1oebMJOlPusIeVajjbQJRqWZIJQU xdFss5LIvWYPhunLVNnCIOcs10gmj0gPU2PYGAEy81clNVAH4P9ZQhrvnZA9UUwgpdp9 67IDEcXS0cAMGUqCdfeTE4NEBil9doM3VMlbqK71ivX3xgKSqHTMYrsH5WOS7yigLUFj jmLw== X-Gm-Message-State: AOJu0YyajKxnSKgq2Cc8MZmJRw+XvKHnGDm5OktjPV9UbCNpe9NfN2OR B6cLmwJ1NhT681jqo65iyEN39O+vNtXVmMVU91Af9VxRXk/j5FrxSI9IXbK9 X-Google-Smtp-Source: AGHT+IGpSGe96OCJWdwe00iZi7ldFdU5AfYSAZwu2sGf6Rgz5gRsepp+GkO3KFXdouldjW8J76ML9g== X-Received: by 2002:a17:903:120a:b0:1e2:b192:6975 with SMTP id l10-20020a170903120a00b001e2b1926975mr11585829plh.16.1712641521385; Mon, 08 Apr 2024 22:45:21 -0700 (PDT) Received: from smtpclient.apple ([2601:641:300:4910:b561:5293:aa5:4618]) by smtp.gmail.com with ESMTPSA id d13-20020a170903230d00b001e043df262dsm8011950plh.33.2024.04.08.22.45.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Apr 2024 22:45:20 -0700 (PDT) From: Yuan Fu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: control message for bug #70299 Message-Id: Date: Mon, 8 Apr 2024 22:45:10 -0700 To: control@debbugs.gnu.org X-Mailer: Apple Mail (2.3731.700.6) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) merge 70299 70296 quit From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 09 01:47:55 2024 Received: (at 70299) by debbugs.gnu.org; 9 Apr 2024 05:47:55 +0000 Received: from localhost ([127.0.0.1]:48098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ru4Ko-00024i-9Q for submit@debbugs.gnu.org; Tue, 09 Apr 2024 01:47:55 -0400 Received: from mail-il1-x12e.google.com ([2607:f8b0:4864:20::12e]:47409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ru4Kk-000238-C9 for 70299@debbugs.gnu.org; Tue, 09 Apr 2024 01:47:53 -0400 Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-36a158d078dso11066335ab.3 for <70299@debbugs.gnu.org>; Mon, 08 Apr 2024 22:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712641657; x=1713246457; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xMKhAPfxqFVi5IlFpOmSzkMANOZz3wigLUreueTSp6o=; b=Tf5INsMrL9oTfKZUtg+aCKhTHhfUUm51ylCa+FdBb4SkCALRxmEoHYsVbDooU4CKE0 u6XU6vio2T8Z+/HbT2FMtRI8sv6IQl3IS/k8wgTylP08vOTHKG0YbwUG8QF114menxyk D+6SSWXyAkjpr2jRkGKfzapi7NQQT9gIJpH2jHWCUKyx+9fTJZkzPP7LnycKOz+BPBih StLiMk0z7rWN0mOyL76BQGa/szy6H/zVdQ3hu2SsBHsPgZqQhBwRwsTMjgoL7/LjOelo uvpfQ+nAfV+1BqRh7RGFk6l5GWirHx7RJTq3WHIBu8b4KfBnSMIB1LOwwHQsyB4i24es TLkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712641657; x=1713246457; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xMKhAPfxqFVi5IlFpOmSzkMANOZz3wigLUreueTSp6o=; b=kXszlO5C3BK5RzuwtZltdDsqUSK9lAm35xqVMaHdEqMYw4qb3rOnUk4akbE5mCguzw JlGw9X4z5vLXL/OiIE2mIG0CpJZch6+wq4seaQB04+1eufzsMlBTm2W6+FCYJ6dGUwhK vV2NMUSioKDyA4mIo7WkenQEpBcO4qyr7aGk91at6DP6oTJ+C1pSAHxvdYJpCqqrY1Mm J1boynIxI3XICvHhW/5bRRG436KQthTc5c4kLdURsGPB3v4xtNZer9le2rElh8P8xfqx XjpktoqbsnrlsJ1dEngYo0zKeY6JLV6EdEjnEmSra91AUJhqd+SMDo/xjizp90/48MQk zPEQ== X-Forwarded-Encrypted: i=1; AJvYcCV8ZRdXxw9qIAll12U//KNV39s322hwaJqCGQK5l1j+JDIki3LvPKCiNYSpiTuQ5EXeZbDf7Snw0LjbgpuQS9GJnoKU5wo= X-Gm-Message-State: AOJu0YwGfTzLLIf455hjYoL5Kkk18qoevLcCUyGwobTUBUtI6DRXYxm7 RdCURZfF4oEe1PBpIxWzCGDIidlRIfmGHwXBU6AObPnZ+muzeU/6 X-Google-Smtp-Source: AGHT+IFJh5lUOm3zPWjW95XMM3LZyBCZcPP8btztjAosQyQNSGfD7Eqib2MZT9tvBpFlOb29FlrPdw== X-Received: by 2002:a05:6e02:1fc5:b0:36a:2fc3:3e0a with SMTP id dj5-20020a056e021fc500b0036a2fc33e0amr1834684ilb.3.1712641656692; Mon, 08 Apr 2024 22:47:36 -0700 (PDT) Received: from smtpclient.apple ([2601:641:300:4910:b561:5293:aa5:4618]) by smtp.gmail.com with ESMTPSA id g4-20020a633744000000b005f05b06229dsm7515340pgn.41.2024.04.08.22.47.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Apr 2024 22:47:36 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: bug#70299: 30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting From: Yuan Fu In-Reply-To: <86y19nw1mh.fsf@gnu.org> Date: Mon, 8 Apr 2024 22:47:24 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <09BC30DC-A05E-4FF9-900F-C510C2AC04CE@gmail.com> References: <86y19nw1mh.fsf@gnu.org> To: Eli Zaretskii X-Mailer: Apple Mail (2.3731.700.6) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70299 Cc: Martin , 70299@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Apr 8, 2024, at 10:23 PM, Eli Zaretskii wrote: >=20 >> Date: Tue, 9 Apr 2024 00:43:57 +0100 >> From: Martin via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> - emacs -Q; >> - M-x treesit-install-language-grammar >> - go >> - github.com/tree-sitter/tree-sitter-go >>=20 >> - Open up a new buffer and use go-ts-mode >> - Write some go-code=20 >> ``` >> package my_pkg >> type myStruct struct {} >> func MyFunc(x context.Context) error {} >> ``` >> - Observe that there is no syntax highlighting >> - Observe that treesit-explore-mode seems to work properly >> - Conclude that there is something wrong with go-ts-mode's >> highlighting. There is highlighting with tree-sitter-go v0.19.1, but >> that grammar also seems to come with some bugs. >=20 > Isn't this a duplicate of bug#70296? Yeah, Martin contacted me on Reddit because he didn=E2=80=99t know how = to report this issue, and I told him he can use M-x bug-report-emacs, = which he did. Thanks Martin! Meanwhile I wrote a patch and sent it in bug#70296. Let me merge these = two reports. Yuan= From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 09 07:56:23 2024 Received: (at 70299) by debbugs.gnu.org; 9 Apr 2024 11:56:23 +0000 Received: from localhost ([127.0.0.1]:48533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruA5O-0006Eo-Vj for submit@debbugs.gnu.org; Tue, 09 Apr 2024 07:56:23 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:47135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruA5M-0006Eb-Q6 for 70299@debbugs.gnu.org; Tue, 09 Apr 2024 07:56:22 -0400 Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-5dca1efad59so3902828a12.2 for <70299@debbugs.gnu.org>; Tue, 09 Apr 2024 04:56:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1712663767; x=1713268567; 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=OybQONTXkliy8LNNb1LT7U/SMVJF73IG8kE2TX9WfvY=; b=Oghlg4D1YRFcKLFWUaRemqYTUnbYjANNQlLMOh1LpsJ4cpXLm1deMVkiwXKJ+dEbjT 1ykVjoFZNNuswI4vnvcjqSEowZ0mp4okXwjpWnIKQMZ3uFpzsy6nUza8RIp2airKsh0L Qk+0afDmCLdFjJ4gVcXbd0svxC9iBIubDbDNDMfNkSHeQg0IpY6cRhbYHdPwQC+UOYJ9 lZICP8T8LxE7FtFVN87Xanpm41ZbLZ/VmyGlLjXaWtxGcisfRoS76Pojwua/WhWUrhts mBqQh72kd/PJqS4P0FNkleA9eA1PsnQocs77cwcaajpumGDbGY8JMyOLq3VypuSrHKUm 5sDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712663767; x=1713268567; 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=OybQONTXkliy8LNNb1LT7U/SMVJF73IG8kE2TX9WfvY=; b=I62XHJCIxFksBChvkJBOqpaxcwidL5ShzyWgn2w9vQUezv4f7Zl7eeu9i0GhGanHZh PKuNa7u6UwZtO2U2gZSF12NXMS4KQnFQNpvv/YtdHpJz0f2B6kQGuFJurwsaAMDdZHKK chfA9UWuz6JzoXdLMHEKHqjFysjAjgjWpFADgXcpLZJINk5zqVV/QcaMmTnERjSZyfOJ IzgV1hxSclYIuK/WULE47N+1vSm6KJ0nW/dSHKnx76Nswvc8lg08EhaMVIYxGHqIc+iG pwUvRH3DnmQOTnU7yjhtQe+ZR6a5i28jjrzj4PLxNvcYwUs6qMNjqSwcZ0vKc5mNR43Q 42Dw== X-Forwarded-Encrypted: i=1; AJvYcCVRn2x3A3B7+bpfFRu8xH+xmuHaPRn4v9ZVnEaPFwsn1eQOmTFg9J2Ylto0glqIPxg1f7XX9g4wyJzOAyNod5glhDAxJbk= X-Gm-Message-State: AOJu0YymEN4FnCWubAoDk2N1d0afSsP7LBgmPymeiFA1tA8EdSGaoEcJ 0asfjPZMHA8vMPRK6H9R4RTBWXmS1fHuqxzI6grjRZcj57U/M5YpUOE6NpqzDXpsSU2afQdsQZ3 zqAeX6yAKZdbLH7Qz972uIzspFR8= X-Google-Smtp-Source: AGHT+IGj99Y22R0zfl1LxEpe/6IzScGT7Y3lZiXAWJrF/GExWjLysLj8I8cmzTPgLMaUgCfGR/gBpQi0CuaKiIYLVb4= X-Received: by 2002:a05:6a20:430c:b0:1a7:a72c:6f4 with SMTP id h12-20020a056a20430c00b001a7a72c06f4mr1830643pzk.41.1712663766664; Tue, 09 Apr 2024 04:56:06 -0700 (PDT) MIME-Version: 1.0 References: <86y19nw1mh.fsf@gnu.org> <09BC30DC-A05E-4FF9-900F-C510C2AC04CE@gmail.com> In-Reply-To: <09BC30DC-A05E-4FF9-900F-C510C2AC04CE@gmail.com> From: Martin Date: Tue, 9 Apr 2024 12:55:55 +0100 Message-ID: Subject: Re: bug#70299: 30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting To: Yuan Fu Content-Type: multipart/alternative; boundary="0000000000006e905c0615a89b74" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 70299 Cc: Eli Zaretskii , 70299@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --0000000000006e905c0615a89b74 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I tried manually applying that patch to my local emacs - it didn't seem to fix the issue of no syntax highlighting? On Tue, Apr 9, 2024 at 6:47=E2=80=AFAM Yuan Fu wrote: > > > > On Apr 8, 2024, at 10:23 PM, Eli Zaretskii wrote: > > > >> Date: Tue, 9 Apr 2024 00:43:57 +0100 > >> From: Martin via "Bug reports for GNU Emacs, > >> the Swiss army knife of text editors" > >> > >> - emacs -Q; > >> - M-x treesit-install-language-grammar > >> - go > >> - github.com/tree-sitter/tree-sitter-go > >> > >> - Open up a new buffer and use go-ts-mode > >> - Write some go-code > >> ``` > >> package my_pkg > >> type myStruct struct {} > >> func MyFunc(x context.Context) error {} > >> ``` > >> - Observe that there is no syntax highlighting > >> - Observe that treesit-explore-mode seems to work properly > >> - Conclude that there is something wrong with go-ts-mode's > >> highlighting. There is highlighting with tree-sitter-go v0.19.1, but > >> that grammar also seems to come with some bugs. > > > > Isn't this a duplicate of bug#70296? > > Yeah, Martin contacted me on Reddit because he didn=E2=80=99t know how to= report > this issue, and I told him he can use M-x bug-report-emacs, which he did. > Thanks Martin! > > Meanwhile I wrote a patch and sent it in bug#70296. Let me merge these tw= o > reports. > > Yuan --0000000000006e905c0615a89b74 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I tried manually applying=C2=A0that patch to my local emac= s - it didn't seem to fix the issue of no syntax highlighting?
--0000000000006e905c0615a89b74-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 09 09:08:29 2024 Received: (at 70299) by debbugs.gnu.org; 9 Apr 2024 13:08:29 +0000 Received: from localhost ([127.0.0.1]:48645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruBDA-00008y-FU for submit@debbugs.gnu.org; Tue, 09 Apr 2024 09:08:28 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:55374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruBD8-00008k-KV for 70299@debbugs.gnu.org; Tue, 09 Apr 2024 09:08:27 -0400 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1e2b137d666so41151385ad.2 for <70299@debbugs.gnu.org>; Tue, 09 Apr 2024 06:08:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1712668093; x=1713272893; 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=xSSEuRdPsAFQv/Xnslz31zCx7082O92E9KdpURvodnU=; b=JgbcQK+0v7FWn6TOx0ImlHRKXy2VHrxluzQQcq6SZW54ujWtPpCBOTdwTtSf8zF65P oeCGyzp7To9HX4Jv++Jnsj4myzOH4BHkl5Cb/x/09aWF2Ta3t/EOU8K/UMjz+fSmwZBU xHQiiBkW1fFA1jysbv78yTlT0NqzDW/gA8QzuFNmrhkuuCzvyK8/5J7A5AzTdrQFD91t q6LvrwH/matbET/u+tcvP/0ejzeGQrZjPXbeTM5tJyNqnw3Nd46oiBTRbMc42V+vRp1t lrne7ppVxGjizudugwgRCgOx/LyU5LwHLlawodX/9GPmQCRChHpu5FyDo/FcLOtP9Z6I ygMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712668093; x=1713272893; 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=xSSEuRdPsAFQv/Xnslz31zCx7082O92E9KdpURvodnU=; b=hYp4tI4p8dIpuFBMUVg+Am0uxVbZdjtV3mvrxByBpM1GbUBAXp6+xEB+1JgViZtlnC 6VFQVQdiBYy+11eKLiJH+yqNfnca7/chtFXo3TYOn3JxDXQRXEa2VqmM/28/cEkf/57z tne2fCLG/WhoLhQVXBf5+gkdBCvvYGRyrmfms0Hqo1kwLnIqIfzMCObTwt6t7dneL1gk LYJnMhO0iEI8lcv5tevNQewlXEpnlznVy70FJWqLtp0CtQeAphi19sDJGLBR4Xtbl8vm ra1gkcUM6FID8PgLFnI6rp7BI8Rt7m8ZEr5NtZpvD6RzvlT8N2RkpE9LzDVsaWHyVOcA MrbQ== X-Forwarded-Encrypted: i=1; AJvYcCVZGIji8J4+OfROpfAho2YWmgqfUUsKXuGIp0umLIStpwz9ld3XOdmTu57osYkFys/yztn3DAwuzdPkmmeelvsWaki8/U4= X-Gm-Message-State: AOJu0YyMVCUNsa2jpoMe3LPFsXz7mmLavcqnvbcs7xI8ikTQqFn+uouX v72kG4bPdsUvNffr9JlVJyvhxswnu2X4JbXFyVLTAqeWz5/SS+D0zqFN4wj4IPuKInmOF/ydnea iCuQQQfLvl2dmx55hph9ZAdPoCo8= X-Google-Smtp-Source: AGHT+IEtYKJWnaXQbaeXOdoLuEKSZh4bRdLOICnjpG4E1T3IXvQ5AIYrtrvEs6YesKYyamqaO+SuUZqckGPbgDmOuWU= X-Received: by 2002:a17:902:ce89:b0:1e4:24bc:426f with SMTP id f9-20020a170902ce8900b001e424bc426fmr6577333plg.24.1712668092515; Tue, 09 Apr 2024 06:08:12 -0700 (PDT) MIME-Version: 1.0 References: <86y19nw1mh.fsf@gnu.org> <09BC30DC-A05E-4FF9-900F-C510C2AC04CE@gmail.com> In-Reply-To: From: Martin Date: Tue, 9 Apr 2024 14:08:01 +0100 Message-ID: Subject: Re: bug#70299: 30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting To: Yuan Fu Content-Type: multipart/alternative; boundary="00000000000045cd880615a99d78" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 70299 Cc: Eli Zaretskii , 70299@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --00000000000045cd880615a99d78 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 t= o > fix the issue of no syntax highlighting? > > On Tue, Apr 9, 2024 at 6:47=E2=80=AFAM Yuan Fu wrote: > >> >> >> > On Apr 8, 2024, at 10:23 PM, Eli Zaretskii wrote: >> > >> >> Date: Tue, 9 Apr 2024 00:43:57 +0100 >> >> From: Martin via "Bug reports for GNU Emacs, >> >> the Swiss army knife of text editors" >> >> >> >> - emacs -Q; >> >> - M-x treesit-install-language-grammar >> >> - go >> >> - github.com/tree-sitter/tree-sitter-go >> >> >> >> - Open up a new buffer and use go-ts-mode >> >> - Write some go-code >> >> ``` >> >> package my_pkg >> >> type myStruct struct {} >> >> func MyFunc(x context.Context) error {} >> >> ``` >> >> - Observe that there is no syntax highlighting >> >> - Observe that treesit-explore-mode seems to work properly >> >> - Conclude that there is something wrong with go-ts-mode's >> >> highlighting. There is highlighting with tree-sitter-go v0.19.1, but >> >> that grammar also seems to come with some bugs. >> > >> > Isn't this a duplicate of bug#70296? >> >> Yeah, Martin contacted me on Reddit because he didn=E2=80=99t know how t= o report >> this issue, and I told him he can use M-x bug-report-emacs, which he did= . >> Thanks Martin! >> >> Meanwhile I wrote a patch and sent it in bug#70296. Let me merge these >> two reports. >> >> Yuan > > --00000000000045cd880615a99d78 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I can see this in *Messages*

Error during redispla= y: (jit-lock-function 6092) signaled (treesit-query-error "Node type e= rror at" 150 "(function_declaration name: (identifier) @font-lock= -function-name-face) (method_declaration name: (field_identifier) @font-loc= k-function-name-face) (method_spec name: (field_identifier) @font-lock-func= tion-name-face) (field_declaration name: (field_identifier) @font-lock-prop= erty-name-face) (parameter_declaration name: (identifier) @font-lock-variab= le-name-face) (short_var_declaration left: (expression_list (identifier) @f= ont-lock-variable-name-face (\",\" (identifier) @font-lock-variab= le-name-face) *)) (var_spec name: (identifier) @font-lock-variable-name-fac= e (\",\" name: (identifier) @font-lock-variable-name-face) *)&quo= t; "Debug the query with `treesit-query-validate'")

--00000000000045cd880615a99d78-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 09 19:22:43 2024 Received: (at 70299) by debbugs.gnu.org; 9 Apr 2024 23:22:43 +0000 Received: from localhost ([127.0.0.1]:51766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruKnb-0004x0-0M for submit@debbugs.gnu.org; Tue, 09 Apr 2024 19:22:43 -0400 Received: from mail-4323.proton.ch ([185.70.43.23]:24841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruKnZ-0004wF-Bq for 70299@debbugs.gnu.org; Tue, 09 Apr 2024 19:22:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjt.dev; s=protonmail2; t=1712704947; x=1712964147; bh=Rx5wc3joa1J16pb6dEqV1wpnJAfAaZWnVfkS01lDlok=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=lwYB1bPixvqs2w1+tmvkN9GmbSoF4OY2gKwDbb7eDmQuJXmZ5+IpHJ5lAHk3teObz DMQ7iaUYtiL+izVs0jVrt6JBJkIHTtXrz/uC6UnXch9Egw9la2OOspYl0NrLYbEWtD OYW+aeYmVk7E9pUTgTRAtHtAL+/etBD5awOwp6pknqbEb1J2vzbJvF1n1ltSvUCbQK MIPf7vjfJD0LDED2maIqQ44rjaLiCxdop0nu1peB4fv8k7Bh6sGCQ3Q026+kDfQeZm /WwnaR1rxqEA+JY0VjUQFaYwBHU7qrKKj24Nj9bzwga+BljbanBN0qYLLJ7ZBvqwKq iqzD0RSvpMiMg== Date: Tue, 09 Apr 2024 23:22:18 +0000 To: Martin From: Randy Taylor Subject: Re: bug#70299: 30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting Message-ID: In-Reply-To: References: <86y19nw1mh.fsf@gnu.org> <09BC30DC-A05E-4FF9-900F-C510C2AC04CE@gmail.com> Feedback-ID: 44397038:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70299 Cc: Yuan Fu , 70299@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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* >=20 > > Error during redisplay: (jit-lock-function 6092) signaled (treesit-quer= y-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-l= ock-variable-name-face) (short_var_declaration left: (expression_list (iden= tifier) @font-lock-variable-name-face (\",\" (identifier) @font-lock-variab= le-name-face) *)) (var_spec name: (identifier) @font-lock-variable-name-fac= e (\",\" name: (identifier) @font-lock-variable-name-face) *)" "Debug the q= uery with `treesit-query-validate'") >=20 >=20 > On Tue, Apr 9, 2024 at 12:55=E2=80=AFPM Martin wrote: >=20 > > 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? From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 10 04:39:03 2024 Received: (at 70299) by debbugs.gnu.org; 10 Apr 2024 08:39:03 +0000 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 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 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) MIME-Version: 1.0 References: <86y19nw1mh.fsf@gnu.org> <09BC30DC-A05E-4FF9-900F-C510C2AC04CE@gmail.com> In-Reply-To: From: Martin Date: Wed, 10 Apr 2024 09:38:31 +0100 Message-ID: Subject: Re: bug#70299: 30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting To: dev@rjt.dev Content-Type: multipart/alternative; boundary="000000000000511b5f0615b9f7d4" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 70299 Cc: Yuan Fu , 70299@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --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 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-- From unknown Sat Aug 16 18:46:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 09 May 2024 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator