{"record":{"id":"66064b7d9f93a482","repo":"zed-industries/zed","slug":"not-in-a-call","errorCode":null,"errorMessage":"not in a call","messagePattern":"not in a call","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/call/src/call_impl/mod.rs","lineNumber":205,"sourceCode":"    fn most_active_project(&self, cx: &App) -> Option<(u64, u64)> {\n        let room = self.0.read(cx).room()?;\n        room.read(cx).most_active_project(cx)\n    }\n\n    fn share_project(&self, project: Entity<Project>, cx: &mut App) -> Task<Result<u64>> {\n        self.0\n            .update(cx, |this, cx| this.share_project(project, cx))\n    }\n\n    fn join_project(\n        &self,\n        project_id: u64,\n        language_registry: Arc<language::LanguageRegistry>,\n        fs: Arc<dyn fs::Fs>,\n        cx: &mut App,\n    ) -> Task<Result<Entity<Project>>> {\n        let Some(room) = self.0.read(cx).room().cloned() else {\n            return Task::ready(Err(anyhow::anyhow!(\"not in a call\")));\n        };\n        room.update(cx, |room, cx| {\n            room.join_project(project_id, language_registry, fs, cx)\n        })\n    }\n\n    fn peer_id_for_user_in_room(&self, user_id: u64, cx: &App) -> Option<proto::PeerId> {\n        let room = self.0.read(cx).room()?.read(cx);\n        room.remote_participants()\n            .values()\n            .find(|p| p.user.legacy_id == user_id)\n            .map(|p| p.peer_id)\n    }\n\n    fn subscribe(\n        &self,\n        window: &mut Window,\n        cx: &mut Context<Workspace>,","sourceCodeStart":187,"sourceCodeEnd":223,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/call/src/call_impl/mod.rs#L187-L223","documentation":"Returned by join_project when the call object has no current room (self.0.read(cx).room() is None). Since project joining only happens inside an active call, absence of a room makes the request meaningless and it fails with this sentinel.","triggerScenarios":"Thrown at crates/call/src/call_impl/mod.rs:205 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Join or start a call room before attempting to join a shared project","Retry after the room connection finishes establishing","Handle None from the room lookup by prompting the user to rejoin the call"],"exampleFix":null,"handlingStrategy":"type-guard","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"}