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

reproducible panic while typing #7655

Closed
odama626 opened this issue Jul 16, 2023 · 3 comments
Closed

reproducible panic while typing #7655

odama626 opened this issue Jul 16, 2023 · 3 comments
Labels
C-bug Category: This is a bug S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

Comments

@odama626
Copy link

Summary

I have seen this issue quite a few times before, but this time I was able to reproduce it 3 times in a row so I got the steps down

Reproduction Steps

I tried this:

  1. edit file
<script lang="ts">
	import { goto } from '$app/navigation';
	import { currentProject } from '$lib/storage';

	$: {
		// if ($currentProject) goto(`/projects/${$currentProject}`);
	}
</script>
  1. click end of 3rd line
  2. o
  3. enter
  4. enter
  5. type $: projects = liveQuery

I expected this to happen:
typed input to show up

Instead, this happened:

thread 'main' panicked at 'byte_slice(): Byte range out of bounds: byte range 197..212, Rope/RopeSlice byte length 211', /build/.cargo/registry/src/github.jparrowsec.cn-1ecc6299db9ec823/ropey-1.6.0/src/slice.rs:703:2

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

Linux

Terminal Emulator

tmux in alacritty 0.12.2 (9d9982df)

Helix Version

Helix 23.05

@odama626 odama626 added the C-bug Category: This is a bug label Jul 16, 2023
@pascalkuthe
Copy link
Member

this is likely fixed by #7621, please try building from that branch and reproducing the panic

@pascalkuthe
Copy link
Member

pascalkuthe commented Jul 16, 2023

likely duplicate of #3283 too

@pascalkuthe pascalkuthe added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jul 17, 2023
@gabydd
Copy link
Member

gabydd commented Jul 17, 2023

I can confirm this is also fixed by #7621

@gabydd gabydd closed this as completed Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

No branches or pull requests

3 participants