vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

PS extension incorrectly suggests update on arm64 platform

Open pb5050 opened this issue 3 years ago • 3 comments

I use nothing but native arm64.....

I get this alert in visual studio code (arm64) an alert about an updated version of powershell.

Powershell Issue

when clicking it tries to install x64 version instead of arm. would be nice to have an arm installer or recognize im using arm and not x64.

pb5050 avatar May 29 '21 13:05 pb5050

This seems like it's a bug in the PowerShell extension, since there is an arm64 version available.

However, if you're on Linux, it seems there's only amd64 .deb and .rpm packages available, so that may be the reason.

schuelermine avatar Jun 01 '21 16:06 schuelermine

We (unfortunately) have our own logic in the extension to suggest updating PowerShell. Perhaps we'll fix this bug, but frankly I've been contemplating removing that logic entirely. PowerShell already has its own logic to prompt users to update; I don't think the extension has any business adding duplicative logic on top of that, especially (as evidenced by this bug, among several) that it's buggy. It's not worth the maintenance cost.

@rjmholt @SydneyhSmith thoughts?

andyleejordan avatar Jun 24 '21 01:06 andyleejordan

Well, I thought this would be a moderately quick fix until I dug into it. It's worms all the way down with our own custom PowerShellProcessArchitecture that has no notion of ARM64, and in the end just queries the environment variable PROCESSOR_ARCHITECTURE in PowerShell...

andyleejordan avatar Aug 27 '21 17:08 andyleejordan