Skip to content

tab completion fails at times #216

Description

@DaanHoogland

not completely clear yet but sometimes on tab:

panic: runtime error: slice bounds out of range [:36] with capacity 18

goroutine 22 [running]:
github.com/chzyer/readline.(*opCompleter).truncateBufferAfterLastEqual(0xc0000e3500, {0xc0005e2fa8, 0x12, 0x12})
	/home/shwstppr/lab/shapeblue/cloudstack-cloudmonkey/vendor/github.com/chzyer/readline/complete.go:54 +0x1e9
github.com/chzyer/readline.(*opCompleter).writeRunes(0xc0000e3500, {0xc0005e2fa0, 0xc0000d5440?, 0x14})
	/home/shwstppr/lab/shapeblue/cloudstack-cloudmonkey/vendor/github.com/chzyer/readline/complete.go:70 +0x8d
github.com/chzyer/readline.(*opCompleter).OnComplete(0xc0000e3500)
	/home/shwstppr/lab/shapeblue/cloudstack-cloudmonkey/vendor/github.com/chzyer/readline/complete.go:125 +0x1b2
github.com/chzyer/readline.(*Operation).ioloop(0xc0000e3420)
	/home/shwstppr/lab/shapeblue/cloudstack-cloudmonkey/vendor/github.com/chzyer/readline/operation.go:180 +0xd0f
created by github.com/chzyer/readline.NewOperation in goroutine 1
	/home/shwstppr/lab/shapeblue/cloudstack-cloudmonkey/vendor/github.com/chzyer/readline/operation.go:88 +0x2c6
[root@pr13032-t16343-kvm-ol9-mgmt1 ~]# 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions