Skip to content

[doctor] Add macOS architecture to doctor output #65976

Description

@gaaclarke

Now that there are 2 architectures for macOS (x64 and arm64) we should include that information in the flutter doctor output. We often ask people reporting errors to add flutter doctor output and this can help us find bugs related to one architecture.

cc @jonahwilliams @jmagman

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    t: flutter doctorProblem related to the "flutter doctor" tool
    on Sep 16, 2020
  2. jmagman commented on Sep 16, 2020

    @jmagman
    Member

    It's already there (darwin-x64) in doctor and devices:

    macOS (desktop)        • macos                                    • darwin-x64     • Mac OS X 10.15.5 19F101
    
  3. jmagman commented on Sep 16, 2020

    @jmagman
    Member

    It's already there (darwin-x64) in doctor and devices:

    Never mind, that's hardcoded.

    Future<TargetPlatform> get targetPlatform async => TargetPlatform.darwin_x64;

  4. jonahwilliams commented on Sep 16, 2020

    @jonahwilliams
    Contributor

    We print darwin-x64 for every mac though @jmagman , we need to fix that too

  5. added
    P3Issues that are less important to the Flutter project
    on Sep 24, 2020
  6. jmagman commented on Oct 1, 2020

    @jmagman
    Member

    uname -m is reporting x86_64 when forked from a dart process, even on ARM (I stepped into it and checked the output from #65978), so flutter doctor is 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
    
  7. gaaclarke commented on Oct 1, 2020

    @gaaclarke
    MemberAuthor

    @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.html

    It's possible uname is just grabbing from an environment variable and since includeParentEnvironment is true it grabs the wrong one.

  8. jmagman commented on Oct 27, 2020

    @jmagman
    Member

    As of #67970 this is done for the host in the [✓] Flutter (Channel master line.
    The rest of the work is to track showing it for macOS device targets.

  9. github-actions commented on Aug 10, 2021

    @github-actions

    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 -v and a minimal reproduction of the issue.

  10. locked as resolved and limited conversation to collaborators on Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectt: flutter doctorProblem related to the "flutter doctor" tooltoolAffects 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