-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGSEV when using markdown with embedded 'elm' #3745
Comments
The segfault happens upstream in tree-sitter-elm. tree-sitter-elm has a C++ external scanner which is most likely what causes this but I haven't been able to pinpoint where. I also can't reproduce this with a regular Elm file - only with injected Elm. |
Following an issue on I tested locally and it stops the segfault. |
I can confirm I have the same issue with helix 22.12 when I have an elm code block in a markdown file. |
I can confirm that this is still the case on the latest checkout of the master branch today. Removing all the elm code blocks from a markdown file allows me to open it again in helix, and as soon as I type |
just came here to report this. elm lsp also requires frequent restarts for me fwiw. |
I don't get this error anymore with the latest build from master branch. |
Likely fixed by #7621 or grammar fixes. Please open a new issue if you can reproduce on latest master |
Summary
Helix crashes when I try to use
elm
coded embedded in a markdown file, such as:I've narrowed it down to having a colon followed by an upper case letter (which comes up a lot in Elm code because colon starts a type signature and concrete type names start with an upper case letter). So if you save the following as
test.md
or try to type it in, thenhx
will crash:This is true whether or not you have the closing three back-ticks.
Here is exactly what is shown in my terminal when it crashes as I type.
I ran this with
-v
and looked at the log, but there doesn't seem to be anything useful:Reproduction Steps
I don't think there is anything special here.
Helix log
~/.cache/helix/helix.log
As I said above I don't think this is useful but:
Platform
Linux
Terminal Emulator
alacritty 0.10.1
Helix Version
helix 22.08.1 (e8730ca)
The text was updated successfully, but these errors were encountered: