Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fvm flutter build apk --release is downloading flutter again #790

Closed
3 tasks done
AliYar-Khan opened this issue Nov 2, 2024 · 3 comments
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@AliYar-Khan
Copy link

Before creating a bug report please make check the following

  • You have read our FAQ
  • [X 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.

fvm doctor ouptput

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


IDEs:
Cannot resolve symbolic links

Path: C:\Freelance\toolivo\.fvm\versions\3.22.1

Please run command with  --verbose if you want more information

Describe the bug
version 3.22.1 is already installed but it stills try to download again

To Reproduce

Expected behavior
It shouldn't redownload the flutter

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

Desktop (please complete the following information):

  • OS: Windows
  • FVM Version 3.2.1
  • If Windows: Windows Terminal

Additional context
Add any other context about the problem here.

@AliYar-Khan AliYar-Khan added the bug Something isn't working label Nov 2, 2024
@AliYar-Khan
Copy link
Author

AliYar-Khan commented Nov 2, 2024

I reinstall fvm using choco. Now gives this error

Cannot find file at '..\lib\fvm\bin\fvm.exe' (C:\ProgramData\chocolatey\lib\fvm\bin\fvm.exe). This usually indicates a missing or moved file.

choco install fvm --force
Chocolatey v2.3.0
Installing the following packages:
fvm
By installing, you accept licenses for the packages.
fvm v3.2.1 already installed. Forcing reinstall of version '3.2.1'.
 Please use upgrade if you meant to upgrade to a new version.
Downloading package from source 'https://community.chocolatey.org/api/v2/'
Progress: Downloading fvm 3.2.1... 100%

fvm v3.2.1 (forced) [Approved] - Possibly broken
fvm package files install completed. Performing other installation steps.
The package fvm wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): A

Fetching Dart dependencies...
Building executable...
Error: Unable to find git in your PATH.
Added C:\ProgramData\chocolatey\bin\fvm.exe shim pointed to '..\lib\fvm\bin\fvm.exe'.
 The install of fvm was successful.
  Software install location not explicitly set, it could be in package or
  default install location of installer.

Chocolatey installed 1/1 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log)

@leoafarias
Copy link
Owner

@AliYar-Khan Did It seems that this is nmore of a ENV path configuration.. can you check with the equivalent of "which fvm" for windows?

@leoafarias
Copy link
Owner

@AliYar-Khan it seems this is a duplicate of #781, so will be closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants