-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow user to manually choose sources directory during conversion #1897
Comments
Agreed that it shouldn't be raising an error... that's an oversight of review on my part. The rest of the infrastructure is there to prompt the user - but we're raising an error before we get to that logic. The only complication I can see is that it's not obvious what the default value should be - but maybe a blank string will work (because it will be rejected by validation). |
I was looking into this problem to make my first contribution since this was marked as "good first issue",
However, setting an arbitrary main_module during convert command contradicts these checks and raises an error. so, the person who programmed that portion of convert command must have made the decision to enforce these checks. Since, all apps rely on Approach to solutions
I am new to this codebase, so please correct me if I am missing something due to my limited understanding. Thanks for your patience, |
Thanks for taking a look at this! FWIW - we don't formally assign tickets; if the ticket is open, and nobody else appears to be working on it (i.e., there hasn't been a update for a couple of weeks), it's available. As for your analysis of the ticket - on closer inspection, it appears my triage analysis was incorrect. There's 3 names in use here:
The original ticket description suggested that the last point (that the module name is a normalised form of the app name) isn't required. My analysis comment reinforced that idea. However, that assertion is incorrect - the module name must be derivable from the app name, as this a core part of how Briefcase starts an app. This confusion occurs for 2 reasons. Firstly, the original ticket refers to "project name" and "directory name", rather than the names used in the source code; and second, the source code refers to "app name" and "module name", and in my triage analysis, I got "formal name" and "app name", mixed up. Secondly, in the So - there's no requirement that the formal name be "normalisable" to the app name - but the module name must be normalisable from the app name, and the directory name must match the module name. Using the example from the original ticket - a "project" named "My Favorite App", with a directory named To that end, the validation that is being performed is correct. It will raise an error if it can't find So - thanks for your interest in this ticket - but it appears I've sent you on a wild goose chase. I'm going to close this ticket as invalid. Apologies for the confusion and wasted effort; hopefully you found the triage process worthwhile, and you'll be able to use that knowledge on another "first timer" ticket. #1900 is one possibility that sticks in the |
What is the problem or limitation you are having?
The
briefcase convert
command should allow the user to choose a sources directory if a suitable one cannot be found instead of raising. For instance, if my project was named "My Favorite App", Briefcase is expecting a directory named "my_favorite_app"...but "myfavoriteapp" is reasonable and should be usable by the convert command.Describe the solution you'd like
Allow users to choose an arbitrary sub-directory for the app sources.
Describe alternatives you've considered
Re-organize the existing project prior to conversion.
Additional context
No response
The text was updated successfully, but these errors were encountered: