{"record":{"id":"852cf81fbedbb30c","repo":"sxyazi/yazi","slug":"no-receiver-has-the-ability-to-receive-kind-me","errorCode":null,"errorMessage":"No receiver has the ability to receive `{kind}` messages.","messagePattern":"No receiver has the ability to receive `(.+?)` messages\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"yazi-cli/src/dds/shot.rs","lineNumber":65,"sourceCode":"\tpub(super) fn ensure_version(version: Option<&str>) -> Result<()> {\n\t\tif version != Some(yazi_version::version()) {\n\t\t\tbail!(\n\t\t\t\t\"Incompatible version (Ya {}, Yazi {}). Restart all `ya` and `yazi` processes if you upgraded either.\",\n\t\t\t\tyazi_version::version(),\n\t\t\t\tversion.unwrap_or(\"Unknown\")\n\t\t\t);\n\t\t}\n\t\tOk(())\n\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":47,"sourceCodeEnd":78,"githubUrl":"https://github.com/sxyazi/yazi/blob/5f901b886b14de1f17460b6e52e9de5d67f8aba9/yazi-cli/src/dds/shot.rs#L47-L78","documentation":"Broadcast-target validation in `ya pub`: the send was addressed to all receivers (`Id::ZERO`) and at least one peer exists, but none of them advertised the ability to handle messages of this `kind`. The faulting input is the message kind combined with the current peer set.","triggerScenarios":"Thrown at yazi-cli/src/dds/shot.rs:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start a yazi instance (receiver) that registers a handler for this message kind.","Check the kind string for typos against the receiver's registered abilities.","List peers with `ya pub --list` to inspect who is running and what they can receive."],"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"}