-
Notifications
You must be signed in to change notification settings - Fork 229
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
[Windows]: Programs installed with pub global activate run twice #2934
Comments
It seems the issue can be solved by deleting this line: pub/lib/src/global_packages.dart Line 758 in 255a309
EDIT: CORRECTION: THAT LINE IS NOT THE PROBLEM. While it does fix this, if your package's snapshot is out-of-date, that line is needed. The correct fix was adding a |
The same issue was happening for users that have After removing this path, started to have The issue went away completely after doing Not sure how to coordinate but seems that there are a few moving parts that need to get tackled including the following item here. flutter/flutter#57518 so the flutter-tools can notify about the |
Been seeing this for quite some time, and thought it was on issue with fvm, this explains it though. |
That's where my (and many others') Dart SDK is -- I didn't install it separately, I use the version bundled with Flutter. When I inspected pub's |
Well I just saw this error again four months later so I opened a PR to delete that line: #3055 EDIT CORRECTION: THAT LINE IS NOT THE PROBLEM. While it does fix this, if your package's snapshot is out-of-date, that line is needed. The correct fix was adding a |
Environment
pub version
orflutter pub version
:Pub 2.12.2
Problem
When running an app installed with
pub global activate
, the program runs twice, except if executed withpub global run
.Expected behavior
Actual behavior
The problem:
Using
pana
as an example (it happens with every package), I can find the location of the batch file usingwhere
:Inspecting the file, I found the call was made twice:
As you can see, it calls
dart <path_to_pana>
, and then if there's an error, it has agoto
. So the immediate call topub
should not be there. I removed it and it worked just fine.The text was updated successfully, but these errors were encountered: