Skip to content

Add initial 'doctor' support for desktop platforms #31368

@stuartmorgan-g

Description

@stuartmorgan-g

When the desktop support flag is enabled we should add checks for the current host to flutter doctor.

Currently since the build script is completely unopinionated (just running a shell script) we don't know all the things we'll want to add yet, but there are some things we could start with that we can be pretty confident will be necessary:

  • On macOS, ensure that Xcode is installed, including command line build support.
  • On Windows, ensure that VS code is installed and vcvars64.bat is locatable (for doing command-line builds)

For Linux we'll eventually want to check for the compiler and relevant libraries, but that will require decisions about what toolchain we're going to use for the created project on Linux. For now, we can just add the scaffolding for Linux without any checks.

CC @jonahwilliams

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: desktopRunning on desktopplatform-linuxBuilding on or for Linux specificallyplatform-macBuilding on or for macOS specificallyplatform-windowsBuilding on or for Windows specificallyt: flutter doctorProblem related to the "flutter doctor" tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions