{"record":{"id":"8c6ef6eb7c78e636","repo":"zed-industries/zed","slug":"resource-not-found","errorCode":null,"errorMessage":"resource not found","messagePattern":"resource not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/gpui_macos/src/platform.rs","lineNumber":1118,"sourceCode":"                CFRelease(old as _)\n            }\n        }\n    }\n\n    fn add_recent_document(&self, path: &Path) {\n        if let Some(path_str) = path.to_str() {\n            unsafe {\n                let document_controller: id =\n                    msg_send![class!(NSDocumentController), sharedDocumentController];\n                let url: id = NSURL::fileURLWithPath_(nil, ns_string(path_str));\n                let _: () = msg_send![document_controller, noteNewRecentDocumentURL:url];\n            }\n        }\n    }\n\n    fn path_for_auxiliary_executable(&self, name: &str) -> Result<PathBuf> {\n        unsafe {\n            let bundle: id = NSBundle::mainBundle();\n            anyhow::ensure!(!bundle.is_null(), \"app is not running inside a bundle\");\n            let name = ns_string(name);\n            let url: id = msg_send![bundle, URLForAuxiliaryExecutable: name];\n            anyhow::ensure!(!url.is_null(), \"resource not found\");\n            ns_url_to_path(url)\n        }\n    }\n\n    /// Match cursor style to one of the styles available\n    /// in macOS's [NSCursor](https://developer.apple.com/documentation/appkit/nscursor).\n    fn set_cursor_style(&self, style: CursorStyle) {\n        unsafe {\n            set_active_window_cursor_style(style);\n        }\n    }\n\n    fn hide_cursor_until_mouse_moves(&self) {\n        let cursor_visible = self.0.lock().cursor_visible.clone();","sourceCodeStart":1100,"sourceCodeEnd":1136,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/gpui_macos/src/platform.rs#L1100-L1136","documentation":"Guard in path_for_auxiliary_executable: NSBundle could not locate an executable with the given name in the bundle's MacOS directory (pathForAuxiliaryExecutable returned nil). The requested helper binary is absent from the .app bundle.","triggerScenarios":"Thrown at crates/gpui_macos/src/platform.rs:1086 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the helper executable to the bundle's Contents/MacOS in the build/packaging step","Verify the name passed matches the installed binary exactly (case-sensitive)","Handle the Err by disabling the dependent feature or prompting reinstall"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}