-
-
Notifications
You must be signed in to change notification settings - Fork 474
Closed
Labels
bugA crash or error in behavior.A crash or error in behavior.good first issueIs this your first time contributing? This could be a good place to start!Is this your first time contributing? This could be a good place to start!macOSThe issue relates to Apple macOS support.The issue relates to Apple macOS support.windowsThe issue relates to Microsoft Windows support.The issue relates to Microsoft Windows support.
Description
Describe the bug
When running an app on macOS or Windows, briefcase run will fail if a build step hasn't been executed.
On Windows, the error manifests as:
SystemExit: stub: No module named stub
On macOS, it is
The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x158e246f0 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}
Steps to reproduce
$ briefcase new -Q app_name=foobar
$ cd foobar
$ briefcase create
$ briefcase run
Expected behavior
App should start without error. The run should imply the need for a build on the macOS/Windows app templates, but because the template and binary both exist, the need for a build isn't detected.
Screenshots
No response
Environment
- Operating System: macOS, Windows
- Python version: All
- Software versions:
- Briefcase: 0.3.17+
Logs
Traceback (most recent call last):
File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 183, in _run_module_as_main
File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 136, in _get_module_details
runpy._Error: No module named stub
During handling of the above exception, another exception occurred:
SystemExit: stub: No module named stub
---------------------------------------------------------------------------
Application quit abnormally (Exit code -1)!
stub: No module named stub
Unable to start app helloworld.
Additional context
The briefcase dev is normal, but the briefcase run is abnormal.
If you invoke briefcase run on a clean project, the app works.
If you invoke briefcase build before invoking briefcase run, the app works.
This only affects the app targets; the Xcode/VisualStudio templates do the right thing, because they require an explicit compilation step to create the binary.
Metadata
Metadata
Assignees
Labels
bugA crash or error in behavior.A crash or error in behavior.good first issueIs this your first time contributing? This could be a good place to start!Is this your first time contributing? This could be a good place to start!macOSThe issue relates to Apple macOS support.The issue relates to Apple macOS support.windowsThe issue relates to Microsoft Windows support.The issue relates to Microsoft Windows support.