Skip to content
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

writing 'let %' in nickel file crashes helix (Segmentation Fault) #2979

Closed
Philipp-M opened this issue Jul 5, 2022 · 1 comment · Fixed by #2987
Closed

writing 'let %' in nickel file crashes helix (Segmentation Fault) #2979

Philipp-M opened this issue Jul 5, 2022 · 1 comment · Fixed by #2987
Labels
A-tree-sitter Area: Tree-sitter C-bug Category: This is a bug upstream

Comments

@Philipp-M
Copy link
Contributor

Philipp-M commented Jul 5, 2022

Summary

I think the title sums it up already,

Additionally to the Reproduction Steps, it also crashes, when opening a file with the content let %

Reproduction Steps

I tried this:

  1. hx test.ncl
  2. go to insert mode and write let %
  3. crash (Segmentation Fault)

I expected this to happen:
no crash
Instead, this happened:
crash

Helix log

Nothing interesting here even with -vvvv

Platform

NixOS

Terminal Emulator

xterm, alacritty

Helix Version

22.05-218-gb6122110

@Philipp-M Philipp-M added the C-bug Category: This is a bug label Jul 5, 2022
@the-mikedavis the-mikedavis added the A-tree-sitter Area: Tree-sitter label Jul 5, 2022
@the-mikedavis
Copy link
Member

Most minimally to reproduce this with the tree-sitter CLI:

$ echo "let %" > test.ncl
$ tree-sitter parse test.ncl

This is a bug either in the grammar or (more likely in my experience) in the external scanner. I'll open up an issue upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tree-sitter Area: Tree-sitter C-bug Category: This is a bug upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants