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#60127: treesit-end-of-defun: possible bug with clojure grammar Date: Thu, 22 Dec 2022 00:55:38 -0800 Message-ID: References: <87sfhf5ghj.fsf@dfreeman.email> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) 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="27833"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60127@debbugs.gnu.org To: Danny Freeman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 22 09:56:22 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 1p8HNF-00071J-Pv for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Dec 2022 09:56:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8HMz-00012X-3g; Thu, 22 Dec 2022 03:56:05 -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 1p8HMw-0000y9-E4 for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2022 03:56: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 1p8HMw-0004jU-51 for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2022 03:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p8HMw-0004bE-1S for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2022 03:56:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87sfhf5ghj.fsf@dfreeman.email> Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Dec 2022 08:56: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.167169934817669 (code B ref 60127); Thu, 22 Dec 2022 08:56:02 +0000 Original-Received: (at 60127) by debbugs.gnu.org; 22 Dec 2022 08:55:48 +0000 Original-Received: from localhost ([127.0.0.1]:57080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8HMi-0004av-85 for submit@debbugs.gnu.org; Thu, 22 Dec 2022 03:55:48 -0500 Original-Received: from mail-pj1-f42.google.com ([209.85.216.42]:36863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8HMg-0004an-0A for 60127@debbugs.gnu.org; Thu, 22 Dec 2022 03:55:46 -0500 Original-Received: by mail-pj1-f42.google.com with SMTP id q17-20020a17090aa01100b002194cba32e9so5083663pjp.1 for <60127@debbugs.gnu.org>; Thu, 22 Dec 2022 00:55:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=kgcqrblpI5iWOcB4yZI4ZOS3VXQ96D/+i98veoX9vh0=; b=ShBQrs3U2uGrj3WLKfdDTNXfrrIQYsa33NXhlfsRz65QmHS3zEzeqbKy8+yQrN8ioh VeJnZaU4QqbA7CcOyETgiqpofQGt4+G9cFWXh5qBu1HOTo/W7C/JwQ6OYcCIO0IppLuk 6HhvNt4gdcb0FJJfRnnykP40aVhCzuOKNL8UQPSszP4tCG+8K8loMIrpfjbO37cK+AEA cfl2QZrhvFzhFEHNdb+45L1bLznbXCS0RavX2JNoVu6xlDC/JzagKJAszVFwj9aHl4+3 tJLrwmPIffbuSnHsjCzk1eWcgvgcOb25NhI1xrQtKVZZZo4jfRBc3Y1XPIli/8YtowZJ fflg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kgcqrblpI5iWOcB4yZI4ZOS3VXQ96D/+i98veoX9vh0=; b=dOYQh9KHt6xikSKmON+8U7//QT7i9ITf2G+oNlx9ykmpkTaxyfxXqWqdqEjYFLHy1c oph+qvunMHJsLxw/SCHHKj1iv4IBy8AXdsBfguFdpJRqbPjD541V/P5WCE59Ii9dEOW+ 1XY+myByDbXHusZR+AVbfVNkZ4mUY2tut+E3Ks1l7ZLSNGxuoEZCPYyFOMJL+NlKOQ67 BovTLQpzU99PVEHf8qt4UGTyGzAEY14TaTwTekEYmIuG+QcJSQ4AAk3xtJNXNFYha9u2 7nef2btkwnVepymLGWCbinbCDF2r85qTn5cVcCUH6xIn+c1VOBAY2hI8SaAxPCLh0KAb G7+Q== X-Gm-Message-State: AFqh2kpXIqGYL9CrLsF5cd6ZmhouBXXTxvZ/XUweVvR31q2CTUQ34b95 YiJ+JxmBNGA26/3TCHQo2tcG3of47jI= X-Google-Smtp-Source: AMrXdXtoJvViGyqm3dUNatTgC//0DMCu8395/Ct2YNh1aSZ9TxwLOixqzLIvMossjn2lzKjJ6cPpwA== X-Received: by 2002:a17:902:748b:b0:191:3c8:b2ab with SMTP id h11-20020a170902748b00b0019103c8b2abmr5297541pll.31.1671699340329; Thu, 22 Dec 2022 00:55:40 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id a3-20020a170902710300b00186b758c9fasm17167pll.33.2022.12.22.00.55.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Dec 2022 00:55:39 -0800 (PST) X-Mailer: Apple Mail (2.3696.120.41.1.1) 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:251652 Archived-At: Danny Freeman writes: > 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 similar >>> problem with bash before[1]. >>> >>> At this point there aren=E2=80=99t much we can do in Emacs. If I = find some 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. I think it=E2=80=99s pretty good (the reproduce), the author=E2=80=99s = modified program is even better. Let=E2=80=99s wait and see what tree-sitter=E2=80=99s = author have to say. Yuan