gdscript highlight query is broken #11755
Replies: 1 comment 1 reply
-
This is an issue with your environment rather than the queries. That log message means that the version of the gdscript tree-sitter parser and the queries is out of sync: the queries match on a "when" type that the version of the parser you're using doesn't expose. You can't copy the latest query file from this repository: the query file needs to be compatible with the parser version you have. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
With the latest
gdscript/highlights.scm
, I no longer have syntax highlighting for gd files. In the logs, I get this error:If I replace my file
runtime/queries/gdscript/highlights.scm
with the one from the previous commit:https://github.com/helix-editor/helix/blob/64c137bd3d7ac7f82f538f5dd520e3aa8bca0d1a/runtime/queries/gdscript/highlights.scm
Highlighting works properly again
Note that I did try the following:
hx --grammar fetch
andhx --grammar build
Neither worked
Reproduction Steps
I tried this:
file.gd
with contents:I expected this to happen:
Instead, this happened:
Helix log
I ran
hx -vv file.gd
and this was the only relevant output~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
COSMIC terminal
Installation Method
releases page (linux appimage)
Helix Version
helix 24.7 (079f544)
Beta Was this translation helpful? Give feedback.
All reactions