Repository navigation
[doctor] Add macOS architecture to doctor output #65976
Description
Activity
- addedtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.t: flutter doctorProblem related to the "flutter doctor" toolProblem related to the "flutter doctor" tool
on Sep 16, 2020 It's already there (darwin-x64) in
doctoranddevices:macOS (desktop) • macos • darwin-x64 • Mac OS X 10.15.5 19F101It's already there (darwin-x64) in
doctoranddevices:Never mind, that's hardcoded.
Future<TargetPlatform> get targetPlatform async => TargetPlatform.darwin_x64; We print darwin-x64 for every mac though @jmagman , we need to fix that too
- addedP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter project
on Sep 24, 2020 uname -mis reportingx86_64when forked from a dart process, even on ARM (I stepped into it and checked the output from #65978), soflutter doctoris still showing x86. I don't know how we can get around that until dart is un-rosettafied.[✓] Flutter (Channel master, 1.22.0-10.0.pre.448, on macOS 11.0 20A5299w x86_64, locale en-US)$ uname -m arm64@jmagman That's weird since uname is it's own process I wouldn't have expected the parent to make any difference. You might try changing these parameters to
Process.start--bool includeParentEnvironment,bool runInShell
https://api.dart.dev/stable/2.10.0/dart-io/Process-class.htmlIt's possible uname is just grabbing from an environment variable and since includeParentEnvironment is true it grabs the wrong one.
As of #67970 this is done for the host in the
[✓] Flutter (Channel masterline.
The rest of the work is to track showing it for macOS device targets.This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Aug 10, 2021
Now that there are 2 architectures for macOS (x64 and arm64) we should include that information in the
flutter doctoroutput. We often ask people reporting errors to addflutter doctoroutput and this can help us find bugs related to one architecture.cc @jonahwilliams @jmagman