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: <87cz8i58hv.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="31814"; 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:01:19 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 1p6Zck-00089d-CS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Dec 2022 17:01:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6Zca-0008R2-2g; Sat, 17 Dec 2022 11:01:08 -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 1p6ZcW-0008QE-DZ for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2022 11:01:05 -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 1p6ZcU-0003CH-BT for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2022 11:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6ZcU-0002Sp-63 for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2022 11:01: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:01:02 +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.16712928519456 (code B ref 60127); Sat, 17 Dec 2022 16:01:02 +0000 Original-Received: (at 60127) by debbugs.gnu.org; 17 Dec 2022 16:00:51 +0000 Original-Received: from localhost ([127.0.0.1]:56631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6ZcI-0002SR-S5 for submit@debbugs.gnu.org; Sat, 17 Dec 2022 11:00:51 -0500 Original-Received: from out-174.mta0.migadu.com ([91.218.175.174]:63152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6ZcH-0002SK-6v for 60127@debbugs.gnu.org; Sat, 17 Dec 2022 11:00:49 -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:251288 Archived-At: Danny Freeman writes: >> 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. https://paste.sr.ht/~dannyfreeman/8786059276c334036877159a5b0872cd2aa6fbc0 --=20 Danny Freeman