zed-industries/zed · error · ValueError
untracked files are present and will NOT be included in the
Error message
untracked files are present and will NOT be included in the build patch.
Commit/remove them, or pass --allow-untracked to proceed anyway.
{preview} What it means
Error "untracked files are present and will NOT be included in the build patch. Commit/remove them, or pass --allow-untracked to proceed anyway. {preview}" thrown in zed-industries/zed.
Source
Thrown at crates/eval_cli/zed_eval/source.py:242
pre_resolved_base_sha: str | None = None,
) -> tuple[dict[str, Any], str]:
# `pre_resolved_base_sha` is a canonical SHA already resolved against the
# remote (see `resolve_remote_ref`); it must be used verbatim because the
# launcher may not have that commit fetched locally to `rev-parse`.
if pre_resolved_base_sha:
resolved_base_sha = pre_resolved_base_sha
elif base_sha:
resolved_base_sha = resolve_git_ref(base_sha)
else:
resolved_base_sha = current_base_sha()
resolved_repo_url = repo_url or DEFAULT_REPO_URL
patch = read_patch(patch_path, resolved_base_sha, clean=clean)
patch_sha256 = sha256_text(patch) if patch.strip() else None
untracked = [] if clean else untracked_files()
is_dirty = bool(patch.strip())
if untracked and not allow_untracked:
raise ValueError(format_untracked_warning(untracked))
if require_clean and is_dirty:
raise ValueError(
"tracked changes are present. Commit or stash them, or omit --require-clean."
)
return {
"schema": SOURCE_SCHEMA_VERSION,
"type": "git_patch",
"repo_url": resolved_repo_url,
"base_sha": resolved_base_sha,
"base_ref": source_label or (base_sha if clean else current_ref_name()),
"patch_sha256": patch_sha256,
"is_dirty": is_dirty,
"patch_path": "source.patch" if patch.strip() else None,
"untracked_files": untracked,
"untracked_files_included": False,
"allow_untracked": allow_untracked,View on GitHub (pinned to bc538def45)
When it happens
Trigger: Thrown at crates/eval_cli/zed_eval/source.py:242 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@bc538def45 (2026-08-16).
Data as JSON: /api/errors/7cfa139ead0812bc.
Report an issue: GitHub.