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
The vscode-powershell implementation of the "inplace PowerShell 7 update" is unfortunately terribly awkwardly implemented and it's random if the PowerShell 7 update works at all.
In the most embarrassing case, the PowerShell 7 update works like this:
the VS Code Extension reports the PowerShell 7 update
the PowerShell 7 update detects that VS Code has started pwsh.exe and aks if it should stop the exe
if the user chooses that the setup should terminate pwsh.exe, it happens that VS Code is terminated as well.
because VS Code is terminated, the PowerShell 7 setup is also killed
It would be much more useful if the VS Code vscode-powershell Extension would just offer two links if it detects the update:
Link 1: Link to the Setup exe. If the user clicks to the link, the web browser is opened, so that the setup will work for sure (it must be starte independent of VS Code)
Link 2: Link to the release notes.
Thanks a lot, kind regards,
Thomas
PowerShell Version
Name Value---- -----PSVersion 7.2.11PSEdition CoreGitCommitId 7.2.11OS Microsoft Windows 10.0.19044Platform Win32NTPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}PSRemotingProtocolVersion 2.3SerializationVersion 1.1.0.1WSManStackVersion 3.0
Wait, until the vscode-powershell extension reports a PowerShell 7 update
Start the Update from the vscode-powershell extension pupup dialog
The PowerShell 7 update usually gets a nightmare which ends in the user is using google for PowerShell 7 update, downloads the setup exe himself and install it without VS Code and the vscode-powershell extension
Visuals
n/a
Logs
n/a
The text was updated successfully, but these errors were encountered:
if the user chooses that the setup should terminate pwsh.exe, it happens that VS Code is terminated as well.
This shouldn't be happening at all and is a bug.
Link 1: Link to the Setup exe. If the user clicks to the link, the web browser is opened, so that the setup will work for sure (it must be starte independent of VS Code)
This is actually what happens in every case except when an MSI is available (try it out on macOS, Linux, or an Arm64 Windows).
I'll take a look a the bug where Code is terminating, and TBH I wanted to remove the auto-install logic around the MSI at the time we updated the code anyway, since I didn't think it could be that reliable. Turns out it's not!
andyleejordan
changed the title
If vscode-powershell reports PowerShell 7 updates, then please select a professional / working solution
Stop attempting to update PowerShell via unattended MSI installer
May 10, 2023
Prerequisites
Summary
Good evening
The vscode-powershell implementation of the "inplace PowerShell 7 update" is unfortunately terribly awkwardly implemented and it's random if the PowerShell 7 update works at all.
In the most embarrassing case, the PowerShell 7 update works like this:
It would be much more useful if the VS Code vscode-powershell Extension would just offer two links if it detects the update:
Link 1: Link to the Setup exe. If the user clicks to the link, the web browser is opened, so that the setup will work for sure (it must be starte independent of VS Code)
Link 2: Link to the release notes.
Thanks a lot, kind regards,
Thomas
PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
Visuals
n/a
Logs
n/a
The text was updated successfully, but these errors were encountered: