-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Closed
Copy link
Labels
toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
When you specify a device by id/name and it finds multiple non-exact matches, it displays a weird message that looks like a bug.
Steps to Reproduce
- Open 2 iOS Simulators that begin with letter i (they all should, or can use 2 devices with names that start the same letter/prefix)
- run
flutter run -d i
What Happens
> flutter run -d i
Found 2 devices with name or id matching i:
What Expect to Happen
> flutter run -d i
Found 2 devices with name or id matching i:
iPhone 14 Pro (mobile) • xxxxxxxxxx • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
iPad mini (6th generation) (mobile) • xxxxxxxxxx • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
Other notes
This happens here:
flutter/packages/flutter_tools/lib/src/runner/flutter_command.dart
Lines 1513 to 1514 in 2b8f2d0
| globals.logger.printStatus(userMessages.flutterFoundSpecifiedDevices(devices.length, deviceManager.specifiedDeviceId!)); | |
| return null; |
Metadata
Metadata
Assignees
Labels
toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.