{"record":{"id":"367b6ce3237ff7fe","repo":"sxyazi/yazi","slug":"invalid-lock-in-updatepeekedform","errorCode":null,"errorMessage":"Invalid 'lock' in UpdatePeekedForm","messagePattern":"Invalid 'lock' in UpdatePeekedForm","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"yazi-parser/src/mgr/update_peeked.rs","lineNumber":18,"sourceCode":"use anyhow::anyhow;\nuse mlua::{ExternalError, FromLua, IntoLua, Lua, Value};\nuse yazi_binding::Scope;\nuse yazi_core::tab::PreviewLock;\nuse yazi_shared::event::ActionCow;\n\n#[derive(Clone, Debug)]\npub struct UpdatePeekedForm {\n\tpub lock:  PreviewLock,\n\tpub scope: Scope,\n}\n\nimpl TryFrom<ActionCow> for UpdatePeekedForm {\n\ttype Error = anyhow::Error;\n\n\tfn try_from(mut a: ActionCow) -> Result<Self, Self::Error> {\n\t\tOk(Self {\n\t\t\tlock:  a.take_any(\"lock\").ok_or_else(|| anyhow!(\"Invalid 'lock' in UpdatePeekedForm\"))?,\n\t\t\tscope: a.take_any(\"scope\").unwrap_or_default(),\n\t\t})\n\t}\n}\n\nimpl FromLua for UpdatePeekedForm {\n\tfn from_lua(_: Value, _: &Lua) -> mlua::Result<Self> { Err(\"unsupported\".into_lua_err()) }\n}\n\nimpl IntoLua for UpdatePeekedForm {\n\tfn into_lua(self, _: &Lua) -> mlua::Result<Value> { Err(\"unsupported\".into_lua_err()) }\n}\n","sourceCodeStart":1,"sourceCodeEnd":31,"githubUrl":"https://github.com/sxyazi/yazi/blob/94abcfa92f4ad3f0a1aef6c1ea083cfb8aa6c8c2/yazi-parser/src/mgr/update_peeked.rs#L1-L31","documentation":"Error \"Invalid 'lock' in UpdatePeekedForm\" thrown in sxyazi/yazi.","triggerScenarios":"Thrown at yazi-parser/src/mgr/update_peeked.rs:18 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"}