-
Notifications
You must be signed in to change notification settings - Fork 234
fix GetVersionDetails error #641
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
fix GetVersionDetails error #641
Conversation
What if we changed that line to this:
I know, on an 32-bit ARM system "x86" isn't quite right but at least it conveys it is a 32-bit system ... not that we have PSES running on 32-bit ARM - do we? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but you might want to have David look at this one. I think this method might be used in a lot of places.
I thought about That said, if your line can give some better perf in some way, I'm all for it! I'll wait for @daviwil to chime in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though we may want to open an issue to replace any uses of the pipeline API with nested PowerShell instances. Looks like that API is on the chopping block
@SeeminglyScience good point. Let me open an issue on that. |
Alright it's been a month. I'm just going to merge this in. |
* Fix detection of valid PS ext for debugging. Was previously only allowing lower case ps1 and psm1. I'm assuming that on *nix file systems, that PowerShell allows all variations of ps1,PS1,pS1,Ps1 as valid script extensions. Fix PowerShell#641 * Fix issue with debugging unsaved file. * Use same term used in the command palette. * Shorten error message based on juneb feedback.
We were seeing this exception every time on macOS.
It's because
$env:PROCESSOR_ARCHITECTURE
does not exist on macOS and the result of this line returned a collection that had one value... null - rather than returning just null.This fix returns just null if the contents of the execution contains just an null item.
Resolves PowerShell/vscode-powershell#1211
Resolves #636