{"record":{"id":"43139ba5f77ca670","repo":"zed-industries/zed","slug":"mark-name-not-set","errorCode":null,"errorMessage":"mark {name} not set","messagePattern":"mark (.+?) not set","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/vim/src/command.rs","lineNumber":1360,"sourceCode":"                    editor.buffer().read(cx).buffer_point_to_anchor(\n                        &buffer,\n                        Point::new(row.saturating_sub(1), 0),\n                        cx,\n                    )\n                }) {\n                    anchor\n                        .to_point(&snapshot.buffer_snapshot())\n                        .row\n                        .saturating_add_signed(*offset)\n                } else {\n                    row.saturating_add_signed(offset.saturating_sub(1))\n                }\n            }\n            Position::Mark { name, offset } => {\n                let Some(Mark::Local(anchors)) =\n                    vim.get_mark(&name.to_string(), editor, window, cx)\n                else {\n                    anyhow::bail!(\"mark {name} not set\");\n                };\n                let Some(mark) = anchors.last() else {\n                    anyhow::bail!(\"mark {name} contains empty anchors\");\n                };\n                mark.to_point(&snapshot.buffer_snapshot())\n                    .row\n                    .saturating_add_signed(*offset)\n            }\n            Position::LastLine { offset } => snapshot\n                .buffer_snapshot()\n                .max_row()\n                .0\n                .saturating_add_signed(*offset),\n            Position::CurrentLine { offset } => editor\n                .selections\n                .newest_anchor()\n                .head()\n                .to_point(&snapshot.buffer_snapshot())","sourceCodeStart":1342,"sourceCodeEnd":1378,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/vim/src/command.rs#L1342-L1378","documentation":"Raised while resolving a vim Position::Mark when the requested mark name has no local anchor set in the current editor. The mark (e.g. 'a) was never placed, so its row cannot be resolved for the range or offset computation.","triggerScenarios":"Thrown at crates/vim/src/command.rs:1360 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the mark first (e.g. `m{name}` in normal mode) before using it in a range/command","Check for a typo in the mark name"],"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"}