{"record":{"id":"af99510f297d8c6b","repo":"zed-industries/zed","slug":"unknown-swe-atlas-part-part-valid-valid","errorCode":null,"errorMessage":"unknown SWE-Atlas part '{part}' (valid: {valid})","messagePattern":"unknown SWE-Atlas part '(.+?)' \\(valid: (.+?)\\)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"crates/eval_cli/zed_eval/config.py","lineNumber":160,"sourceCode":"        \"harbor_version\": HARBOR_VERSION,\n        \"modal_client_version\": MODAL_VERSION,\n    }\n\n\ndef get_judge(name: str) -> JudgeConfig:\n    try:\n        return JUDGES[name]\n    except KeyError as error:\n        valid = \", \".join(sorted(JUDGES))\n        raise ValueError(f\"unknown judge preset '{name}' (valid: {valid})\") from error\n\n\ndef canonical_part(part: str) -> str:\n    normalized = part.strip().lower()\n    if normalized in (\"qna\", \"rf\", \"tw\"):\n        return normalized\n    valid = \", \".join((\"qna\", \"rf\", \"tw\"))\n    raise ValueError(f\"unknown SWE-Atlas part '{part}' (valid: {valid})\")\n\n\ndef resolve_model_preset(model: str) -> str:\n    return MODEL_PRESETS.get(model, model)\n","sourceCodeStart":142,"sourceCodeEnd":165,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/eval_cli/zed_eval/config.py#L142-L165","documentation":"Guard for issue #27283: Zed's per-file memory usage is high enough that a 10 GB file can consume 64+ GB of RAM, so the worktree refuses to load any file of 6 GiB or more before decoding it. This prevents system freezes at the cost of refusing the open. The constant is FILE_SIZE_MAX = 6 * 1024^3 bytes.","triggerScenarios":"Opening/loading a buffer in a worktree where fs.metadata(&abs_path) reports len >= 6 GiB: large logs, datasets, database dumps, core files, or ML exports.","commonSituations":"Clicking a multi-GB access log or data export in the project panel; files that grew after the worktree indexed them; importing a directory of nightly log bundles.","solutions":["Open the file with a streaming tool instead (less, tail, a large-file viewer)","Extract the region you need into a smaller file and open that (e.g. sed -n '1,100000p' huge.log > slice.log)","Split or compress the source file so it stays under the 6 GiB limit"],"exampleFix":"# before\nopen huge.log            # refused: file is 40GB\n\n# after\nsed -n '1,1000000p' huge.log > /tmp/slice.log\nopen /tmp/slice.log      # workable slice under the limit","handlingStrategy":"validation","validationCode":"// Stat before offering 'open':\nconst FILE_SIZE_MAX: u64 = 6 * 1024 * 1024 * 1024; // 6 GiB, mirrors worktree limit\nif let Some(metadata) = fs.metadata(&path).await? {\n    if metadata.len >= FILE_SIZE_MAX {\n        show_hint(&format!(\"{} is {:.1} GiB — open a slice instead\", path.display(), metadata.len as f64 / (1024.0 * 1024.0 * 1024.0)));\n        return;\n    }\n}","typeGuard":null,"tryCatchPattern":"match open_buffer(&path, cx).await {\n    Err(err) if err.to_string().contains(\"too large\") => {\n        suggest_streaming_tools(&path); // less / tail / split guidance\n    }\n    result => result,\n}","preventionTips":["Show file sizes in the project panel and gray out entries above the limit before the user clicks","Rotate/split logs at sizes well below 6 GiB so editors never see an unopenable file","For huge files, build a head-slice workflow (sed/dd) into team docs instead of relying on the editor"],"tags":["file","size-limit","buffer","memory"],"backgroundTag":"file-too-large","analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}