Skip to content

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented May 18, 2020

Description

Always show diagnostics in flutter devices. Currently only shown if no devices are found (not great when you have desktop and web features on and devices are permanently available).

flutter$ flutter devices
1 connected device:

Pixel 4 • 98281FFAZ005T6 • android-arm64 • Android 10 (API 29)

vs

$ flutter devices
1 connected device:

Pixel 4 • 98281FFAZ005T6 • android-arm64 • Android 10 (API 29)

• Error: iPhone is not paired with your computer. To use iPhone with Xcode, unlock it and choose to trust this computer when prompted. (code -9)

Related Issues

Fixes #54388

Tests

devices_test

Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I signed the [CLA].
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

  • No, no existing tests failed, so this is not a breaking change.
  • Yes, this is a breaking change. If not, delete the remainder of this section.

@jmagman jmagman added the tool Affects the "flutter" command-line tool. See also t: labels. label May 18, 2020
@jmagman jmagman requested a review from zanderso May 18, 2020 22:15
@jmagman jmagman self-assigned this May 18, 2020
globals.printStatus('');
for (final String diagnostic in diagnostics) {
globals.printStatus('• $diagnostic', hangingIndent: 2);
} else {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip: this one is easier to review with whitespace changes ignored:
Screen Shot 2020-05-18 at 3 20 17 PM

@fluttergithubbot fluttergithubbot merged commit adead09 into flutter:master May 20, 2020
@jmagman jmagman deleted the diagnostics branch May 20, 2020 01:25
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show error messages for connected iOS physical devices with error messages

4 participants