{"record":{"id":"a2d3f60e351cae60","repo":"zed-industries/zed","slug":"action-sequence-cannot-be-built-directly","errorCode":null,"errorMessage":"action::Sequence cannot be built directly","messagePattern":"action::Sequence cannot be built directly","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/settings/src/keymap_file.rs","lineNumber":1547,"sourceCode":"                    && self\n                        .0\n                        .iter()\n                        .zip(other.0.iter())\n                        .all(|(a, b)| a.partial_eq(b.as_ref()))\n            })\n    }\n\n    fn boxed_clone(&self) -> Box<dyn Action> {\n        Box::new(ActionSequence(\n            self.0\n                .iter()\n                .map(|action| action.boxed_clone())\n                .collect::<Vec<_>>(),\n        ))\n    }\n\n    fn build(_value: Value) -> Result<Box<dyn Action>> {\n        Err(anyhow::anyhow!(\n            \"{} cannot be built directly\",\n            Self::name_for_type()\n        ))\n    }\n\n    fn action_json_schema(generator: &mut schemars::SchemaGenerator) -> Option<schemars::Schema> {\n        let keymap_action_schema = generator.subschema_for::<KeymapAction>();\n        Some(json_schema!({\n            \"type\": \"array\",\n            \"items\": keymap_action_schema\n        }))\n    }\n\n    fn deprecated_aliases() -> &'static [&'static str] {\n        &[]\n    }\n\n    fn deprecation_message() -> Option<&'static str> {","sourceCodeStart":1529,"sourceCodeEnd":1565,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/settings/src/keymap_file.rs#L1529-L1565","documentation":"ActionSequence::build() is intentionally unimplementable: action::Sequence exists only as a parsed keymap construct and can never be constructed directly from a single keymap JSON value, so build() always returns this error.","triggerScenarios":"Thrown at crates/settings/src/keymap_file.rs:1547 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the array syntax for sequences instead of a named single action"],"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-14T00:17:10.932Z"}