-
Notifications
You must be signed in to change notification settings - Fork 513
PowerShell preview executables no longer at /usr/[local/]bin/pwsh on *nix #1361
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
Comments
I will suggest powershell extensions in visual studio code could allow you to choose which one to use in a project basis, saving the setting into .vscode or similar (something similar that is already doing with the typescript engine). I am saying that ps extensions on code should support both executables, enable to choose one per project in case both are detected. |
@s2p16 we already support a feature like that with #1270. The main issue here is that the default PowerShell executable path is going to need changing with newer PowerShell releases. For that, I think a change will need to be made here: vscode-powershell/src/platform.ts Lines 50 to 83 in 9bf58a7
|
Thanks for the information! |
I would think that the "default" PowerShell on Windows should still be The extension will remember your setting if you choose PS Core. And as @rjmholt, we already have a means to specify the PowerShell edition/version per workspace. We need to update |
Yes, you're right, |
PowerShell 6.1.0-preview.3 will install its executable as
pwsh-preview
as of the upcoming release.We will need to work out how to handle this.
@s2p16 reported this and a workaround here: PowerShell/PowerShell#6132 (comment).
Essentially, for now, the best solution is to specify a new
powerShellExePath
:Another alternative would be to use @rkeithhill's EXE path feature:
#1270
But we should also fix this so that it works out of the box. Since preview and ordinary releases are now allowed side-by-side, we should figure out which we prefer if both are present.
The text was updated successfully, but these errors were encountered: