{"record":{"id":"3df31e2e2f02d67f","repo":"zed-industries/zed","slug":"diff-path-does-not-exist-diff-path","errorCode":null,"errorMessage":"--diff path does not exist: {diff_path}","messagePattern":"--diff path does not exist: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/cli/src/main.rs","lineNumber":651,"sourceCode":"\n    let exit_status = Arc::new(Mutex::new(None));\n    let mut paths = vec![];\n    let mut urls = vec![];\n    let mut diff_paths = vec![];\n    let mut stdin_tmp_file: Option<fs::File> = None;\n    let mut anonymous_fd_tmp_files = vec![];\n\n    // Check if any diff paths are directories to determine diff_all mode\n    let diff_all_mode = args\n        .diff\n        .chunks(2)\n        .any(|pair| Path::new(&pair[0]).is_dir() || Path::new(&pair[1]).is_dir());\n\n    for path in args.diff.chunks(2) {\n        let left = parse_path_with_position(&path[0])?;\n        let right = parse_path_with_position(&path[1])?;\n        for diff_path in [&left, &right] {\n            anyhow::ensure!(\n                diff_path_exists(diff_path),\n                \"--diff path does not exist: {diff_path}\"\n            );\n        }\n        diff_paths.push([left, right]);\n    }\n\n    let (expanded_diff_paths, temp_dirs) = expand_directory_diff_pairs(diff_paths)?;\n    diff_paths = expanded_diff_paths;\n    // Prevent automatic cleanup of temp directories containing empty stub files\n    // for directory diffs. The CLI process may exit before Zed has read these\n    // files (e.g., when RPC-ing into an already-running instance). The files\n    // live in the OS temp directory and will be cleaned up on reboot.\n    for temp_dir in temp_dirs {\n        let _ = temp_dir.keep();\n    }\n\n    #[cfg(target_os = \"windows\")]","sourceCodeStart":633,"sourceCodeEnd":669,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/cli/src/main.rs#L633-L669","documentation":"Error \"--diff path does not exist: {diff_path}\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/cli/src/main.rs:651 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"}