{"record":{"id":"e29f1ff440b35f93","repo":"zed-industries/zed","slug":"expected-array-of-actions","errorCode":null,"errorMessage":"expected array of actions","messagePattern":"expected array of actions","errorType":"validation","errorClass":"ActionBuildError::BuildError","httpStatus":null,"severity":"error","filePath":"crates/settings/src/keymap_file.rs","lineNumber":1506,"sourceCode":"                                    name: Self::name_for_type().to_string(),\n                                    error: anyhow::anyhow!(\n                                        \"error at sequence index {index}: {err}\"\n                                    ),\n                                });\n                            }\n                        }\n                    })\n                    .collect::<Result<Vec<_>, _>>()?;\n                Ok(Box::new(Self(actions)))\n            }\n            _ => Err(Self::expected_array_error()),\n        }\n    }\n\n    fn expected_array_error() -> ActionBuildError {\n        ActionBuildError::BuildError {\n            name: Self::name_for_type().to_string(),\n            error: anyhow::anyhow!(\"expected array of actions\"),\n        }\n    }\n}\n\nimpl Action for ActionSequence {\n    fn name(&self) -> &'static str {\n        Self::name_for_type()\n    }\n\n    fn name_for_type() -> &'static str\n    where\n        Self: Sized,\n    {\n        \"action::Sequence\"\n    }\n\n    fn partial_eq(&self, action: &dyn Action) -> bool {\n        action","sourceCodeStart":1488,"sourceCodeEnd":1524,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/settings/src/keymap_file.rs#L1488-L1524","documentation":"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.","triggerScenarios":"Thrown at crates/settings/src/keymap_file.rs:1506 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Write the sequence as an array: [\"Action1\", \"Action2\"]"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}