Describe the bug
The Dart version specified in my path is not used when clicking the run/debug buttons in VSCode
To Reproduce
Steps to reproduce the behavior:
- Install Dart 3.0.0 with homebrew
- Install Flutter (I used FVM, but that shouldn't be necessary)
- Attempt to run Dart code with the run button
- It probably fails due to dependency issues
- Run the code with
dart run - It works
Expected behavior
The dart version specified in my path is used by the extension to run code
Dart Code extension: 3.98.1
Flutter extension: 3.98.0 (not activated)
App: Visual Studio Code
App Host: desktop
Version: mac 1.94.2
Workspace type: Dart (LSP)
Workspace name: [REDACTED]
Dart (3.0.0): /opt/homebrew/Cellar/dart@3.0.0/3.0.0/libexec
Flutter (3.24.3): /Users/adelory/fvm/versions/3.24.3 (No device)
/opt/homebrew/Cellar/dart@3.0.0/3.0.0/libexec/bin/dart info
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
General info
- Dart 3.0.0 (stable) (Thu May 4 01:11:00 2023 -0700) on "macos_arm64"
- on macos / Version 15.0.1 (Build 24A348)
- locale is en-US
Process info
| Memory | CPU | Elapsed time | Command line |
|---|---|---|---|
| 970 MB | 0.0% | 06:15 | dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.98.1 |
which dart points to ~/fvm/default/bin/dart
Related
