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

Is $Args necessary for reactivate in Mamba.psm1 #2498

Closed
troubadour-hell opened this issue Apr 27, 2023 · 1 comment
Closed

Is $Args necessary for reactivate in Mamba.psm1 #2498

troubadour-hell opened this issue Apr 27, 2023 · 1 comment

Comments

@troubadour-hell
Copy link
Contributor

troubadour-hell commented Apr 27, 2023

Hello! I got an error that tells --all is not supported argument when I run "mamba update --all". After that, powershell throws an error about"Invoke-Expression -Command $activateCommand". The update is successfully executed.
And I found:

$activateCommand = (& $Env:MAMBA_EXE shell reactivate -s powershell $Args | Out-String);

It worked well when I remove $Args from lines 118 and 119. The $Args is for $Env:MAMBA_EXE to use but not reactivate, isn't it?

@troubadour-hell troubadour-hell changed the title Is $Args necessary for reactivate in mamba_hook.ps1 Is $Args necessary for reactivate in Mamba.psm1 Apr 27, 2023
@troubadour-hell
Copy link
Contributor Author

troubadour-hell commented Apr 29, 2023

image
I reproduced this error when I install micromamba on a new computer:
"The following argument was not expected: python=3.11"
and
"invoke-expression cannot bind argument to parameter 'command' because it is an empty string"

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

No branches or pull requests

1 participant