zed-industries/zed · error · ActionBuildError::BuildError
expected array of actions
Error message
expected array of actions
What it means
Shape guard in ActionSequence::build_sequence(): the keymap JSON value for an action::Sequence was not an array, so there are no per-element actions to build. Any non-array value (string, object, number) is rejected with this generic expected-array error.
Source
Thrown at crates/settings/src/keymap_file.rs:1506
name: Self::name_for_type().to_string(),
error: anyhow::anyhow!(
"error at sequence index {index}: {err}"
),
});
}
}
})
.collect::<Result<Vec<_>, _>>()?;
Ok(Box::new(Self(actions)))
}
_ => Err(Self::expected_array_error()),
}
}
fn expected_array_error() -> ActionBuildError {
ActionBuildError::BuildError {
name: Self::name_for_type().to_string(),
error: anyhow::anyhow!("expected array of actions"),
}
}
}
impl Action for ActionSequence {
fn name(&self) -> &'static str {
Self::name_for_type()
}
fn name_for_type() -> &'static str
where
Self: Sized,
{
"action::Sequence"
}
fn partial_eq(&self, action: &dyn Action) -> bool {
actionView on GitHub (pinned to f4178619ac)
Solutions
- Write the sequence as an array: ["Action1", "Action2"]
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/settings/src/keymap_file.rs:1506 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/e29f1ff440b35f93.
Report an issue: GitHub.