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

panic and I'm not sure how I trigged it. #241

Open
jrwren opened this issue Feb 12, 2025 · 0 comments
Open

panic and I'm not sure how I trigged it. #241

jrwren opened this issue Feb 12, 2025 · 0 comments

Comments

@jrwren
Copy link

jrwren commented Feb 12, 2025

I don't know how I got this.

panic: runtime error: slice bounds out of range [:1] with capacity 0

goroutine 19 [running]:
github.com/chzyer/readline.(*RuneBuffer).RuneSlice(0x1400030fb80, 0x1)
/Users/jawren/go/pkg/mod/github.com/chzyer/[email protected]/runebuf.go:111 +0x22c
github.com/chzyer/readline.(*opCompleter).CompleteRefresh(0x140003624d0)
/Users/jawren/go/pkg/mod/github.com/chzyer/[email protected]/complete.go:201 +0xc0
github.com/chzyer/readline.(*Operation).ioloop(0x140003623f0)
/Users/jawren/go/pkg/mod/github.com/chzyer/[email protected]/operation.go:357 +0x1600
created by github.com/chzyer/readline.NewOperation in goroutine 1
/Users/jawren/go/pkg/mod/github.com/chzyer/[email protected]/operation.go:88 +0x2c4

I couldn't reproduce, but maybe there is something obvious in code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant