please
please copied to clipboard
Crash on tab completion
Looks like you need remote execution enabled and just do plz help <tab>
$ plz help panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0xb8880a]
goroutine 1 [running]:
github.com/thought-machine/please/src/remote/fs.New({0xfbdfc0?, 0xc00122c100}, 0x0, {0xc001b87b85, 0x2})
src/remote/fs/fs.go:67 +0x4a
github.com/thought-machine/please/src/remote.(*Client).SubrepoFS(0xc0004d0580, 0xc001fe7368?, {0xc001b87b85, 0x2})
src/remote/remote.go:329 +0xcc
github.com/thought-machine/please/src/core.(*Subrepo).FS.func1()
src/core/subrepo.go:58 +0x70
sync.(*Once).doSlow(0xc001fe73b0?, 0x4125ba?)
sync/once.go:74 +0xbf
sync.(*Once).Do(...)
sync/once.go:65
github.com/thought-machine/please/src/core.(*Subrepo).FS(0xc001c186e0)
src/core/subrepo.go:51 +0x4a
github.com/thought-machine/please/src/help.getPluginBuildDefs(0xc001c186e0)
src/help/help.go:239 +0x189
github.com/thought-machine/please/src/help.allTopics({0x7ffc1da78864, 0x0}, 0xc0004de000)
src/help/help.go:319 +0x58b
github.com/thought-machine/please/src/help.Topic.Complete({0xd2c780?, 0xcf8d00?}, {0x7ffc1da78864, 0x0})
src/help/completion.go:27 +0x57
github.com/thought-machine/go-flags.(*completion).completeValue(0xc000448f80?, {0xcf8d00?, 0x15c3368?, 0x4?}, 0x0, {0x0, 0x0}, {0x7ffc1da78864, 0x0})
pkg/linux_amd64/github.com/thought-machine/go-flags/completion.go:153 +0x1e7
github.com/thought-machine/go-flags.(*completion).complete(0xc000275c68, {0xc000036080?, 0x1?, 0x0?})
pkg/linux_amd64/github.com/thought-machine/go-flags/completion.go:295 +0xa4e
github.com/thought-machine/go-flags.(*Parser).ParseArgs(0xc000448080, {0xc000036080?, 0x6, 0x6})
pkg/linux_amd64/github.com/thought-machine/go-flags/parser.go:233 +0x28a
github.com/peterebden/go-cli-init/v5/flags.ParseFlags({0xe639e5, 0x6}, {0xcba760, 0x15c2bc0}, {0xc000036070, 0x7, 0x7}, 0x4, 0xed1328, 0xed1180)
pkg/linux_amd64/github.com/peterebden/go-cli-init/v5/flags/flags.go:38 +0x372
github.com/thought-machine/please/src/cli.ParseFlags(...)
This issue has been automatically marked as stale because it has not had any recent activity in the past 90 days. It will be closed if no further activity occurs. If you require additional support, please reply to this message. Thank you for your contributions.