{"record":{"id":"538b3d0d975adf6a","repo":"sxyazi/yazi","slug":"receiver-receiver-not-found-check-if-the-rece","errorCode":null,"errorMessage":"Receiver `{receiver}` not found. Check if the receiver is running.","messagePattern":"Receiver `(.+?)` not found\\. Check if the receiver is running\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"yazi-cli/src/dds/shot.rs","lineNumber":74,"sourceCode":"\t}\n\n\tpub(super) fn ensure_ability(peers: &HashMap<Id, Peer>, kind: &str, receiver: Id) -> Result<()> {\n\t\tmatch (receiver, peers.get(&receiver).map(|p| p.able(kind))) {\n\t\t\t// Send to all receivers\n\t\t\t(Id::ZERO, _) if peers.is_empty() => {\n\t\t\t\tbail!(\"No receiver found. Check if any receivers are running.\")\n\t\t\t}\n\t\t\t(Id::ZERO, _) if peers.values().all(|p| !p.able(kind)) => {\n\t\t\t\tbail!(\"No receiver has the ability to receive `{kind}` messages.\")\n\t\t\t}\n\t\t\t(Id::ZERO, _) => Ok(()),\n\n\t\t\t// Send to a specific receiver\n\t\t\t(_, Some(true)) => Ok(()),\n\t\t\t(_, Some(false)) => {\n\t\t\t\tbail!(\"Receiver `{receiver}` does not have the ability to receive `{kind}` messages.\")\n\t\t\t}\n\t\t\t(_, None) => bail!(\"Receiver `{receiver}` not found. Check if the receiver is running.\"),\n\t\t}\n\t}\n}\n","sourceCodeStart":56,"sourceCodeEnd":78,"githubUrl":"https://github.com/sxyazi/yazi/blob/5f901b886b14de1f17460b6e52e9de5d67f8aba9/yazi-cli/src/dds/shot.rs#L56-L78","documentation":"Targeted send validation in `ya pub`: the specified receiver Id is not present in the discovered peer map, meaning no running process matches it. The faulting input is the receiver Id passed on the command line.","triggerScenarios":"Thrown at yazi-cli/src/dds/shot.rs:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start the yazi process you intend to message.","Re-check the receiver Id; use `ya pub --list` to see live peers.","Restart all ya/yazi processes if they were upgraded, since version mismatches break discovery."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5f901b886b14de1f17460b6e52e9de5d67f8aba9","analyzedAt":"2026-09-02T18:38:25.566Z","contentChangedAt":"2026-09-02T18:38:25.566Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}