Session Creator does not properly clean up after it fails due to missing workload
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: Official Release
Version: 4.1.0.1898
Platform(s): Windows (During project creation)
Describe the bug
When I try to create a new library project without the required workloads installed, the project fails to create. The folder where I was intending to create the project is not properly cleaned up, so if I attempt to create a new project after installing the necessary workloads, I cannot continue until I manually delete the folder that was created.
To Reproduce
Steps to reproduce the behavior:
- Start Stride without ios/android workloads
- Select General -> Code library
- Provide a name for the project folder
- Provide a Library name and Namespace, then continue
- Observe failure in creating project due to missing workload
- (Optional) Install the missing workload
- Try creating the project with the same name
- Observer error "Cannot use the selected name because a folder with the same name already exists in the same location."
Expected behavior
If a project fails creation, then the system should be cleaned up as though the project was not created in the first place.
Screenshots
N/A
Log and callstacks
N/A
Additional context
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Reproduce the failure in Stride's Session Creator with the missing-workload setup, then trace the project-creation failure path and verify that retrying with the same folder succeeds after cleanup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100