{"record":{"id":"81d99658577fb51c","repo":"BigPizzaV3/CodexPlusPlus","slug":"codex-81d996","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":197,"sourceCode":"        \"user-dirs-desktop\"\n    }\n}\n\nfn platform_install(options: &InstallOptions) -> anyhow::Result<()> {\n    #[cfg(windows)]\n    {\n        windows::install_shortcuts(options)\n    }\n\n    #[cfg(target_os = \"macos\")]\n    {\n        macos::install_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 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++ 入口\")","sourceCodeStart":179,"sourceCodeEnd":215,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6/crates/codex-plus-core/src/install/mod.rs#L179-L215","documentation":"platform_install's cfg-gated fallback bails when none of the supported platforms (windows, macOS) match at compile time. Codex++ entrypoint installation (app bundles / shortcuts) is only implemented for those targets, so installing on Linux/other platforms is explicitly unsupported.","triggerScenarios":"Calling install_entrypoints -> platform_install on a build compiled for a non-Windows, non-macOS target (e.g. Linux).","commonSituations":"Running the installer CLI on Linux; CI jobs targeting linux containers; contributors testing install flows on unsupported platforms.","solutions":["Run the installer on Windows or macOS","Add the missing platform arm (e.g. .desktop entries) if Linux support is required — that is a code change, not config","If you only need the relay/config side, skip entrypoint installation and use the config-generation APIs directly"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"#[cfg(any(windows, target_os = \"macos\"))]\n// safe to call install_entrypoints here\nif !(cfg!(windows) || cfg!(target_os = \"macos\")) {\n    eprintln!(\"entrypoint install is unsupported on this platform; skipping\");\n}","typeGuard":null,"tryCatchPattern":"match install_entrypoints(&options) {\n    Ok(res) => println!(\"installed: {res:?}\"),\n    Err(e) if e.to_string().contains(\"暂不支持\") => eprintln!(\"unsupported platform, skipped\"),\n    Err(e) => return Err(e),\n}","preventionTips":["Check target OS before exposing install entrypoints in UI/CLI","Skip entrypoint steps on unsupported platforms instead of failing the whole flow","Document supported platforms (Windows/macOS only) in the installer README"],"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"}