{"record":{"id":"4c092c108e80d6dc","repo":"sxyazi/yazi","slug":"invalid-opt-in-opendoform","errorCode":null,"errorMessage":"Invalid 'opt' in OpenDoForm","messagePattern":"Invalid 'opt' in OpenDoForm","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"yazi-parser/src/mgr/open_do.rs","lineNumber":19,"sourceCode":"use anyhow::anyhow;\nuse mlua::{ExternalError, FromLua, IntoLua, Lua, Value};\nuse yazi_core::mgr::OpenDoOpt;\nuse yazi_shared::event::ActionCow;\n\n#[derive(Clone, Debug, Default)]\npub struct OpenDoForm {\n\tpub opt: OpenDoOpt,\n}\n\nimpl From<OpenDoOpt> for OpenDoForm {\n\tfn from(opt: OpenDoOpt) -> Self { Self { opt } }\n}\n\nimpl TryFrom<ActionCow> for OpenDoForm {\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 OpenDoForm\"))? })\n\t}\n}\n\nimpl FromLua for OpenDoForm {\n\tfn from_lua(_: Value, _: &Lua) -> mlua::Result<Self> { Err(\"unsupported\".into_lua_err()) }\n}\n\nimpl IntoLua for OpenDoForm {\n\tfn into_lua(self, _: &Lua) -> mlua::Result<Value> { Err(\"unsupported\".into_lua_err()) }\n}\n","sourceCodeStart":1,"sourceCodeEnd":30,"githubUrl":"https://github.com/sxyazi/yazi/blob/94abcfa92f4ad3f0a1aef6c1ea083cfb8aa6c8c2/yazi-parser/src/mgr/open_do.rs#L1-L30","documentation":"Error \"Invalid 'opt' in OpenDoForm\" thrown in sxyazi/yazi.","triggerScenarios":"Thrown at yazi-parser/src/mgr/open_do.rs:19 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"}