Skip to content

Set FLUTTER_ROOT for external tool processes like "dart devtools" #4722

@DanTup

Description

@DanTup

When running dart from flutter-sdk/bin/dart, the FLUTTER_ROOT variable is set (the same is true for flutter).

DevTools sometimes needs to call Flutter commands but in the extension we always run the dart executable directly (not through the shell script) so this isn't set. We should set it for all tools we spawn (when we are in Flutter mode, with a Flutter SDK) to make it easier for them to locate the same Flutter version the IDE is using.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions