Fix Quick Create package installation failure handling with retry flow #569
+268
−16
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.
Quick Create was failing completely when package installation encountered conflicts (e.g., multiple requirements files with incompatible versions), even though the virtual environment was successfully created. Users were left uncertain about the state and had no clear path forward.
Problem
The original issue occurred when Quick Create attempted to install packages from multiple requirements files that had conflicting dependencies:
The environment would be created successfully, but the entire operation was reported as "failed" with no indication that the environment existed or what the user's options were.
Solution
Implemented a comprehensive retry flow that separates environment creation from package installation:
1. Enhanced Error Handling
createWithProgress
to separate environment creation from package installationCreateEnvironmentResult
interface to track success/failure state of each step independently2. User-Friendly Retry Notifications
When Quick Create encounters issues, users now see appropriate notifications:
Package Installation Failure (environment created successfully):
Environment Creation Failure (complete failure):
3. Package Selection Retry Flow
When users click "Select Packages", they get the same package selection interface used in custom environment creation, allowing them to:
Testing
CreateEnvironmentResult
interfaceImpact
Fixes #367.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.