{"record":{"id":"7cfa139ead0812bc","repo":"zed-industries/zed","slug":"untracked-files-are-present-and-will-not-be-includ","errorCode":null,"errorMessage":"untracked files are present and will NOT be included in the build patch.\nCommit/remove them, or pass --allow-untracked to proceed anyway.\n{preview}","messagePattern":"untracked files are present and will NOT be included in the build patch\\.\nCommit/remove them, or pass --allow-untracked to proceed anyway\\.\n(.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"crates/eval_cli/zed_eval/source.py","lineNumber":242,"sourceCode":"    pre_resolved_base_sha: str | None = None,\n) -> tuple[dict[str, Any], str]:\n    # `pre_resolved_base_sha` is a canonical SHA already resolved against the\n    # remote (see `resolve_remote_ref`); it must be used verbatim because the\n    # launcher may not have that commit fetched locally to `rev-parse`.\n    if pre_resolved_base_sha:\n        resolved_base_sha = pre_resolved_base_sha\n    elif base_sha:\n        resolved_base_sha = resolve_git_ref(base_sha)\n    else:\n        resolved_base_sha = current_base_sha()\n    resolved_repo_url = repo_url or DEFAULT_REPO_URL\n    patch = read_patch(patch_path, resolved_base_sha, clean=clean)\n    patch_sha256 = sha256_text(patch) if patch.strip() else None\n    untracked = [] if clean else untracked_files()\n    is_dirty = bool(patch.strip())\n\n    if untracked and not allow_untracked:\n        raise ValueError(format_untracked_warning(untracked))\n\n    if require_clean and is_dirty:\n        raise ValueError(\n            \"tracked changes are present. Commit or stash them, or omit --require-clean.\"\n        )\n\n    return {\n        \"schema\": SOURCE_SCHEMA_VERSION,\n        \"type\": \"git_patch\",\n        \"repo_url\": resolved_repo_url,\n        \"base_sha\": resolved_base_sha,\n        \"base_ref\": source_label or (base_sha if clean else current_ref_name()),\n        \"patch_sha256\": patch_sha256,\n        \"is_dirty\": is_dirty,\n        \"patch_path\": \"source.patch\" if patch.strip() else None,\n        \"untracked_files\": untracked,\n        \"untracked_files_included\": False,\n        \"allow_untracked\": allow_untracked,","sourceCodeStart":224,"sourceCodeEnd":260,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/eval_cli/zed_eval/source.py#L224-L260","documentation":"Error \"untracked files are present and will NOT be included in the build patch.\nCommit/remove them, or pass --allow-untracked to proceed anyway.\n{preview}\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/eval_cli/zed_eval/source.py:242 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"}