ahmetb/kubectx · error
you did not choose any of the options
Error message
you did not choose any of the options
What it means
Guard error in fzfPickContext (shell_session.go): the fzf process ran but produced an empty trimmed choice, meaning the user exited the picker without selecting a context (Esc/Ctrl-C). Treated as a cancelled interactive selection.
Source
Thrown at cmd/kubectx/shell_session.go:162
}
cmd := exec.Command("fzf", "--ansi", "--no-preview")
var out bytes.Buffer
cmd.Stdin = &in
cmd.Stderr = stderr
cmd.Stdout = &out
cmd.Env = append(os.Environ(),
fmt.Sprintf("%s=1", env.EnvForceColor))
if err := cmd.Run(); err != nil {
var exitErr *exec.ExitError
if !errors.As(err, &exitErr) {
return "", err
}
}
choice := strings.TrimSpace(out.String())
if choice == "" {
return "", errors.New("you did not choose any of the options")
}
return choice, nil
}
View on GitHub (pinned to 12ad6fb22e)
Solutions
- Retry and press Enter to select a context
- Exit the picker intentionally; no changes are made
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at cmd/kubectx/shell_session.go:162 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ahmetb/kubectx@12ad6fb22e (2026-09-02).
Data as JSON: /api/errors/9dd77c60606d8cfa.
Report an issue: GitHub.