Skip to content
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(cli): Log errors when adb command fails #3493

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Plebshot
Copy link

@Plebshot Plebshot commented Jan 4, 2025

As described in #3436, not having adb in the path (or having other problems with adb) fails silently.

The problem here is that the two adb commands for installing and starting the app are done on a new tokio background task without logging the result. Errors are propagated to the tasks handle, but the handle is detached and therefore never checked.

I wasn't sure what the best way to handle detached errors in the CLI is, so I went with simply logging errors instead of propagating them. Some open questions remain:

  • Should we explicitly add adb as requirement in the docs for the mobile docs?
  • Should we check for system dependencies beforehand for clearer error messages?

Fixes #3436

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android build doesn't fail when adb missing from path
1 participant