{"record":{"id":"b49fd54ed3788439","repo":"zed-industries/zed","slug":"cannot-start-app-bundle","errorCode":null,"errorMessage":"cannot start app bundle {}","messagePattern":"cannot start app bundle (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/cli/src/main.rs","lineNumber":1381,"sourceCode":"                            kCFStringEncodingUTF8,\n                            ptr::null(),\n                        ));\n                        // equivalent to: open zed-cli:... -a /Applications/Zed\\ Preview.app\n                        let urls_to_open =\n                            CFArray::from_copyable(&[url_to_open.as_concrete_TypeRef()]);\n                        LSOpenFromURLSpec(\n                            &LSLaunchURLSpec {\n                                appURL: app_url.as_concrete_TypeRef(),\n                                itemURLs: urls_to_open.as_concrete_TypeRef(),\n                                passThruParams: ptr::null(),\n                                launchFlags: kLSLaunchDefaults | kLSLaunchDontSwitch,\n                                asyncRefCon: ptr::null_mut(),\n                            },\n                            ptr::null_mut(),\n                        )\n                    };\n\n                    anyhow::ensure!(\n                        status == 0,\n                        \"cannot start app bundle {}\",\n                        self.zed_version_string()\n                    );\n                }\n\n                Self::LocalPath { executable, .. } => {\n                    let executable_parent = executable\n                        .parent()\n                        .with_context(|| format!(\"Executable {executable:?} path has no parent\"))?;\n                    let subprocess_stdout_file = fs::File::create(\n                        executable_parent.join(\"zed_dev.log\"),\n                    )\n                    .with_context(|| format!(\"Log file creation in {executable_parent:?}\"))?;\n                    let subprocess_stdin_file =\n                        subprocess_stdout_file.try_clone().with_context(|| {\n                            format!(\"Cloning descriptor for file {subprocess_stdout_file:?}\")\n                        })?;","sourceCodeStart":1363,"sourceCodeEnd":1399,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/cli/src/main.rs#L1363-L1399","documentation":"On macOS, the CLI locates the containing Zed.app bundle and asks the system to launch it (via LSOpenFromURLSpec/open) to hand off the open request; this error fires when that launch call fails for the resolved bundle path, meaning macOS could not start the app (bundle corrupt, moved, or quarantined).","triggerScenarios":"Thrown at crates/cli/src/main.rs:1381 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the Zed.app bundle exists at the resolved path and launches manually via Finder","Reinstall Zed if the bundle is damaged or was moved after the CLI resolved its path","Remove quarantine attributes (xattr -dr com.apple.quarantine) if Gatekeeper blocks the launch"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}