{"record":{"id":"7e7f5f9657231ada","repo":"sxyazi/yazi","slug":"invalid-opt-in-displacedoform","errorCode":null,"errorMessage":"Invalid 'opt' in DisplaceDoForm","messagePattern":"Invalid 'opt' in DisplaceDoForm","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"yazi-parser/src/mgr/displace_do.rs","lineNumber":15,"sourceCode":"use anyhow::anyhow;\nuse mlua::{ExternalError, FromLua, IntoLua, Lua, Value};\nuse yazi_core::mgr::DisplaceOpt;\nuse yazi_shared::event::ActionCow;\n\n#[derive(Clone, Debug)]\npub struct DisplaceDoForm {\n\tpub opt: DisplaceOpt,\n}\n\nimpl TryFrom<ActionCow> for DisplaceDoForm {\n\ttype Error = anyhow::Error;\n\n\tfn try_from(mut a: ActionCow) -> Result<Self, Self::Error> {\n\t\tOk(Self { opt: a.take_any(\"opt\").ok_or_else(|| anyhow!(\"Invalid 'opt' in DisplaceDoForm\"))? })\n\t}\n}\n\nimpl FromLua for DisplaceDoForm {\n\tfn from_lua(_: Value, _: &Lua) -> mlua::Result<Self> { Err(\"unsupported\".into_lua_err()) }\n}\n\nimpl IntoLua for DisplaceDoForm {\n\tfn into_lua(self, _: &Lua) -> mlua::Result<Value> { Err(\"unsupported\".into_lua_err()) }\n}\n","sourceCodeStart":1,"sourceCodeEnd":26,"githubUrl":"https://github.com/sxyazi/yazi/blob/94abcfa92f4ad3f0a1aef6c1ea083cfb8aa6c8c2/yazi-parser/src/mgr/displace_do.rs#L1-L26","documentation":"Error \"Invalid 'opt' in DisplaceDoForm\" thrown in sxyazi/yazi.","triggerScenarios":"Thrown at yazi-parser/src/mgr/displace_do.rs:15 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"94abcfa92f4ad3f0a1aef6c1ea083cfb8aa6c8c2","analyzedAt":"2026-08-16T09:56:24.836Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}