From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72034: 29.3; python-ts-mode navigation fails Date: Wed, 10 Jul 2024 15:13:12 +0300 Message-ID: <864j8xo36v.fsf@gnu.org> References: <0OlNsnT6jtdN3OR49HQIKOSPF0TS3E1EdO7dza_rU2zFv1ocuGvizr3QkcJj3dj61a8lc_DxbsK4lvK8Gk2cpyodUY1zJf1MS8vBfPhsZxc=@loderhose.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4088"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72034@debbugs.gnu.org To: Tim Loderhose Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 10 14:14:09 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 1sRWD3-0000qL-6G for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jul 2024 14:14:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRWCr-0005ZF-Su; Wed, 10 Jul 2024 08:13: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 1sRWCq-0005Z3-Sc for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 08:13:57 -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 1sRWCq-0006SP-Jn for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 08:13:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRWCw-00007U-FB for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 08:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jul 2024 12:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72034 X-GNU-PR-Package: emacs Original-Received: via spool by 72034-submit@debbugs.gnu.org id=B72034.1720613615406 (code B ref 72034); Wed, 10 Jul 2024 12:14:02 +0000 Original-Received: (at 72034) by debbugs.gnu.org; 10 Jul 2024 12:13:35 +0000 Original-Received: from localhost ([127.0.0.1]:55060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRWCV-00006U-2g for submit@debbugs.gnu.org; Wed, 10 Jul 2024 08:13:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRWCQ-00006D-JD for 72034@debbugs.gnu.org; Wed, 10 Jul 2024 08:13:33 -0400 Original-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 ) id 1sRWCE-0006Oh-Cm; Wed, 10 Jul 2024 08:13:18 -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=IEDpbhHn2S5MEJzK8ebGjfThiOe3epyn3uAVmsdCNug=; b=jLEZBQAU9L0x DGkawQVat62sunKS9ca5rO9IjdjpFB1nLX48l6Ma27VBSz5WSI0+3R/EvtLmiKH9GWiu0eyof6VpC m8378ThDW1MNI9vhHcEVPhZfvqxB8xsyC7qJ23WD/HHRVG+CzuLrt9CkOAVrSZ9HLDLq03as2V8VU 6gxp9ERS0gOjU3djMp7NqDcsSHQoUjVJ0Zfd+xzbA/pph7Kp/4D1MFTvk1XCAxmB4kaWgI6RF2SCD o2AhA5WDeOqj/Ba2PTorAZP7qIXhCJBjqGpqaAFd8dJHS0jXld3iTR2vUAfHwKU1CXV2Imv0OF9UN nmLNYxlvVZxnOHgXrvo9rg==; In-Reply-To: <0OlNsnT6jtdN3OR49HQIKOSPF0TS3E1EdO7dza_rU2zFv1ocuGvizr3QkcJj3dj61a8lc_DxbsK4lvK8Gk2cpyodUY1zJf1MS8vBfPhsZxc=@loderhose.com> (message from Tim Loderhose on Wed, 10 Jul 2024 09:45:01 +0000) 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:288676 Archived-At: > Date: Wed, 10 Jul 2024 09:45:01 +0000 > From: Tim Loderhose > > python-nav-forward-defun doesn't work properly in python-ts-mode, for > example with this file: > https://raw.githubusercontent.com/timlod/onset-fingerprinting/6c8f9bd3b82398c9af3519036e0d5a550ad3bae7/onset_fingerprinting/data.py > > > Specifically, at some point it will stop navigating, even though there > are still function definitions to traverse (other times I saw it skipped > some definitions before stopping altogether). I noticed that this > usually happens after some point in the buffer, but I haven't been able > to nail it down exactly. My hunch is that it could be related to > decorators (e.g. @classmethod) or type hints, or both. I can reproduce this in Emacs 29, but not on the current emacs-30 release branch, which will eventually become Emacs 30. So I guess we already fixed that meanwhile. Can you try building the development code of Emacs and see if the problem goes away? Thanks.