GNU bug report logs - #72034
29.3; python-ts-mode navigation fails

Previous Next

Package: emacs;

Reported by: Tim Loderhose <tim <at> loderhose.com>

Date: Wed, 10 Jul 2024 10:00:04 UTC

Severity: normal

Found in version 29.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tim Loderhose <tim <at> loderhose.com>
Cc: 72034 <at> debbugs.gnu.org
Subject: bug#72034: 29.3; python-ts-mode navigation fails
Date: Wed, 10 Jul 2024 15:13:12 +0300
> Date: Wed, 10 Jul 2024 09:45:01 +0000
> From: Tim Loderhose <tim <at> loderhose.com>
> 
> 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.




This bug report was last modified 312 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.