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

fix: Every command runs twice #73

Closed
aadarshadhakalg opened this issue Jun 8, 2021 · 5 comments
Closed

fix: Every command runs twice #73

aadarshadhakalg opened this issue Jun 8, 2021 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@aadarshadhakalg
Copy link

Description
On executing any mason command the command is executed twice simultaneously.

Steps To Reproduce

  1. On windows install mason globally
  2. Open cmd/powershell
  3. run mason --version
  4. See the version is printed twice

Expected Behavior
The version should only be printed once.

Screenshots
image

Additional Context

@aadarshadhakalg aadarshadhakalg added the bug Something isn't working label Jun 8, 2021
@felangel felangel self-assigned this Jun 8, 2021
@felangel
Copy link
Owner

felangel commented Jun 8, 2021

Hi @aadarshadhakalg 👋
Thanks for opening an issue!

I'm guessing you have multiple installations of mason. This can happen if you run different commands to install mason:

pub global activate mason
dart pub global activate mason
flutter pub global activate mason

I recommend trying to deactivate mason

pub global deactivate mason
dart pub global deactivate mason
flutter pub global deactivate mason

And then reinstall it via dart pub global activate mason. Let me know if that helps 👍

@felangel felangel added question Further information is requested and removed bug Something isn't working labels Jun 9, 2021
@aadarshadhakalg
Copy link
Author

Hey felangel,

Even though I was preety sure that there weren't multiple installations. I tried to deactivate and again activate it. But, unfortunately it didn't work.

image

@felangel
Copy link
Owner

felangel commented Jun 9, 2021

@aadarshadhakalg I believe this is related to dart-lang/pub#2934 and is not specific to mason (see also leoafarias/fvm#227).

Make sure you have your paths in the following order

C:\Users\<user>\AppData\Roaming\Pub\Cache\bin
C:\src\flutter\bin\cache\dart-sdk\bin
C:\src\flutter\bin

Let me know if that helps 👍

@aadarshadhakalg
Copy link
Author

Yeah, it worked! Thank you @felangel .

@amebrahimi
Copy link

It helped me too. Thank you. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants