Skip to content

Device list missing when Flutter finds multiple devices with matching name/id #119271

@vashworth

Description

@vashworth

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

  1. 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)
  2. 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:

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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions