{"record":{"id":"8dc90709a02bf637","repo":"zed-industries/zed","slug":"user-is-empty-in-wsl-argument","errorCode":null,"errorMessage":"user is empty in wsl argument","messagePattern":"user is empty in wsl argument","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/cli/src/main.rs","lineNumber":437,"sourceCode":"            parse_path_with_position(symlink_path.join(\"ec/tory/file.txt\").to_str().unwrap())\n                .unwrap();\n        assert_eq!(result, expected);\n\n        // Relative path\n        let result = with_cwd(temp_tree.path(), || {\n            parse_path_with_position(\"symlink/ec/tory/file.txt\")\n        })\n        .unwrap();\n        assert_eq!(result, expected);\n    }\n}\n\nfn parse_path_in_wsl(source: &str, wsl: &str) -> Result<String> {\n    let mut source = PathWithPosition::parse_str(source);\n\n    let (user, distro_name) = if let Some((user, distro)) = wsl.split_once('@') {\n        if user.is_empty() {\n            anyhow::bail!(\"user is empty in wsl argument\");\n        }\n        (Some(user), distro)\n    } else {\n        (None, wsl)\n    };\n\n    let mut args = vec![\"--distribution\", distro_name];\n    if let Some(user) = user {\n        args.push(\"--user\");\n        args.push(user);\n    }\n\n    let command = [\n        OsStr::new(\"realpath\"),\n        OsStr::new(\"-s\"),\n        source.path.as_ref(),\n    ];\n","sourceCodeStart":419,"sourceCodeEnd":455,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/cli/src/main.rs#L419-L455","documentation":"Error \"user is empty in wsl argument\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/cli/src/main.rs:437 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bc538def4545534201bbfcac4e95ac34ea6501b6","analyzedAt":"2026-08-16T07:30:46.435Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}