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

Crash on tab completion #3083

Open
peterebden opened this issue Feb 27, 2024 · 0 comments
Open

Crash on tab completion #3083

peterebden opened this issue Feb 27, 2024 · 0 comments

Comments

@peterebden
Copy link
Member

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(...)
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