After briefcase create
fails, output of subsequent commands is very confusing
#487
Labels
bug
A crash or error in behavior.
Describe the bug
I'm new to using briefcase. When I ran
briefcase create
on my app, it failed because of a network error.Once I fixed the network error, I had no idea what I should do. I had to dig into the briefcase source code to work out what was going on.
When I tried
briefcase create
again, it said:This sounds dangerous—maybe it's going to delete and recreate my whole project!
(It's not, but as a new user the message didn't make that clear to me.)
When I tried
briefcase update
, things looked more promising:(This is misleading too, because the support package still hasn't been downloaded.)
When I tried
briefcase build
it was super confusing:At this point Docker tried to find a Docker image for com.example.myapp on the internet.
To Reproduce
Steps to reproduce the behaviour:
briefcase create
, e.g., by pulling out your network cablebriefcase create
fails, trybriefcase create
,briefcase update
, andbriefcase build
to see the confusing output.Expected behaviour
I'm not sure what the correct thing to do here is. Perhaps some combination of these things:
briefcase create
fails, remove the packaging configuration directory so that calls tobriefcase update
fail with a nice message, and calls tobriefcase build
try the create step first. (A potential downside to this is that the package configuration directory wouldn't exist for someone to inspect what went wrong.)briefcase create
fails, store a failed flag in the package configuration directory, and havebriefcase update
andbriefcase build
detect that flag and warn the user that they may need to rerunbriefcase create
.Environment:
Additional note
I'm happy to submit a patch for fixing this, but I need some guidance as to what the correct solution is.
The text was updated successfully, but these errors were encountered: