ITADN

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

#241Openjrwren 创建于 2025-02-12
J
jrwrencommented
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/readline@v1.5.1/runebuf.go:111 +0x22c github.com/chzyer/readline.(*opCompleter).CompleteRefresh(0x140003624d0) /Users/jawren/go/pkg/mod/github.com/chzyer/readline@v1.5.1/complete.go:201 +0xc0 github.com/chzyer/readline.(*Operation).ioloop(0x140003623f0) /Users/jawren/go/pkg/mod/github.com/chzyer/readline@v1.5.1/operation.go:357 +0x1600 created by github.com/chzyer/readline.NewOperation in goroutine 1 /Users/jawren/go/pkg/mod/github.com/chzyer/readline@v1.5.1/operation.go:88 +0x2c4 I couldn't reproduce, but maybe there is something obvious in code?
0 条评论