GNU bug report logs - #70299
30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Martin <martin.tang365@HIDDEN>; Keywords: patch; merged with #70296; dated Tue, 9 Apr 2024 04:47:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 70299 <at> debbugs.gnu.org:


Received: (at 70299) by debbugs.gnu.org; 9 Apr 2024 05:47:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 09 01:47:55 2024
Received: from localhost ([127.0.0.1]:48098 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ru4Ko-00024i-9Q
	for submit <at> 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 <casouri@HIDDEN>) id 1ru4Kk-000238-C9
 for 70299 <at> 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 <at> 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@HIDDEN no
 highlighting
From: Yuan Fu <casouri@HIDDEN>
In-Reply-To: <86y19nw1mh.fsf@HIDDEN>
Date: Mon, 8 Apr 2024 22:47:24 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <09BC30DC-A05E-4FF9-900F-C510C2AC04CE@HIDDEN>
References: <CAJ5J3Jee1rQdPh_1=Ht_EEy84MEZVZbGNVtiATqHMoyFvKZxxg@HIDDEN>
 <86y19nw1mh.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3731.700.6)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70299
Cc: Martin <martin.tang365@HIDDEN>, 70299 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)



> On Apr 8, 2024, at 10:23 PM, Eli Zaretskii <eliz@HIDDEN> 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" <bug-gnu-emacs@HIDDEN>
>>=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=




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70299; Package emacs. Full text available.
Merged 70296 70299. Request was from Yuan Fu <casouri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 70299 <at> debbugs.gnu.org:


Received: (at 70299) by debbugs.gnu.org; 9 Apr 2024 05:23:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 09 01:23:46 2024
Received: from localhost ([127.0.0.1]:48076 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ru3xR-0008Ay-PL
	for submit <at> 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 <eliz@HIDDEN>) id 1ru3xM-00089z-Q8
 for 70299 <at> 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 <eliz@HIDDEN>)
 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@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Martin <martin.tang365@HIDDEN>
In-Reply-To: <CAJ5J3Jee1rQdPh_1=Ht_EEy84MEZVZbGNVtiATqHMoyFvKZxxg@HIDDEN>
 (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#70299: 30.0.50;
 go-ts-mode + tree-sitter-go@HIDDEN no highlighting
References: <CAJ5J3Jee1rQdPh_1=Ht_EEy84MEZVZbGNVtiATqHMoyFvKZxxg@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70299
Cc: 70299 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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" <bug-gnu-emacs@HIDDEN>
> 
> - 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?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70299; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Apr 2024 04:46:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 09 00:46:07 2024
Received: from localhost ([127.0.0.1]:48063 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ru3Mz-0004UY-Lf
	for submit <at> 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 <martin.tang365@HIDDEN>) id 1rtyf6-0002L1-LY
 for submit <at> 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 <martin.tang365@HIDDEN>)
 id 1rtyeq-00047h-OI
 for bug-gnu-emacs@HIDDEN; 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 <martin.tang365@HIDDEN>)
 id 1rtyeo-00035s-9d
 for bug-gnu-emacs@HIDDEN; Mon, 08 Apr 2024 19:44:12 -0400
Received: by mail-pg1-x530.google.com with SMTP id
 41be03b00d2f7-5f034b4dcecso3379722a12.1
 for <bug-gnu-emacs@HIDDEN>; 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 <martin.tang365@HIDDEN>
Date: Tue, 9 Apr 2024 00:43:57 +0100
Message-ID: <CAJ5J3Jee1rQdPh_1=Ht_EEy84MEZVZbGNVtiATqHMoyFvKZxxg@HIDDEN>
Subject: 30.0.50; go-ts-mode + tree-sitter-go@HIDDEN no highlighting
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000ad950206159e6175"
Received-SPF: pass client-ip=2607:f8b0:4864:20::530;
 envelope-from=martin.tang365@HIDDEN; 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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

<div dir=3D"ltr">--text follows this line--<br><br>- emacs -Q;<br>- M-x tre=
esit-install-language-grammar<br>=C2=A0 - go<br>=C2=A0 - <a href=3D"http://=
github.com/tree-sitter/tree-sitter-go">github.com/tree-sitter/tree-sitter-g=
o</a><br><br>- Open up a new buffer and use go-ts-mode<br>- Write some go-c=
ode <br>```<br>package my_pkg<br>type myStruct struct {}<br>func MyFunc(x c=
ontext.Context) error {}<br>```<br>- Observe that there is no syntax highli=
ghting<br>- Observe that treesit-explore-mode seems to work properly<br>- C=
onclude that there is something wrong with go-ts-mode&#39;s<br>=C2=A0 highl=
ighting. There is highlighting with tree-sitter-go v0.19.1, but<br>=C2=A0 t=
hat grammar also seems to come with some bugs.<br><br><br>In GNU Emacs 30.0=
.50 (build 1, aarch64-apple-darwin23.4.0, NS<br>=C2=A0appkit-2487.50 Versio=
n 14.4.1 (Build 23E224)) of 2024-04-08 built on<br>=C2=A0MF9VWRYQFN<br>Wind=
owing system distributor &#39;Apple&#39;, version 10.3.2487<br>System Descr=
iption: =C2=A0macOS 14.4.1<br><br>Configured using:<br>=C2=A0&#39;configure=
 --disable-dependency-tracking --disable-silent-rules<br>=C2=A0--enable-loc=
allisppath=3D/opt/homebrew/share/emacs/site-lisp<br>=C2=A0--infodir=3D/opt/=
homebrew/Cellar/emacs-plus@30/30.0.50/share/info/emacs<br>=C2=A0--prefix=3D=
/opt/homebrew/Cellar/emacs-plus@30/30.0.50 --with-xml2<br>=C2=A0--with-gnut=
ls --without-compress-install --without-dbus<br>=C2=A0--without-imagemagick=
 --with-modules --with-rsvg --with-webp --with-ns<br>=C2=A0--disable-ns-sel=
f-contained &#39;CFLAGS=3D-Os -w -pipe<br>=C2=A0-mmacosx-version-min=3D14<b=
r>=C2=A0-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk<br>=
=C2=A0-DFD_SETSIZE=3D10000 -DDARWIN_UNLIMITED_SELECT&#39;<br>=C2=A0&#39;CPP=
FLAGS=3D-I/opt/homebrew/opt/icu4c/include<br>=C2=A0-I/opt/homebrew/opt/sqli=
te/include -I/opt/homebrew/opt/readline/include<br>=C2=A0-isystem/opt/homeb=
rew/include -F/opt/homebrew/Frameworks<br>=C2=A0-isysroot/Library/Developer=
/CommandLineTools/SDKs/MacOSX14.sdk&#39;<br>=C2=A0&#39;LDFLAGS=3D-L/opt/hom=
ebrew/opt/icu4c/lib -L/opt/homebrew/opt/sqlite/lib<br>=C2=A0-L/opt/homebrew=
/opt/readline/lib -L/opt/homebrew/lib<br>=C2=A0-F/opt/homebrew/Frameworks -=
Wl,-headerpad_max_install_names<br>=C2=A0-isysroot/Library/Developer/Comman=
dLineTools/SDKs/MacOSX14.sdk&#39;&#39;<br><br>Configured features:<br>ACL G=
IF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS<br>PDUMPER P=
NG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER<br>WEBP XIM ZL=
IB<br><br>Important settings:<br>=C2=A0 value of $LANG: en_GB.UTF-8<br>=C2=
=A0 locale-coding-system: utf-8-unix<br><br>Major mode: Go<br><br>Minor mod=
es in effect:<br>=C2=A0 treesit-explore-mode: t<br>=C2=A0 tooltip-mode: t<b=
r>=C2=A0 global-eldoc-mode: t<br>=C2=A0 show-paren-mode: t<br>=C2=A0 electr=
ic-indent-mode: t<br>=C2=A0 mouse-wheel-mode: t<br>=C2=A0 tool-bar-mode: t<=
br>=C2=A0 menu-bar-mode: t<br>=C2=A0 file-name-shadow-mode: t<br>=C2=A0 glo=
bal-font-lock-mode: t<br>=C2=A0 font-lock-mode: t<br>=C2=A0 blink-cursor-mo=
de: t<br>=C2=A0 minibuffer-regexp-mode: t<br>=C2=A0 line-number-mode: t<br>=
=C2=A0 indent-tabs-mode: t<br>=C2=A0 transient-mark-mode: t<br>=C2=A0 auto-=
composition-mode: t<br>=C2=A0 auto-encryption-mode: t<br>=C2=A0 auto-compre=
ssion-mode: t<br><br>Load-path shadows:<br>None found.<br><br>Features:<br>=
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired<br>di=
red-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068<br>e=
pg-config gnus-util text-property-search time-date subr-x mm-decode<br>mm-b=
odies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader<br>sendm=
ail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils python<br>rx p=
roject byte-opt gv bytecomp byte-compile compat pcase comint<br>ansi-osc ri=
ng ansi-color cl-seq go-ts-mode treesit vc-git diff-mode<br>easy-mmode vc-d=
ispatcher cl-loaddefs cl-lib rmc iso-transl tooltip cconv<br>eldoc paren el=
ectric uniquify ediff-hook vc-hooks lisp-float-type<br>elisp-mode mwheel te=
rm/ns-win ns-win ucs-normalize mule-util<br>term/common-win tool-bar dnd fo=
ntset image regexp-opt fringe<br>tabulated-list replace newcomment text-mod=
e lisp-mode prog-mode register<br>page tab-bar menu-bar rfn-eshadow isearch=
 easymenu timer select<br>scroll-bar mouse jit-lock font-lock syntax font-c=
ore term/tty-colors<br>frame minibuffer nadvice seq simple cl-generic indon=
esian philippine<br>cham georgian utf-8-lang misc-lang vietnamese tibetan t=
hai tai-viet lao<br>korean japanese eucjp-ms cp51932 hebrew greek romanian =
slovak czech<br>european ethiopic indian cyrillic chinese composite emoji-z=
wj charscript<br>charprop case-table epa-hook jka-cmpr-hook help abbrev oba=
rray oclosure<br>cl-preloaded button loaddefs theme-loaddefs faces cus-face=
 macroexp<br>files window text-properties overlay sha1 md5 base64 format en=
v<br>code-pages mule custom widget keymap hashtable-print-readable backquot=
e<br>threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs)<br=
><br>Memory information:<br>((conses 16 104850 12135) (symbols 48 7868 0) (=
strings 32 21254 2120)<br>=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=
)<br>=C2=A0(buffers 992 13))<br></div>

--000000000000ad950206159e6175--




Acknowledgement sent to Martin <martin.tang365@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#70299; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 9 Apr 2024 06:00:05 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.