Skip to content

[BUG] fvm use doesn't work #1017

@TheCarpetMerchant

Description

@TheCarpetMerchant

2026-03-02 09-02-57.zip

Before creating a bug report please make check the following

  • You have read our FAQ
  • If you have used flutter. Please install correctly, run pub cache repair. Close the terminal and try again.
  • If you are on Windows. Make sure you are running the terminal as administrator or with developer permissions.
  • Run fvm doctor if possible and add the output to the issue.

Describe the bug
See attached video, fvm use 3.19.0 does not change the output of flutter --version

To Reproduce
Using fvm 4.0.5, run fvm 4.0.5

Expected behavior
flutter --version should output 3.19.0

Logs
Please provide the verbose logs by running --verbose after the command.

D:\test> fvm use 3.19.0 --verbose

Argument information:
  Top level options:
  - verbose: true

Command: use

Looking up directory: D:\test
Found valid candidate: D:\test
Skipping git reference validation for version: 3.19.0

Updating project config
Project name: test
Project path: D:\test
Flutter version: 3.19.0

Starting to update environment variables...

Running: flutter

Dependencies resolved offline.
✓ Updated VSCode folder Flutter SDK path setting.
No VSCode workspace files found.
Reached filesystem root, no melos.yaml found
No melos.yaml file found in project hierarchy.
✓ Project now uses Flutter SDK : SDK Version : 3.19.0
┌────────────────────────────────────────────────────────────────────┐
│ ✓ Running on VsCode, please restart the terminal to apply changes. │
└────────────────────────────────────────────────────────────────────┘
You can then use "flutter" command within the VsCode terminal.

fvm doctor :

FVM Doctor:                                                                                                                                             
--------------------------------------------------------------------------------------------------------------------------------------------------------
Project:
┌─────────────────────────────┬──────────────────────┐
│ Project                     │ test                 │
├─────────────────────────────┼──────────────────────┤
│ Directory                   │ D:\test              │
├─────────────────────────────┼──────────────────────┤
│ Active Flavor               │ None                 │
├─────────────────────────────┼──────────────────────┤
│ Is Flutter Project          │ Yes                  │
├─────────────────────────────┼──────────────────────┤
│ Dart Tool Generator Version │ 3.8.1                │
├─────────────────────────────┼──────────────────────┤
│ Dart tool version           │ 3.32.4               │
├─────────────────────────────┼──────────────────────┤
│ .gitignore Present          │ Yes                  │
├─────────────────────────────┼──────────────────────┤
│ Config Present              │ Yes                  │
├─────────────────────────────┼──────────────────────┤
│ Pinned Version              │ 3.19.0               │
├─────────────────────────────┼──────────────────────┤
│ Config path                 │ .fvmrc               │
├─────────────────────────────┼──────────────────────┤
│ Local cache dir             │ .fvm\versions        │
├─────────────────────────────┼──────────────────────┤
│ Version symlink             │ .fvm\versions\3.19.0 │
└─────────────────────────────┴──────────────────────┘


IDEs:
┌────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ IDEs                           │ Value                                                                                                                
                                          │
├────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ VSCode                         │                                                                                                                      
                                          │
├────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ dart.flutterSdkPath            │ .fvm/versions/3.19.0                                                                                                 
                                          │
├────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Matches pinned version:        │ false                                                                                                                
                                          │
├────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ IntelliJ (Android Studio, ...) │                                                                                                                      
                                          │
├────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ flutter.sdk                    │ D:\\Code\\Dart\\flutter_sdk\\flutter                                                                                 
                                          │
├────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Matches pinned version:        │ false                                                                                                                
                                          │
├────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ SDK Path                       │ SDK Path does not point to the project directory. "fvm use" will not make IntelliJ (Android Studio, ...) switch Flutter version. Please consult documentation. │
└────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Environment:
┌───────────────────────┬──────────────────────────────────────────────┐
│ Environment Variables │ Value                                        │
├───────────────────────┼──────────────────────────────────────────────┤
│ Flutter PATH          │ D:\Code\Dart\flutter_sdk\flutter\bin\flutter │
├───────────────────────┼──────────────────────────────────────────────┤
│ Dart PATH             │ D:\Code\Dart\flutter_sdk\flutter\bin\dart    │
├───────────────────────┼──────────────────────────────────────────────┤
│ FVM_CACHE_PATH        │ N/A                                          │
├───────────────────────┼──────────────────────────────────────────────┤
│ FVM_USE_GIT_CACHE     │ N/A                                          │
├───────────────────────┼──────────────────────────────────────────────┤
│ FVM_GIT_CACHE_PATH    │ N/A                                          │
├───────────────────────┼──────────────────────────────────────────────┤
│ FVM_FLUTTER_URL       │ N/A                                          │
└───────────────────────┴──────────────────────────────────────────────┘
┌──────────────┬──────────────────────────────────────────────────────────────────┐
│ Platform     │ Value                                                            │
├──────────────┼──────────────────────────────────────────────────────────────────┤
│ OS           │ windows "Windows 11 Professionnel" 10.0 (Build 26200)            │
├──────────────┼──────────────────────────────────────────────────────────────────┤
│ Dart Locale  │ fr-BE                                                            │
├──────────────┼──────────────────────────────────────────────────────────────────┤
│ Dart runtime │ 3.9.0 (stable) (Mon Aug 11 07:58:10 2025 -0700) on "windows_x64" │
└──────────────┴──────────────────────────────────────────────────────────────────┘

Desktop (please complete the following information):

  • OS: Windows 11
  • FVM Version: 4.0.5
  • If Windows: How do I get this information from VSCode ?

Additional context
Both VSCode and fvm.exe are set to execute as admin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions