Remove new project folder if new_project.kts fails #268
Replies: 5 comments 12 replies
-
After I used this script to generate a new project so far, I found that sometimes it errors with completed generating. So I'd like to keep the new project folder so that there's no blocker to use the new project further. |
Beta Was this translation helpful? Give feedback.
-
From this comment, I would vote for adding a flag |
Beta Was this translation helpful? Give feedback.
-
@Tuubz When I first use the template, there was a time when the process failed at building the project. But that was because of my sdk path problem in the terminal. I could build the generated project successfully with AS. At that time, I generate the project and build with AS until I can fix my sdk path. So I would like to keep the options open by adding a flag. |
Beta Was this translation helpful? Give feedback.
-
@ryan-conway Shall I go ahead and create an RFC for this? 🙏 |
Beta Was this translation helpful? Give feedback.
-
Issue created: #433 Locking & resolving discussion 🔒 |
Beta Was this translation helpful? Give feedback.
-
When running
new_project.kts
, it runs a series of steps:Let's say one of the tests failed in step 8, then the new project folder is currently not removed.
Disadvantage?
If the developer didn't look at the logs, it could give the wrong impression that the project was generated without any error.
Advantage?
On the flip side, a developer is not blocked to generate a new project if any of the steps fails.
9 votes ·
Beta Was this translation helpful? Give feedback.
All reactions