helix seg faults when highlights.scm is non-empty for crystal tree sitter #12269
Replies: 2 comments 2 replies
-
Building locally and commenting out the crystal language from the languages.toml, I still run into the same issue, which makes me think it's something wrong with either our tree sitter, or how helix is building it. |
Beta Was this translation helpful? Give feedback.
-
Everywhere we've seen hangs or segfaults in the past with tree-sitter grammars it's been from the grammar's custom scanner ( |
Beta Was this translation helpful? Give feedback.
-
Summary
I am attempting to move Crystal to use the new tree-sitter at https://github.com/crystal-lang-tools/tree-sitter-crystal, as it has better support. In trying to get stuff working locally, I've run into an issue where it will seg fault if my highlights.scm is non-empty. I don't know if this is an issue with the crystal tree sitter or one with helix.
Reproduction Steps
languages.toml
:hx --grammar fetch
&&hx --grammar build
runtime/queries/crystal/highlights.scm
:injections.scm
,locals.scm
,textobjects.scm
with some text (otherwise it falls back to the ruby queries)hx path/to/crystal/file.cr
Helix log
It does not produce a log due to seg faulting. Best I can do is a macos crash log:
Platform
Macbook Pro M3 Pro
Terminal Emulator
iTerm2
Installation Method
brew
Helix Version
24.7
Beta Was this translation helpful? Give feedback.
All reactions