sxyazi/yazi · error · anyhow::Error
Invalid 'opt' in OpenDoForm
Error message
Invalid 'opt' in OpenDoForm
What it means
Error "Invalid 'opt' in OpenDoForm" thrown in sxyazi/yazi.
Source
Thrown at yazi-parser/src/mgr/open_do.rs:19
use anyhow::anyhow;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_core::mgr::OpenDoOpt;
use yazi_shared::event::ActionCow;
#[derive(Clone, Debug, Default)]
pub struct OpenDoForm {
pub opt: OpenDoOpt,
}
impl From<OpenDoOpt> for OpenDoForm {
fn from(opt: OpenDoOpt) -> Self { Self { opt } }
}
impl TryFrom<ActionCow> for OpenDoForm {
type Error = anyhow::Error;
fn try_from(mut a: ActionCow) -> Result<Self, Self::Error> {
Ok(Self { opt: a.take_any("opt").ok_or_else(|| anyhow!("Invalid 'opt' in OpenDoForm"))? })
}
}
impl FromLua for OpenDoForm {
fn from_lua(_: Value, _: &Lua) -> mlua::Result<Self> { Err("unsupported".into_lua_err()) }
}
impl IntoLua for OpenDoForm {
fn into_lua(self, _: &Lua) -> mlua::Result<Value> { Err("unsupported".into_lua_err()) }
}
View on GitHub (pinned to 94abcfa92f)
When it happens
Trigger: Thrown at yazi-parser/src/mgr/open_do.rs:19 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sxyazi/yazi@94abcfa92f (2026-08-16).
Data as JSON: /api/errors/4c092c108e80d6dc.
Report an issue: GitHub.