{"record":{"id":"1b404dab49d49a9e","repo":"zed-industries/zed","slug":"app-path-is-not-available-on-the-web","errorCode":null,"errorMessage":"app_path is not available on the web","messagePattern":"app_path is not available on the web","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/gpui_web/src/platform.rs","lineNumber":504,"sourceCode":"    fn open_with_system(&self, _path: &Path) {}\n\n    fn on_quit(&self, callback: Box<dyn FnMut() -> bool>) {\n        self.callbacks.borrow_mut().quit = Some(callback);\n    }\n\n    fn on_reopen(&self, callback: Box<dyn FnMut()>) {\n        self.callbacks.borrow_mut().reopen = Some(callback);\n    }\n\n    // Browsers expose no system sleep or wake signal; the nearest thing is the\n    // Page Visibility API, which drives `WindowVisibility` instead.\n    fn on_system_sleep(&self, _callback: Box<dyn FnMut()>) {}\n\n    fn on_system_wake(&self, _callback: Box<dyn FnMut()>) {}\n\n    fn set_menus(&self, _menus: Vec<Menu>, _keymap: &Keymap) {}\n\n    fn set_dock_menu(&self, _menu: Vec<MenuItem>, _keymap: &Keymap) {}\n\n    fn on_app_menu_action(&self, callback: Box<dyn FnMut(&dyn Action)>) {\n        self.callbacks.borrow_mut().app_menu_action = Some(callback);\n    }\n\n    fn on_will_open_app_menu(&self, callback: Box<dyn FnMut()>) {\n        self.callbacks.borrow_mut().will_open_app_menu = Some(callback);\n    }\n\n    fn on_validate_app_menu_command(&self, callback: Box<dyn FnMut(&dyn Action) -> bool>) {\n        self.callbacks.borrow_mut().validate_app_menu_command = Some(callback);\n    }\n\n    fn thermal_state(&self) -> ThermalState {\n        ThermalState::Nominal\n    }\n\n    fn on_thermal_state_change(&self, callback: Box<dyn FnMut()>) {","sourceCodeStart":486,"sourceCodeEnd":522,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/gpui_web/src/platform.rs#L486-L522","documentation":"Sentinel from the web platform's app_path: there is no application bundle or binary path concept in the browser, so this accessor unconditionally returns this error. Any caller assuming a native install path will always fail on the web.","triggerScenarios":"Thrown at crates/gpui_web/src/platform.rs:500 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Avoid app_path in web builds; feature-gate code that needs a native install location","Use a URL/origin-based identifier as the web equivalent of the app identity","Handle the Err to disable path-dependent features (updater, relative resources) on the web"],"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"}