fix(scope): improve error message when Source object is missing from local scope#10294
Merged
davidfirst merged 7 commits intomasterfrom Apr 15, 2026
Merged
fix(scope): improve error message when Source object is missing from local scope#10294davidfirst merged 7 commits intomasterfrom
davidfirst merged 7 commits intomasterfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Improves the actionable guidance in the error thrown when a Version exists locally but a referenced Source blob is missing from the local scope (e.g., scope corruption after an interrupted import), by suggesting a recovery command that re-fetches object history.
Changes:
- Expand the “failed loading file …” error into a multi-line message that explains the likely cause (missing
Sourceobject). - Add a suggested recovery command:
bit import <id>@<version> --objects --all-history.
GiladShoham
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a Version object exists locally but a referenced Source blob is missing (rare scope corruption, e.g. interrupted import), the error gave no hint on how to recover.
bit import --objectsalone won't fix it because the remote short-circuits viareturnNothingIfGivenVersionExistswhen the Version hash already exists locally.The error now tells the user to run
bit import <id>@<version> --objects --all-history, which bypasses the delta optimization and re-fetches all referenced objects.