aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-14 07:33:17 -0500
committerCraig Jennings <c@cjennings.net>2026-05-14 07:33:17 -0500
commita2ab3e917d131af46fd3eb193f07d3cd3a5a2748 (patch)
treeed84bbfca9b28ad02c5e9dcfdf1db7798f734a1d
parenta11e3ddad08a570cafc822e739be38a70bf1f8e2 (diff)
downloaddotemacs-a2ab3e917d131af46fd3eb193f07d3cd3a5a2748.tar.gz
dotemacs-a2ab3e917d131af46fd3eb193f07d3cd3a5a2748.zip
chore(todo): close Python tree-sitter predicate bug as upstream-resolved
The treesit-query-error redisplay flood diagnosed 2026-04-26 no longer reproduces. Versions: emacs 30.2-3 (was 30.2-2 at the time of the investigation, upgraded 2026-05-03), tree-sitter 0.26.8 (unchanged). The upstream Emacs version string is unchanged, but the Arch package revision bump most likely carries a downstream patch to treesit.c's predicate translation. Verified by re-running the documented repro: the exact failing query from python.el captures cleanly via `treesit-query-capture', and `font-lock-ensure' on a real .py file under `python-ts-mode' returns with no `treesit-query-error'. No local override needed. Mark the todo.org entry DONE, fix the stale `inbox/' path on the investigation-doc link (file now lives under `docs/'), update the cross-reference from the grammar-bootstrap task to note this no longer blocks it, and append a RESOLVED 2026-05-14 footer to the investigation doc so future-me can see why it got closed.
-rw-r--r--docs/python-treesit-predicate-mismatch.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/python-treesit-predicate-mismatch.txt b/docs/python-treesit-predicate-mismatch.txt
index 78f89b81c..c56886aff 100644
--- a/docs/python-treesit-predicate-mismatch.txt
+++ b/docs/python-treesit-predicate-mismatch.txt
@@ -194,3 +194,26 @@ This is upstream / system-level. Not a .emacs.d bug. Three fix surfaces:
- Local override in .emacs.d (workaround only)
Fixing in .emacs.d is a workaround, not a root-cause fix. Document it as such.
+
+
+RESOLVED 2026-05-14
+-------------------
+Bug no longer reproduces against the current versions:
+ - emacs 30.2-3 (Arch package; upgraded from 30.2-2 on 2026-05-03)
+ - tree-sitter 0.26.8-1 (unchanged from the original investigation)
+
+The exact failing query from the investigation (python.el lines
+1188-1190, the keyword + self-as-keyword block) now runs cleanly
+under `treesit-query-capture'. `font-lock-ensure' on a real Python
+file under `python-ts-mode' completes with no `treesit-query-error'.
+No local override applied to `modules/prog-python.el'.
+
+The upstream Emacs version string is unchanged (30.2 in both), but
+the Arch package revision bumped from -2 to -3 on 2026-05-03 -- most
+likely carrying a downstream patch that fixed the treesit.c predicate
+translation. This matches option A from the fix-options list above
+("WAIT FOR UPSTREAM EMACS FIX").
+
+If the flood ever returns, restart the investigation from the
+REPRODUCTION block above against whichever emacs / tree-sitter
+versions are then installed.