{"record":{"id":"fc052b7be2516cbf","repo":"BigPizzaV3/CodexPlusPlus","slug":"codex-fc052b","errorCode":null,"errorMessage":"当前平台暂不支持卸载 Codex++ 入口","messagePattern":"当前平台暂不支持卸载 Codex\\+\\+ 入口","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/install/mod.rs","lineNumber":215,"sourceCode":"        anyhow::bail!(\"当前平台暂不支持安装 Codex++ 入口\")\n    }\n}\n\nfn platform_uninstall(options: &InstallOptions) -> anyhow::Result<()> {\n    #[cfg(windows)]\n    {\n        windows::uninstall_shortcuts(options)\n    }\n\n    #[cfg(target_os = \"macos\")]\n    {\n        macos::uninstall_app_bundles(options)\n    }\n\n    #[cfg(not(any(windows, target_os = \"macos\")))]\n    {\n        let _ = options;\n        anyhow::bail!(\"当前平台暂不支持卸载 Codex++ 入口\")\n    }\n}\n\nfn action_result(result: anyhow::Result<()>, success_message: &str) -> InstallActionResult {\n    let state = inspect_entrypoints();\n    match result {\n        Ok(()) => InstallActionResult {\n            status: \"ok\".to_string(),\n            message: success_message.to_string(),\n            silent_shortcut: state.silent_shortcut,\n            management_shortcut: state.management_shortcut,\n        },\n        Err(error) => InstallActionResult {\n            status: \"failed\".to_string(),\n            message: error.to_string(),\n            silent_shortcut: state.silent_shortcut,\n            management_shortcut: state.management_shortcut,\n        },","sourceCodeStart":197,"sourceCodeEnd":233,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6/crates/codex-plus-core/src/install/mod.rs#L197-L233","documentation":"platform_uninstall's cfg-gated fallback bails on any target that is not Windows or macOS. Entrypoint uninstallation (shortcuts/app bundles) simply has no implementation for other platforms, so it fails fast with this Chinese-language message.","triggerScenarios":"Calling uninstall_entrypoints -> platform_uninstall on a non-Windows/non-macOS build.","commonSituations":"Attempting cleanup of installs from a Linux host or container; scripted uninstall steps run on the wrong platform in CI.","solutions":["Run the uninstall on Windows or macOS where the entries were created","On unsupported platforms, manually remove any entrypoint artifacts you created","Implement a platform arm (cfg for the new target) if support is needed","Skip entrypoint uninstall if no entries were ever installed on that platform"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"if !(cfg!(windows) || cfg!(target_os = \"macos\")) {\n    return; // nothing to uninstall on this platform\n}","typeGuard":null,"tryCatchPattern":"match uninstall_entrypoints(&options) {\n    Ok(_) => println!(\"uninstalled\"),\n    Err(e) if e.to_string().contains(\"暂不支持\") => eprintln!(\"no entrypoints on this platform\"),\n    Err(e) => return Err(e),\n}","preventionTips":["Gate uninstall calls per-OS with cfg attributes","Only attempt uninstall on the platform where the install happened","Treat this error as a no-op signal on unsupported platforms"],"tags":["install","platform","unsupported"],"backgroundTag":"unsupported-platform","analyzedSha":"b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6","analyzedAt":"2026-09-19T23:35:21.129Z","contentChangedAt":"2026-09-19T23:35:21.129Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}