{"record":{"id":"8b7edf9cff7ec37f","repo":"zed-industries/zed","slug":"mapped-description-does-not-exist-in","errorCode":null,"errorMessage":"mapped {description} `{}` does not exist in {}","messagePattern":"mapped (.+?) `(.+?)` does not exist in (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/sandbox/src/windows_wsl.rs","lineNumber":1102,"sourceCode":"        .zip(resolved)\n        .map(|((mapping, description, required), resolved)| {\n            if resolved.used_fallback\n                && let PathMapping::NativeDrive { windows_path, .. } = mapping\n            {\n                log::warn!(\n                    \"failed to translate `{windows_path}` with wslpath in {}; \\\n                     falling back to `{}`\",\n                    wsl_distro_label(distro),\n                    resolved.path\n                );\n            }\n            if !resolved.exists {\n                // A bad request (the path simply isn't there), not an\n                // environment problem — the model can create it or fix the path\n                // and retry, so no `WSL_SANDBOX_UNAVAILABLE_PREFIX`. Protected\n                // Git paths are allowed to be absent, matching Linux bwrap's\n                // behavior: a missing path cannot be overlaid, so it is skipped.\n                ensure!(\n                    !required,\n                    \"mapped {description} `{}` does not exist in {}\",\n                    resolved.path,\n                    wsl_distro_label(distro)\n                );\n                return Ok(None);\n            }\n            Ok(Some(resolved.path))\n        })\n        .collect()\n}\n\n/// Flatten path mappings into the `(kind, path, fallback)` argument triples\n/// consumed by [`PATH_RESOLUTION_SCRIPT`].\nfn path_resolution_args<'a>(mappings: impl Iterator<Item = &'a PathMapping>) -> Vec<String> {\n    let mut args = Vec::new();\n    for mapping in mappings {\n        match mapping {","sourceCodeStart":1084,"sourceCodeEnd":1120,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/sandbox/src/windows_wsl.rs#L1084-L1120","documentation":"After translating a cwd/writable path into the WSL distro, the resolved path does not actually exist there (the plain existence check failed). A bad request: the granted path isn't present, so sandboxing cannot bind it.","triggerScenarios":"Thrown at crates/sandbox/src/windows_wsl.rs:1102 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the path exists inside the selected WSL distro (not just on the Windows side)","Correct typos or stale paths in the request before retrying","Ensure wslpath translation produced the intended Linux-side path"],"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"}