Proposal: add more details to message shown when the tool exits because it's unable to run adb #147436
Labels
P2
Important issues not at the top of the work list
team-tool
Owned by Flutter Tool team
tool
Affects the "flutter" command-line tool. See also t: labels.
triaged-tool
Triaged by Flutter Tool team
Occasionally, the Flutter daemon hosted by Visual Studio code on my machine will terminate unexpectedly. The last log message will look something like this:
From the fact that this only happens occasionally (1-3 times a week despite working on the flutter/flutter repo full-time), and the fact that I can normally invoke
adb
from my terminal just fine, I conclude that the reason for this crash is not something trivial (i.e.adb
is not installed.) I think we should augment this crash message to include more useful information so that this can be investigated further.Relevant code:
flutter/packages/flutter_tools/lib/src/android/android_device_discovery.dart
Lines 64 to 86 in 26e379e
I propose we augment the
throwToolExit
call to include the exception's message.The text was updated successfully, but these errors were encountered: