{"record":{"id":"ddf8fd35dc6c77e2","repo":"zed-industries/zed","slug":"invalid-argument","errorCode":null,"errorMessage":"Invalid argument: {}","messagePattern":"Invalid argument: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/vim/src/command.rs","lineNumber":576,"sourceCode":"            let project_path = ProjectPath {\n                worktree_id: worktree.read(cx).id(),\n                path: path.into_arc(),\n            };\n\n            let direction = if action.vertical {\n                SplitDirection::vertical(cx)\n            } else {\n                SplitDirection::horizontal(cx)\n            };\n\n            workspace\n                .split_path_preview(project_path, false, Some(direction), window, cx)\n                .detach_and_log_err(cx);\n        })\n    });\n\n    Vim::action(editor, cx, |vim, action: &DeleteMarks, window, cx| {\n        fn err(s: String, window: &mut Window, cx: &mut Context<Editor>) {\n            let _ = window.prompt(\n                gpui::PromptLevel::Critical,\n                &format!(\"Invalid argument: {}\", s),\n                None,\n                &[\"Cancel\"],\n                cx,\n            );\n        }\n        vim.update_editor(cx, |vim, editor, cx| match action {\n            DeleteMarks::Marks(s) => {\n                if s.starts_with('-') || s.ends_with('-') || s.contains(['\\'', '`']) {\n                    err(s.clone(), window, cx);\n                    return;\n                }\n\n                let to_delete = if s.len() < 3 {\n                    Some(s.clone())\n                } else {","sourceCodeStart":558,"sourceCodeEnd":594,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/vim/src/command.rs#L558-L594","documentation":"Vim's ex-command error helper `err` reports an invalid or malformed argument for a command (e.g. :split/:delete-marks with a bad target). This is a user-input validation error surfaced through the command bar, not an internal failure.","triggerScenarios":"Thrown at crates/vim/src/command.rs:576 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the ex-command argument syntax (e.g. valid mark names or file paths)","Quote or escape special characters in the argument","See the error text for which command argument was rejected"],"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"}