Skip to content

Support 'flutter run' for desktop targets #30707

Closed

Description

@stuartmorgan-g

Tracks being able to flutter run for macOS, Windows, and Linux.

This will likely be implemented in phases, first being able to flutter run using a prebuilt application on each platform (already implemented behind flags for macOS), then later once #30706 is done having the full behavior of building and then running.

Any support we can provide for this in the short term is very valuable for the workflow of people trying out early stages of the desktop support, since being able to flutter run provides compatibility with existing Flutter support in tools and IDEs (e.g., hot reload, and source-level debugging).

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    platform-macosBuilding on or for macOS specifically
    platform-windowsBuilding on or for Windows specifically
    platform-linuxBuilding on or for Linux specifically
    on Apr 8, 2019
  2. stuartmorgan-g commented on Apr 8, 2019

    @stuartmorgan-g
    ContributorAuthor

    cc @jonahwilliams who has been working on aspects of this already.

  3. self-assigned this
    on Apr 8, 2019
  4. jonahwilliams commented on Apr 8, 2019

    @jonahwilliams
    Contributor

    We can flutter run the prebuilt macos application, linux and windows need to be done though

  5. stuartmorgan-g commented on Apr 8, 2019

    @stuartmorgan-g
    ContributorAuthor

    We also need to figure out how to bring it out from behind an environment variable flag. In practice, that's been a significant issue for actually using the functionality, because adding a flag to the launch environment of the flutter daemon used by VS Code or IntelliJ isn't a simple thing to do.

  6. jonahwilliams commented on Apr 8, 2019

    @jonahwilliams
    Contributor

    I have two fixes for this:

    1. Disable the devices/commands on the stable branch Add configuration to disable certain tool features on stable branches #30152

    2. update device discovery to take the current project into consideration. For example, if you have ios/ and android/, then we don't list a macos device.

  7. jonahwilliams commented on Apr 8, 2019

    @jonahwilliams
    Contributor

    Filled #30724 for 2.

  8. github-actions commented on Aug 29, 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.

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

Metadata

Metadata

Assignees

Labels

a: desktopRunning on desktopplatform-linuxBuilding on or for Linux specificallyplatform-macosBuilding on or for macOS specificallyplatform-windowsBuilding on or for Windows specificallytoolAffects 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