zed-industries/zed · error · ValueError
unknown SWE-Atlas part
Error message
unknown SWE-Atlas part '{part}' (valid: {valid}) What it means
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.
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
Example fix
# before open huge.log # refused: file is 40GB # after sed -n '1,1000000p' huge.log > /tmp/slice.log open /tmp/slice.log # workable slice under the limit
Defensive patterns
Strategy: validation
Validate before calling
// Stat before offering 'open':
const FILE_SIZE_MAX: u64 = 6 * 1024 * 1024 * 1024; // 6 GiB, mirrors worktree limit
if let Some(metadata) = fs.metadata(&path).await? {
if metadata.len >= FILE_SIZE_MAX {
show_hint(&format!("{} is {:.1} GiB — open a slice instead", path.display(), metadata.len as f64 / (1024.0 * 1024.0 * 1024.0)));
return;
}
} Try / catch
match open_buffer(&path, cx).await {
Err(err) if err.to_string().contains("too large") => {
suggest_streaming_tools(&path); // less / tail / split guidance
}
result => result,
} Prevention
- 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
When it happens
Trigger: 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.
Common situations: 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.
Related errors
- Arena chunk_size of is too small to allocate bytes
- Buffer edited while formatting. Aborting
- Canvas text raster exceeds maximum dimension
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/af99510f297d8c6b.
Report an issue: GitHub.
Appendix: source
Thrown at crates/eval_cli/zed_eval/config.py:160
"harbor_version": HARBOR_VERSION,
"modal_client_version": MODAL_VERSION,
}
def get_judge(name: str) -> JudgeConfig:
try:
return JUDGES[name]
except KeyError as error:
valid = ", ".join(sorted(JUDGES))
raise ValueError(f"unknown judge preset '{name}' (valid: {valid})") from error
def canonical_part(part: str) -> str:
normalized = part.strip().lower()
if normalized in ("qna", "rf", "tw"):
return normalized
valid = ", ".join(("qna", "rf", "tw"))
raise ValueError(f"unknown SWE-Atlas part '{part}' (valid: {valid})")
def resolve_model_preset(model: str) -> str:
return MODEL_PRESETS.get(model, model)
View on GitHub (pinned to f4178619ac)