Open DamienCassou opened 3 days ago
Hm. I cannot reproduce this. I even wrote a test case matching yours.
If the last error is the one you actually see (the assertion failed error) , then I've fixed it already and this issue is just a casualty of the other one.
I can still reproduce using the latest commit in master. I'm using Emacs 30.0.91.
In the *Messages*
buffer, I also see:
Error during redisplay: (jit-lock-function 1) signaled (treesit-query-error "Structure error at" 52 "((arrow_function body:
((_ (sequence_expression left: (_) @combobulate-query-highlight-vibrant-veggie-face)))))" "Debug the query with `treesit-query-validate'")
That's a different error altogether. Are you using the proper grammar versions as per the readme?
I thought I wrote it in the issue's description but I didn't, sorry: I'm using the latest commit from master. This is what my GNU/Linux distribution provides.
Are you interested in such issues? If not, feel free to close the ticket.
Yes, but the version of tree-sitter and the grammars are very important. There's a table of grammar versions you must use. Does it happen if you use those?
I can't manage to be 100% sure but I think I switched back to grammar 0.20.1 and I can still reproduce the issue. If you know a way to ask for the grammar's version, I would happily use that.
I even wrote a test case matching yours.
All 649 unit tests pass, regardless of the version of javascript's grammar. Do you have a clue why?
Execute
You get a buffer containing:
M-b
andC-b
to move point between the(
and the"
M-<up>
Expected: The string "test" to replace the
console.log()
callActual:
(wrong-type-argument integerp #<marker ...>)
Actual:
transient-setup: Assertion failed: (and prefix (symbolp prefix))