{"record":{"id":"c30d211fd7ebecbf","repo":"zed-industries/zed","slug":"gpui-linux-was-compiled-without-the-screen-capture","errorCode":null,"errorMessage":"gpui_linux was compiled without the screen-capture feature","messagePattern":"gpui_linux was compiled without the screen-capture feature","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/gpui_linux/src/linux/platform.rs","lineNumber":79,"sourceCode":"    fn with_common<R>(&self, f: impl FnOnce(&mut LinuxCommon) -> R) -> R;\n    fn keyboard_layout(&self) -> Box<dyn PlatformKeyboardLayout>;\n    fn displays(&self) -> Vec<Rc<dyn PlatformDisplay>>;\n    #[allow(unused)]\n    fn display(&self, id: DisplayId) -> Option<Rc<dyn PlatformDisplay>>;\n    fn primary_display(&self) -> Option<Rc<dyn PlatformDisplay>>;\n\n    #[cfg(feature = \"screen-capture\")]\n    fn is_screen_capture_supported(&self) -> bool {\n        true\n    }\n\n    #[cfg(feature = \"screen-capture\")]\n    fn screen_capture_sources(\n        &self,\n    ) -> oneshot::Receiver<Result<Vec<Rc<dyn gpui::ScreenCaptureSource>>>> {\n        let (sources_tx, sources_rx) = oneshot::channel();\n        sources_tx\n            .send(Err(anyhow::anyhow!(\n                \"gpui_linux was compiled without the screen-capture feature\"\n            )))\n            .ok();\n        sources_rx\n    }\n\n    fn open_window(\n        &self,\n        handle: AnyWindowHandle,\n        options: WindowParams,\n    ) -> anyhow::Result<Box<dyn PlatformWindow>>;\n    fn set_cursor_style(&self, style: CursorStyle);\n    fn hide_cursor_until_mouse_moves(&self) {}\n    fn is_cursor_visible(&self) -> bool {\n        true\n    }\n    fn open_uri(&self, uri: &str);\n    fn reveal_path(&self, path: PathBuf);","sourceCodeStart":61,"sourceCodeEnd":97,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/gpui_linux/src/linux/platform.rs#L61-L97","documentation":"Guard in the Linux platform: screen_capture_sources was called, but the binary was compiled without the `screen-capture` cargo feature, so no capture source implementation exists. This is a build-configuration sentinel, not a runtime failure of capture itself.","triggerScenarios":"Thrown at crates/gpui_linux/src/linux/platform.rs:71 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rebuild with the `screen-capture` cargo feature enabled","Verify the feature is enabled in the platform-specific Cargo feature set for the target build","Avoid invoking screen-capture APIs when the feature is disabled"],"exampleFix":null,"handlingStrategy":"fallback","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-14T05:17:10.506Z"}