-
-
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
hx freezes with 100% CPU use editing a specific Elm file #2997
Comments
elm-language-server version info:
|
Cannot replicate this with |
Okay, bisect done, this was introduced by bumping |
Building with [[package]]
name = "tree-sitter"
version = "0.20.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "549a9faf45679ad50b7f603253635598cf5e007d8ceb806a23f95355938f76a0" solves the problem, so it was introduced in v0.20.8. |
Poking around upstream, another bisect shows that tree-sitter/tree-sitter@d223a81 (between v0.20.7 and v0.20.8) breaks 3 tests in https://github.com/elm-tooling/tree-sitter-elm so it's possible that that is the offending commit, though I haven't been able to find any sort of infinite loop or anything playing around with |
I'd recommend also opening an issue upstream and link to this tracking issue. |
Summary
Problem: hx freezes with 100% CPU use when I try to edit a specific Elm file. I have to kill the process manually.
Reproduction Steps
hx Bogus.elm
i
to enter insert modehx
will freeze.(I have reduced the original file to this self-contained demo file. Reducing the file complexity further seems to make the freezing problem go away.)
Helix log
Log from running with
-vvv
attachedhelix.log
Platform
MacOS 12.4 (21F79) Mac M1 Arm
Terminal Emulator
iterm2 3.4.16, and Mac Terminal 2.12.7 (445)
Helix Version
22.05-218-gb6122110
The text was updated successfully, but these errors were encountered: