Syntax highlighting stops working when updating grammer for Dart maybe other languages too #11134
Unanswered
Queyrouzec
asked this question in
Troubleshooting
Replies: 1 comment
-
The line in the log
is caused by updating the parser. Often when you update a parser you need to update the queries as well because the nodes that the parser has no longer has the nodes the queries are trying to pattern match. The log error here is saying that helix/runtime/queries/dart/highlights.scm Lines 14 to 15 in 8229a40 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
syntax highlighting stops working when updating grammer. I tried multiple commits before and after the current one and the syntax highlighting stops working.
Reproduction Steps
I added this to the
language.toml
filethen ran
hx -g fetch && hx -g build
and it returned thisAfter my syntax highlight completely stopped. I'm not entirely sure if tree-sitter stopped.
this happens with all commits other than the current one.
I've also tried clearing out the entire runtime file and reinstalling Helix. Unfortunately nothing seems to work.
Here's a link to the dart repo
https://github.com/UserNobody14/tree-sitter-dart
Helix log
~/.cache/helix/helix.log
Platform
MacOs M3
Terminal Emulator
Iterm2, warp, default terminal
Installation Method
brew
Helix Version
24.3 (2cadec0)
Beta Was this translation helpful? Give feedback.
All reactions