{"record":{"id":"71280526259e3086","repo":"zed-industries/zed","slug":"unshareditem","errorCode":"UnsharedItem","errorMessage":"UnsharedItem","messagePattern":"UnsharedItem","errorType":"error_code","errorClass":"RpcError","httpStatus":null,"severity":"error","filePath":"crates/project/src/project.rs","lineNumber":5986,"sourceCode":"                });\n                if is_private {\n                    continue;\n                }\n\n                let buffer_id = this.update(cx, |this, cx| {\n                    this.create_buffer_for_peer(&buffer, peer_id, cx).to_proto()\n                });\n                batcher.push(buffer_id).await;\n            }\n            batcher.flush().await;\n\n            sender_task.await?;\n\n            let _ = client\n                .request(proto::FindSearchCandidatesChunk {\n                    handle,\n                    peer_id: Some(peer_id),\n                    project_id,\n                    variant: Some(proto::find_search_candidates_chunk::Variant::Done(\n                        proto::FindSearchCandidatesDone {},\n                    )),\n                })\n                .await?;\n            anyhow::Ok(())\n        });\n        buffer_store.update(&mut cx, |this, _| {\n            this.register_ongoing_project_search((peer_id, handle), task);\n        });\n\n        Ok(proto::Ack {})\n    }\n\n    async fn handle_open_buffer_by_id(\n        this: Entity<Self>,\n        envelope: TypedEnvelope<proto::OpenBufferById>,\n        mut cx: AsyncApp,","sourceCodeStart":5968,"sourceCodeEnd":6004,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/project/src/project.rs#L5968-L6004","documentation":"While responding to a peer's open-buffer request, serialization of the buffer as an operation failed because the buffer's current state contains an item that cannot be shared (UnsharedItem), e.g. unsaved private content or unsupported operations.","triggerScenarios":"Thrown at crates/project/src/project.rs:5881 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Save the buffer so it can be shared from disk","Ensure the file is not marked private"],"exampleFix":null,"handlingStrategy":"try-catch","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"}