From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Danny Freeman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60127: treesit-end-of-defun: possible bug with clojure grammar Date: Sat, 17 Dec 2022 10:47:58 -0500 Message-ID: <87a63m57vl.fsf@dfreeman.email> References: <42357D6B-C983-4B1F-8857-8C990E848750@gmail.com> <87k02q5dea.fsf@dfreeman.email> Reply-To: Danny Freeman Mime-Version: 1.0 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="39096"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60127@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 17 17:11:13 2022 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 1p6ZmL-000A2u-MN for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Dec 2022 17:11:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6ZmD-0003Pj-HY; Sat, 17 Dec 2022 11:11:06 -0500 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 1p6ZmA-0003PU-Me for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2022 11:11:02 -0500 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 1p6ZmA-0005DE-EW for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2022 11:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6ZmA-0002Xb-1D for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2022 11:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Danny Freeman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Dec 2022 16:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60127 X-GNU-PR-Package: emacs Original-Received: via spool by 60127-submit@debbugs.gnu.org id=B60127.16712934129746 (code B ref 60127); Sat, 17 Dec 2022 16:11:01 +0000 Original-Received: (at 60127) by debbugs.gnu.org; 17 Dec 2022 16:10:12 +0000 Original-Received: from localhost ([127.0.0.1]:56677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6ZlL-0002X8-PU for submit@debbugs.gnu.org; Sat, 17 Dec 2022 11:10:12 -0500 Original-Received: from out-12.mta0.migadu.com ([91.218.175.12]:18558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6ZlJ-0002X2-Di for 60127@debbugs.gnu.org; Sat, 17 Dec 2022 11:10:10 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-reply-to: <87k02q5dea.fsf@dfreeman.email> 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:251289 Archived-At: Yuan, >> Thank you very much for this detailed report! This seems to be some >> problem with either tree-sitter or tree-sitter-clojure, where >> treesit-node-first-child-for-pos gives wrong result. We=E2=80=99ve had s= imilar >> problem with bash before[1]. >> >> At this point there aren=E2=80=99t much we can do in Emacs. If I find so= me time >> I=E2=80=99ll make a reproduce recipe and submit an issue on tree-sitter-= clojure. >> >> [1] https://github.com/tree-sitter/tree-sitter-bash/issues/139 >> >> Yuan I have a c program that I believe reproduces the problem. I'm not sure how we will go about fixing it in tree-sitter-clojure, but at least we have a minimal way to re-create it. Here is a link to the issue I created: https://github.com/sogaiu/tree-sitter-clojure/issues/32 that also includes the c-program. I've also put it on my source hut https://paste.sr.ht/~dannyfreeman/8786059276c334036877159a5b0872cd2aa6fbc0= =20 If you find the time, I would appreciate it if you could confirm my findings. I'm a little in over my head with this bug I'm afraid. --=20 Danny Freeman