-
Notifications
You must be signed in to change notification settings - Fork 906
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
Fix for run-android
on windows.
#2236
Fix for run-android
on windows.
#2236
Conversation
@@ -61,7 +61,7 @@ async function runAndroid(_argv: Array<string>, config: Config, args: Flags) { | |||
); | |||
|
|||
if (startPackager) { | |||
await startServerInNewWindow( | |||
startServerInNewWindow( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mind also adding comment why awaiting this function breaks things?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 🙏
Is this related to facebook/react-native#42074 ? |
Let's backport this to 0.73 cc @thymikee |
* Fix for `run-android` on windows. * Comment added explaining why awaiting is not used --------- Co-authored-by: Abdullah Al Jahid <[email protected]>
and we need a cli release first to fix on rn side? |
Yes, that's how it works. |
@szymonrybczak was this related to the linked issue? If so, can we make sure we pick it in a release? |
Yes, we'll handle this today. |
Summary:
Fixes #2219
Fixes
run-android
command on windows.The issue is reported here - #2219
Bug was introduced on #2021
Issue is - there is no default terminal defined for windows. In the above mentioned PR - terminal param became mandatory. So it was failing.
It also fixes where it tries to run
startServerInNewWindow
with async call, which causes CLI to hang indefinitely. And the native build never starts.Test Plan:
24.12.2023_18.49.28_REC.mp4
Checklist