-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Consistent hard crash on windows when started from nushell #8821
Comments
what is the crash/panic message and backtrace? |
I see none. The screenshot is what I see when the issue is triggered, and the log file contains what is posted in the OP. |
I can only reproduce this issue so far in markdown files when adding lines in deeply-enough nested lists. This could suggest it is related to indent queries. I'm still surprised I don't get to see some form of error message. |
its probably the markdown grammar causing a segmentation fault (or TS itself) |
I found a smaller repro.
This crashes when typing it. However, when you enter this text in another text editor and then open it with helix, it does not crash immediately. Only after you enter insert mode and start extending the last line. |
Edit: Actually, I can reproduce it now after rebasing onto latest master. This must have been a pretty recent change. It crashes regardless of the shell (nushell or cmd). I don't get a stack trace either, and windows reports the crash as |
@CptPotato what commit were you using before? It could be a dependency bump or if you were using the stable release before a tree-sitter issue (most likely imo) |
ah I think this crash is probably from this tree-sitter-grammars/tree-sitter-markdown#114, should just be able to update the markdown grammar to fix it |
I think we can update to 1.7 since it seems to include the fix. |
The revision I chose here is simply the latest release on the repo: https://github.com/tree-sitter-grammars/tree-sitter-markdown/releases/tag/v0.2.3 Closes helix-editor#8821
Did you mean 0.1.7? Looks like the grammar is up to 0.2.3 now. Would this just look like bumping the rev for the markdown treesitter grammar? If so, I've submitted this PR #10039 Please let me know if I screwed anything up <3 |
Summary
When editing the attached file in a specific way this gives a crash without any errors. Only seems to happen on windows when Helix is started from nushell.
crash.md
Reproduction Steps
I tried this:
nu
$env.RUST_BACKTRACE = 1
(per instructions for detailed logging)hx -vv -c /dev/null crash.md
(open attached crashing file in hx with default config):100
(goto line 100)o
(open a new line)This happened
Let me know if I can help trouble shooting. I'm compiling from source, so I can easily add compilation flags or something. But I'm no Rust programmer nor have I a debugger installed/setup.
Helix log
~/.cache/helix/helix.log
Platform
Windows 11
Terminal Emulator
wezterm, cmd.exe
Installation Method
compiled from source
Helix Version
a98ad13
The text was updated successfully, but these errors were encountered: