You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead, this happened:
Helix hangs for ~60 seconds and then crashes with an error:
[1] 98496 illegal hardware instruction hx tmp.sql
Helix log
~/.cache/helix/helix.log
Nothing seems relevant here
2022-11-07T11:12:13.459 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-11-07T11:12:53.358 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-11-07T17:00:47.548 helix_view::editor [ERROR] Failed to initialize the LSP for `source.bash` { cannot find binary path }
2022-11-10T15:39:11.363 helix_view::editor [ERROR] Failed to initialize the LSP for `source.python` { cannot find binary path }
2022-11-10T15:43:06.944 helix_view::editor [ERROR] Failed to initialize the LSP for `source.python` { cannot find binary path }
2022-11-10T15:47:09.482 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-11-22T09:03:45.806 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-11-22T09:04:14.649 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-11-22T10:44:36.778 helix_view::editor [ERROR] Failed to initialize the LSP for `text.html.basic` { cannot find binary path }
2022-11-22T10:49:06.976 helix_view::editor [ERROR] Failed to initialize the LSP for `source.css` { cannot find binary path }
2022-11-22T10:50:58.988 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-11-22T11:07:56.772 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-11-22T11:08:46.096 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-11-22T11:11:18.749 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-11-29T09:35:59.811 helix_view::editor [ERROR] Failed to initialize the LSP for `source.json` { cannot find binary path }
2022-11-29T09:45:20.084 helix_view::editor [ERROR] Failed to initialize the LSP for `source.json` { cannot find binary path }
2022-11-29T09:50:52.831 helix_view::editor [ERROR] Failed to initialize the LSP for `source.json` { cannot find binary path }
2022-11-29T09:51:43.498 helix_view::editor [ERROR] Failed to initialize the LSP for `source.json` { cannot find binary path }
Thanks for adding a reproduciable example that was really helpful!
I think the illegal hardware instruction is just throwing us off here. This seems to be an issue in the treesitter grammar. On my machine (linux - amd64) it crashes with a free() of wrong size sigfault.
Bumping the treesitter grammar to the newest versions seems to fix the crash. However typing still was dreadfully slow so I suspect the parser.
We should look into this further if there is any issue on the helix side or if it's just an upstream problem and bumping the grammar is enough here.
For now you can update the grammar by adding
[[language]]
name = "sql"
[[grammar]]
name = "sql"source = { git = "https://github.com/DerekStride/tree-sitter-sql", rev = "a4dd131eeb9fe7f3c9c2ca0f506f6d58d9986a97" }
to your languages.toml and running hx -g fetch and hx -g build to rebuild the grammar.
This should allow you to atleast open and navigate the file. If you want to edit it I would suggest setting :langauge text to disable treesitter for this file once it's opened
The bad performance could also come from a greedily-matching /.*\n/. I assume this runs through the entire document constantly.
I proposed a change to /.*?\n/ but failed to verify the fix.
(Couldn't get my changes to grammar.js to apply, despite deleting sql.so and re-creating it with hx -g build. (Also made sure $HELIX_RUNTIME is correct.)
Summary
I tried to open a 13MB file and helix crashed
file: https://gist.github.com/tkellogg/bbf57f5c43489a1e122b4f1a8d0daa9b
to create the file, I did a
docker exec ... >tmp.sql
. Not sure if that creates unexpected characters.Helix was installed and then (today) updated via homebrew.
Reproduction Steps
I tried this:
hx tmp.sql
Here's a link to the file: https://gist.github.com/tkellogg/bbf57f5c43489a1e122b4f1a8d0daa9b
I expected this to happen:
The file opens
Instead, this happened:
Helix hangs for ~60 seconds and then crashes with an error:
Helix log
~/.cache/helix/helix.log
Nothing seems relevant here
Platform
macOS 13.0.1
Terminal Emulator
iTerm2 3.4.18
Helix Version
helix 22.12 (96ff64a)
The text was updated successfully, but these errors were encountered: