{"record":{"id":"edde0b6854781ae1","repo":"zed-industries/zed","slug":"path-is-not-absolute-path","errorCode":null,"errorMessage":"path is not absolute: {path}","messagePattern":"path is not absolute: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/sandbox/src/windows_wsl.rs","lineNumber":1512,"sourceCode":"        _ => \"/\".to_string(),\n    };\n\n    Ok(WslPath {\n        distro: Some(distro.to_string()),\n        path: linux_path,\n    })\n}\n\nfn parse_native_drive_path(path: &str) -> Result<WslPath> {\n    let path = path\n        .strip_prefix(\"\\\\\\\\?\\\\\")\n        .unwrap_or(path)\n        .replace('\\\\', \"/\");\n    let mut chars = path.chars();\n    let Some(drive) = chars.next().filter(|drive| drive.is_ascii_alphabetic()) else {\n        bail!(\"path is not a drive-letter Windows path: {path}\");\n    };\n    ensure!(chars.next() == Some(':'), \"path is not absolute: {path}\");\n    let rest = chars.as_str().trim_start_matches('/');\n    let drive = drive.to_ascii_lowercase();\n    let linux_path = if rest.is_empty() {\n        format!(\"/mnt/{drive}\")\n    } else {\n        format!(\"/mnt/{drive}/{rest}\")\n    };\n    Ok(WslPath {\n        distro: None,\n        path: linux_path,\n    })\n}\n\n#[cfg(test)]\nmod tests {\n    use super::*;\n\n    #[test]","sourceCodeStart":1494,"sourceCodeEnd":1530,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/sandbox/src/windows_wsl.rs#L1494-L1530","documentation":"Raised in parse_native_drive_path when, after stripping a possible \\\\?\\ prefix, the string is not a Windows drive-letter absolute path: the first char is not an alphabetic drive letter, or the second char is not ':'. The {path} shown is the malformed input.","triggerScenarios":"Thrown at crates/sandbox/src/windows_wsl.rs:1512 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a fully-qualified drive-letter path such as C:\\dir\\file","Handle UNC (\\\\server\\share) or WSL (/mnt/...) paths through their own resolvers instead"],"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"}