You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@capacitor/ios: not installed
@capacitor/cli: 7.2.0
@capacitor/core: 7.2.0
@capacitor/android: 7.2.0
[success] Android looking great! 👌
Other API Details
Bun 1.2.12
Node 23.11.0
Platforms Affected
iOS
Android
Web
Current Behavior
cap run android --list fails with no error message when no devices are connected:
$ bunx cap run android --list
[fatal] native-run failed with error
More details for this error may be available online: https://github.com/ionic-team/native-run/wiki/Android-Errors
Directly calling native-run works normally:
$ bunx native-run android --list
Connected Devices:
No connected devices found
Virtual Devices:
No virtual devices found
When connecting a device, the original command works:
$ bunx cap run android --list
Name API Target ID
----------------------------------
Sony XQ-BQ52 API 33 <redacted>
Expected Behavior
I expect cap run android --list to not fail when no devices are present. Or at the very least, have an actual error message.
Project Reproduction
You can just use the blank project created with @capacitor/app
Additional Information
No response
The text was updated successfully, but these errors were encountered:
This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.
Yeah, native-run doesn't return any errors when there are no devices, but Capacitor CLI assumes that if there are no devices then there are errors, so it shows an empty error message because there are no devices and no errors.
The CLI should show if there are any errors instead of assuming there are.
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 7.2.0
@capacitor/core: 7.2.0
@capacitor/android: 7.2.0
@capacitor/ios: 7.2.0
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/cli: 7.2.0
@capacitor/core: 7.2.0
@capacitor/android: 7.2.0
[success] Android looking great! 👌
Other API Details
Platforms Affected
Current Behavior
cap run android --list
fails with no error message when no devices are connected:Directly calling
native-run
works normally:When connecting a device, the original command works:
Expected Behavior
I expect
cap run android --list
to not fail when no devices are present. Or at the very least, have an actual error message.Project Reproduction
You can just use the blank project created with @capacitor/app
Additional Information
No response
The text was updated successfully, but these errors were encountered: