all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Loderhose <tim@loderhose.com>
To: 72034@debbugs.gnu.org
Subject: bug#72034: 29.3; python-ts-mode navigation fails
Date: Wed, 10 Jul 2024 09:45:01 +0000	[thread overview]
Message-ID: <0OlNsnT6jtdN3OR49HQIKOSPF0TS3E1EdO7dza_rU2zFv1ocuGvizr3QkcJj3dj61a8lc_DxbsK4lvK8Gk2cpyodUY1zJf1MS8vBfPhsZxc=@loderhose.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1615 bytes --]

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.

It does work properly using just python-mode. This is tested using
`emacs -q`, so this bug persists just on a clean Emacs 29.3.

I checked previous reports and believe this is probably related to
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60856, which isn't fixed yet.

In GNU Emacs 29.3 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.33,
cairo version 1.16.0) of 2024-06-08 built on pop-os
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Pop!_OS 22.04 LTS

Configured using:
'configure --with-native-compilation --with-json --without-mailutils
--without-pop'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
value of $LANG: en_GB.UTF-8
locale-coding-system: utf-8

[-- Attachment #2: Type: text/html, Size: 3178 bytes --]

             reply	other threads:[~2024-07-10  9:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-10  9:45 Tim Loderhose [this message]
2024-07-10 12:13 ` bug#72034: 29.3; python-ts-mode navigation fails Eli Zaretskii
2024-07-15  9:54   ` Tim Loderhose
2024-07-15 11:03     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='0OlNsnT6jtdN3OR49HQIKOSPF0TS3E1EdO7dza_rU2zFv1ocuGvizr3QkcJj3dj61a8lc_DxbsK4lvK8Gk2cpyodUY1zJf1MS8vBfPhsZxc=@loderhose.com' \
    --to=tim@loderhose.com \
    --cc=72034@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.