You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Remove-Item to remove non-existing environment variables in powershell displays an error message, e.g. trying to remove a non-existing variable when using mise deactivate will result in an error message
# mise deactivateRemove-Item: Line | 7 | Remove-Item -Path Env:/__MISE_WATCH | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot find path 'Env:\__MISE_WATCH' because it does not exist.
To Reproduce
Invoke-Expression (& { (mise activate pwsh |Out-String) })
mise deactivate
Expected behavior
This type of error message should be avoided by using Remove-Item -ErrorAction SilentlyContinue -Path xxx consistent with the unset behavior in bash/zsh
Describe the bug
Using
Remove-Item
to remove non-existing environment variables in powershell displays an error message, e.g. trying to remove a non-existing variable when usingmise deactivate
will result in an error messageTo Reproduce
Expected behavior
This type of error message should be avoided by using
Remove-Item -ErrorAction SilentlyContinue -Path xxx
consistent with theunset
behavior in bash/zshmise doctor
outputn/a
Additional context
The text was updated successfully, but these errors were encountered: