{"record":{"id":"67b7c16b551599b4","repo":"flxzt/rnote","slug":"failed-to-show-select-prompt-retry-or-select-the","errorCode":null,"errorMessage":"Failed to show select prompt, retry or select the behavior with\"--on-conflict\", Err: {e:?}","messagePattern":"Failed to show select prompt, retry or select the behavior with\"--on-conflict\", Err: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/rnote-cli/src/export.rs","lineNumber":475,"sourceCode":"                if !io::stdout().is_terminal() {\n                    return Err(anyhow::anyhow!(\n                        \"File conflict for file \\\"{}\\\" detected and terminal is not interactive. Option \\\"--on-conflict\\\" needs to be supplied.\",\n                        output_file.display()\n                    ));\n                }\n                match dialoguer::Select::new()\n                    .with_prompt(format!(\n                        \"File \\\"{}\\\" already exists:\",\n                        output_file.display()\n                    ))\n                    .items(options)\n                    .default(1)\n                    .interact()\n                {\n                    Ok(0) => cli::open_file_default_app(output_file)?,\n                    Ok(c) => on_conflict = options[c],\n                    Err(e) => {\n                        return Err(anyhow::anyhow!(\n                            \"Failed to show select prompt, retry or select the behavior with\\\"--on-conflict\\\", Err: {e:?}\"\n                        ));\n                    }\n                };\n            }\n        }\n    };\n    match on_conflict {\n        OnConflict::Ask => {\n            return Err(anyhow::anyhow!(\n                \"on-conflict behaviour is still Ask after prompting the user.\"\n            ));\n        }\n        OnConflict::AlwaysOverwrite => {\n            on_conflict = OnConflict::Overwrite;\n            *on_conflict_overwrite = Some(on_conflict);\n        }\n        OnConflict::AlwaysSkip => {","sourceCodeStart":457,"sourceCodeEnd":493,"githubUrl":"https://github.com/flxzt/rnote/blob/bbc5354502ba2fc83eec2670b535348825e679a6/crates/rnote-cli/src/export.rs#L457-L493","documentation":"Error wrapper in file_conflict_prompt_action: the dialoguer::Select prompt for resolving an existing output file returned an error while awaiting the user's choice in the OnConflict::Ask loop. The terminal was interactive, but the prompt itself failed (e.g. closed/interrupted input stream).","triggerScenarios":"Thrown at crates/rnote-cli/src/export.rs:475 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run the export command; prompt failures are often transient.","Bypass the prompt by passing --on-conflict with an explicit behavior.","Ensure stdin/stdout are usable by an interactive TTY prompt when relying on Ask."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bbc5354502ba2fc83eec2670b535348825e679a6","analyzedAt":"2026-09-08T13:20:33.747Z","contentChangedAt":"2026-09-08T13:20:33.747Z","schemaVersion":2},"datasetVersion":"2026-09-16T04:17:20.429Z"}