fvm icon indicating copy to clipboard operation
fvm copied to clipboard

[BUG] fvm & flutter doctor

Open pmagnuson opened this issue 2 years ago • 0 comments

Describe the bug flutter doctor reports different results from a project directory which has a different fvm use

To Reproduce usage from home directory (success)

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.0, on macOS 11.3.1 20E241 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[!] Xcode - develop for iOS and macOS (Xcode 12.5)
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.63.1)
[✓] Connected device (1 available)
[✓] HTTP Host Availability

! Doctor found issues in 1 category.
fvm doctor

No FVM config found:
/Users/phil
Fvm will run the version in your PATH env: /Users/phil/fvm/default/bin/flutter

Configured env paths:
___________________________________________________

Flutter:
/Users/phil/fvm/default/bin/flutter

Dart:
/usr/local/bin/dart

FVM_HOME:
not set

usage from project directory (can't find Android Studio properly)

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.6, on macOS 11.3.1 20E241 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 12.5)
[!] Android Studio (version 2021.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    ✗ Unable to find bundled Java version.
[✓] VS Code (version 1.63.1)
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.
fvm doctor

FVM Version: 2.2.4
___________________________________________________

FVM config found:
___________________________________________________

Project: tap-flutter
Directory: /Users/phil/Documents/matraex/tap-flutter
Version: 1.22.6
Project Flavor: None selected
___________________________________________________

Version is currently cached locally.

Cache Path: /Users/phil/fvm/versions/1.22.6
Channel: false
SDK Version: 1.22.6

IDE Links
VSCode: .fvm/flutter_sdk
Android Studio: /Users/phil/Documents/matraex/tap-flutter/.fvm/flutter_sdk


Configured env paths:
___________________________________________________

Flutter:
/Users/phil/Documents/matraex/tap-flutter/.fvm/flutter_sdk/bin/flutter

Dart:
/Users/phil/Documents/matraex/tap-flutter/.fvm/flutter_sdk/bin/dart

FVM_HOME:
not set

Expected behavior I would like the flutter doctor to recognize that the flutter plugin is installed, when used from the project directory.

Desktop (please complete the following information):

  • OS: OSX 11.3.1
  • FVM Version 2.2.4

Additional context Same results after a fresh, complete install of Android Studio

pmagnuson avatar Feb 22 '22 00:02 pmagnuson