{"record":{"id":"0ca123c765679d1b","repo":"zed-industries/zed","slug":"missing-split-point-after-kind-kind","errorCode":null,"errorMessage":"missing split point after kind '{kind}:'","messagePattern":"missing split point after kind '(.+?):'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/edit_prediction_cli/src/split_commit.rs","lineNumber":194,"sourceCode":"\nfn parse_split_point_value(value: &str) -> Result<SplitPointValue> {\n    if value.contains('.') {\n        value\n            .parse::<f64>()\n            .map(SplitPointValue::Fraction)\n            .with_context(|| format!(\"invalid split point fraction '{value}'\"))\n    } else {\n        value\n            .parse::<usize>()\n            .map(SplitPointValue::Index)\n            .with_context(|| format!(\"invalid split point index '{value}'\"))\n    }\n}\n\nfn parse_split_point(value: &str) -> Result<SplitPoint> {\n    if let Some((kind, split_point)) = value.split_once(':') {\n        let kind = kind.parse::<SplitPointKind>()?;\n        anyhow::ensure!(\n            !split_point.is_empty(),\n            \"missing split point after kind '{kind}:'\"\n        );\n        return Ok(SplitPoint::KindWithSplit {\n            kind,\n            split_point: parse_split_point_value(split_point)?,\n        });\n    }\n\n    if let Ok(kind) = value.parse::<SplitPointKind>() {\n        return Ok(SplitPoint::Kind(kind));\n    }\n\n    match parse_split_point_value(value)? {\n        SplitPointValue::Fraction(value) => Ok(SplitPoint::Fraction(value)),\n        SplitPointValue::Index(value) => Ok(SplitPoint::Index(value)),\n    }\n}","sourceCodeStart":176,"sourceCodeEnd":212,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/edit_prediction_cli/src/split_commit.rs#L176-L212","documentation":"parse_split_point parses strings like 'kind:value'; after a recognized kind prefix, the remainder did not end at a valid split point boundary — the message names the kind whose value is malformed. The split-point specification on the CLI/config is the input at fault.","triggerScenarios":"Thrown at crates/edit_prediction_cli/src/split_commit.rs:194 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the split point syntax, e.g. 'index:3' or 'fraction:0.5' with valid numbers","Check for trailing characters after the value"],"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"}