From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#70299: 30.0.50; go-ts-mode + tree-sitter-go@v0.20.0 no highlighting Date: Mon, 8 Apr 2024 22:47:24 -0700 Message-ID: <09BC30DC-A05E-4FF9-900F-C510C2AC04CE@gmail.com> References: <86y19nw1mh.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23411"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Martin , 70299@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 09 07:48:20 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 1ru4LE-0005pW-De for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Apr 2024 07:48:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ru4Kr-00025p-PE; Tue, 09 Apr 2024 01:47:57 -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 1ru4Kp-00025d-Vq for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2024 01:47:56 -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 1ru4Kp-0005XD-N7 for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2024 01:47:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ru4Kw-00025r-Gm for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2024 01:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Apr 2024 05:48:02 +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.17126416757994 (code B ref 70299); Tue, 09 Apr 2024 05:48:02 +0000 Original-Received: (at 70299) by debbugs.gnu.org; 9 Apr 2024 05:47:55 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: <86y19nw1mh.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.700.6) 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:282967 Archived-At: > 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=