-
Notifications
You must be signed in to change notification settings - Fork 344
Closed
Labels
in docs / websiteRelates to documentation, including the Dart Code websiteRelates to documentation, including the Dart Code website
Milestone
Description
Describe the bug
The extension selects the wrong flutter SDK. I expect my local checked out git version to be used.
To Reproduce
I can reproduce it as follows (locally on windows, my drive is E, probably works with C too):
- Put a downloaded version from flutter SDK here: E:/flutter
- Setup and clone a git version of the flutter SDK here: E:/flutter-git
- Setup PATH, it should contain "E:/flutter-git/flutter/bin", NOT E:/flutter
- I also have FLUTTER_ROOT setup, pointing to E:/flutter-git/flutter
- Start visual studio code ==> Wrong SDK is used
Expected behavior
I would have expected that the version from E:/flutter-git is used, since the PATH variable points there.
Additional information
I worked around this as follows:
Since I have the FLUTTER_ROOT variable set locally, I moved the process.env.FLUTTER_ROOT to second position in
src\extension\sdk\utils.ts@246
Versions (please complete the following information):
- VS Code version: 1.57.0-insider
- Dart extension version: e8fd4e9
- Dart/Flutter SDK version: 2.14.0-153.0.dev (dev)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
in docs / websiteRelates to documentation, including the Dart Code websiteRelates to documentation, including the Dart Code website