sxyazi/yazi · error · anyhow::Error
not a number
Error message
not a number
What it means
Error "not a number" thrown in sxyazi/yazi.
Source
Thrown at yazi-shared/src/data/macros.rs:72
macro_rules! impl_into_number {
($a:ty, $($b:ty),+ $(,)?) => {
impl_into_number!(@impl ref $a, $a, $($b),+);
impl_into_number!(@impl owned $a, &$a, $($b),+);
};
(@impl $kind:ident $t:ty, $a:ty, $($b:ty),+ $(,)?) => {
$(
impl TryFrom<$a> for $b {
type Error = anyhow::Error;
fn try_from(value: $a) -> Result<Self, Self::Error> {
paste::paste! {
Ok(match ref_or_owned!($kind, value) {
$t::Integer(i) if *i == *i as $b as i64 => *i as $b,
$t::Number(n) if f64::from(*n) == f64::from(*n) as $b as f64 => f64::from(*n) as $b,
$t::String(s) => s.parse()?,
$t::Id(i) if i.get() == i.get() as $b as u64 => i.get() as $b,
_ => anyhow::bail!("not a number"),
})
}
}
}
)+
};
}
View on GitHub (pinned to 94abcfa92f)
When it happens
Trigger: Thrown at yazi-shared/src/data/macros.rs:72 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/b0695c06e7ffdd4a.
Report an issue: GitHub.