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] Chocolatey install #557

Closed
escamoteur opened this issue Sep 3, 2023 · 11 comments
Closed

[BUG] Chocolatey install #557

escamoteur opened this issue Sep 3, 2023 · 11 comments
Labels
bug Something isn't working

Comments

@escamoteur
Copy link

Can't install fvm with chocolately successfully:

grafik

@escamoteur escamoteur added the bug Something isn't working label Sep 3, 2023
@leoafarias
Copy link
Owner

@escamoteur hmmm weird, I will try to replicate it on my windows machine.

@leoafarias leoafarias changed the title [BUG] [BUG] Chocolatey install Sep 5, 2023
@leoafarias
Copy link
Owner

@escamoteur can you try the following? choco install fvm --version 2.4.2-dev0 -y

@Hafmiy
Copy link

Hafmiy commented Sep 6, 2023

@escamoteur can you try the following? choco install fvm --version 2.4.2-dev0 -y

Had the same issue. This worked.

@ChuykoMihail
Copy link

I had the same problem. I deleted chocolate and reinstalled. This solved the problem, the next fvm installation worked correctly.

@thomastthai
Copy link

thomastthai commented Dec 19, 2023

Same error on Windows 11:

2023-12-18 15:58:02,776 20668 [DEBUG] - ---------------------------Script Execution---------------------------
2023-12-18 15:58:02,779 20668 [DEBUG] - Running 'ChocolateyScriptRunner' for fvm v2.4.1 with packageScript 'C:\ProgramData\chocolatey\lib\fvm\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\fvm', installArguments: '', packageParameters: '',
2023-12-18 15:58:02,782 20668 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\fvm\tools\chocolateyInstall.ps1'
2023-12-18 15:58:02,792 20668 [INFO ] - Fetching Dart dependencies...
2023-12-18 15:58:04,818 20668 [INFO ] - Building executable...
2023-12-18 15:58:07,238 20668 [ERROR] - AppData/Local/Pub/Cache/hosted/pub.dev/pub_semver-2.1.1/lib/src/version_constraint.dart:96:13: Error: Method not found: 'FallThroughError'.
2023-12-18 15:58:07,241 20668 [ERROR] -       throw FallThroughError();
2023-12-18 15:58:07,243 20668 [ERROR] -             ^^^^^^^^^^^^^^^^
2023-12-18 15:58:07,245 20668 [ERROR] - Error: AOT compilation failed
2023-12-18 15:58:07,248 20668 [ERROR] - Generating AOT kernel dill failed!
2023-12-18 15:58:07,487 20668 [DEBUG] - Running Generate-BinFile -name 'fvm' -path 'C:\ProgramData\chocolatey\lib\fvm\bin\fvm.exe'
2023-12-18 15:58:07,496 20668 [DEBUG] - ShimGen found at 'C:\ProgramData\chocolatey\tools\shimgen.exe'
2023-12-18 15:58:07,497 20668 [DEBUG] - Calling C:\ProgramData\chocolatey\tools\shimgen.exe -o "C:\ProgramData\chocolatey\bin\fvm.exe" -p "..\lib\fvm\bin\fvm.exe" -i "C:\ProgramData\chocolatey\lib\fvm\bin\fvm.exe"
2023-12-18 15:58:07,863 20668 [INFO ] - Added C:\ProgramData\chocolatey\bin\fvm.exe shim pointed to '..\lib\fvm\bin\fvm.exe'.
2023-12-18 15:58:07,865 20668 [DEBUG] - The last executable that ran had an exit code of '64'.
2023-12-18 15:58:07,867 20668 [DEBUG] - ----------------------------------------------------------------------

I will try @leoafarias recommendation:

choco install fvm --version 2.4.2-dev0 -y

Update: @leoafarias recommendation worked!

PS C:\Users\thomas> choco install fvm --version 2.4.2-dev0 -y
Chocolatey v0.10.15
Installing the following packages:
fvm
By installing you accept licenses for the packages.
Progress: Downloading dart-sdk 3.1.0... 100%
Progress: Downloading fvm 2.4.2-dev0... 100%

dart-sdk v3.1.0 [Approved]
dart-sdk package files install completed. Performing other installation steps.
Downloading dart-sdk 64 bit
  from 'https://storage.googleapis.com/dart-archive/channels/stable/release/3.1.0/sdk/dartsdk-windows-x64-release.zip'
Progress: 100% - Completed download of C:\Users\thomas\AppData\Local\Temp\dart-sdk\3.1.0\dartsdk-windows-x64-release.zip (196.44 MB).
Download of dartsdk-windows-x64-release.zip (196.44 MB) completed.
Hashes match.
Extracting C:\Users\thomas\AppData\Local\Temp\dart-sdk\3.1.0\dartsdk-windows-x64-release.zip to C:\tools...
C:\tools
 The install of dart-sdk was successful.
  Software installed to 'C:\tools'

fvm v2.4.2-dev0 - Possibly broken
fvm package files install completed. Performing other installation steps.
Fetching Dart dependencies...
An item with the specified name C:\ProgramData\chocolatey\lib\fvm\bin already exists.
Building executable...
Generated: c:\programdata\chocolatey\lib\fvm\bin\fvm.exe
Added C:\ProgramData\chocolatey\bin\fvm.exe shim pointed to '..\lib\fvm\bin\fvm.exe'.
Only an exit code of non-zero will fail the package by default. Set
 `--failonstderr` if you want error messages to also fail a script. See
 `choco -h` for details.
 ShimGen has successfully created a shim for fvm.exe
 The install of fvm was successful.
  Software install location not explicitly set, could be in package or
  default install location if installer.

Chocolatey installed 2/2 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
PS C:\Users\thomas>

@tfreebern2
Copy link

@escamoteur can you try the following? choco install fvm --version 2.4.2-dev0 -y

This worked for me on Windows 11.

Installed chocolately through PowerShell and then innstalled fvm using the choco command through Git bash terminal.

@escamoteur
Copy link
Author

Hey, sorry for the dealy, I just tried and experienced this here
grafik

@TomaszCz
Copy link

choco install fvm --version 2.4.2-dev0 -y

had the same issue, i had to add --force and all works now
choco install fvm --version 2.4.2-dev0 -y --force

@escamoteur
Copy link
Author

yep, with the force parameter it worked now for me too

@mrspence
Copy link

mrspence commented Feb 9, 2024

choco install fvm --version 2.4.2-dev0 -y --force works at the moment - wonder what's new! 😄

@leoafarias
Copy link
Owner

Version 3.0 has been released. Closing this issue as the problem should be resolved.

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

8 participants