-
-
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
Panic: Byte range out of bounds #7615
Comments
Probably an upstream issue with the Svelte grammar, similar bug here #3283 |
I can reproduce this using that file by just adding a bunch of characters before the todo comment <script lang="ts">
// TODO
</script> (this is also actually fixed by pascal's pr) |
Awesome, thanks for the fix @pascalkuthe! I've updated and so far I haven't gotten a crash, but it's hard to tell without spending much time using it. I'll reopen if it happens again |
Summary
I get a panic while typing in a Svelte file (but only this specific svelte file, there must be some syntax combination I'm using in it that's causing the bug). It only started happening while I was writing out the
uiSchemaFromSchema
function (see reproduction section for code) and the first time it crashed was when I typed thevalue
identifier in the for loop'sof
expression. Before that, Helix didn't have any issues with the file.I've had a similar crash happen once or twice in the past, but usually weeks apart and each time in a different file.
Here's the backtrace:
Reproduction Steps
I haven't figured out exactly what I'm doing that is causing the panic. But I can consistently get it when editing the following file. The panic just happens while typing and seems a bit random. Annoyingly, I've tried retyping stuff that made it panic and it didn't panic, but panicked later on while I was typing something new. The panic happens every minute or two (at the speed I'm typing at least) so it's pretty unworkable.
For completeness I've included my
config.toml
andlanguages.toml
files.Helix log
~/.cache/helix/helix.log
Platform
macOS
Terminal Emulator
kitty 0.28.1
Helix Version
helix 23.05 (7f5940b)
The text was updated successfully, but these errors were encountered: