{"record":{"id":"9dd77c60606d8cfa","repo":"ahmetb/kubectx","slug":"you-did-not-choose-any-of-the-options-9dd77c","errorCode":null,"errorMessage":"you did not choose any of the options","messagePattern":"you did not choose any of the options","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/kubectx/shell_session.go","lineNumber":162,"sourceCode":"\t}\n\n\tcmd := exec.Command(\"fzf\", \"--ansi\", \"--no-preview\")\n\tvar out bytes.Buffer\n\tcmd.Stdin = &in\n\tcmd.Stderr = stderr\n\tcmd.Stdout = &out\n\n\tcmd.Env = append(os.Environ(),\n\t\tfmt.Sprintf(\"%s=1\", env.EnvForceColor))\n\tif err := cmd.Run(); err != nil {\n\t\tvar exitErr *exec.ExitError\n\t\tif !errors.As(err, &exitErr) {\n\t\t\treturn \"\", err\n\t\t}\n\t}\n\tchoice := strings.TrimSpace(out.String())\n\tif choice == \"\" {\n\t\treturn \"\", errors.New(\"you did not choose any of the options\")\n\t}\n\treturn choice, nil\n}\n","sourceCodeStart":144,"sourceCodeEnd":166,"githubUrl":"https://github.com/ahmetb/kubectx/blob/12ad6fb22e8c546ee2b54e7de38aa51c906832f7/cmd/kubectx/shell_session.go#L144-L166","documentation":"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.","triggerScenarios":"Thrown at cmd/kubectx/shell_session.go:162 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry and press Enter to select a context","Exit the picker intentionally; no changes are made"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"12ad6fb22e8c546ee2b54e7de38aa51c906832f7","analyzedAt":"2026-09-02T12:23:10.107Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T16:17:10.729Z"}