-
Notifications
You must be signed in to change notification settings - Fork 235
GetVersionDetails failing due to empty $env:PROCESSOR_ARCHITECTURE #346
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
Haha, wow, I actually broke it on the VS Code side by sending an empty environment variables object to the process, must have cleared out all the env vars completely. |
Yeah, probably good to get that fixed before the release. :-) |
daviwil
added a commit
to PowerShell/vscode-powershell
that referenced
this issue
Jan 19, 2017
This change fixes an issue where $env:PROCESSOR_ARCHITECTURE is not being set properly in the language server's powershell.exe process which caused an exception when gathering that variable. The problem was caused by the environment variable setting behavior when the Windows PowerShell developer build setting is set to false. In this case, an empty environment variable object was being passed to the process, effectively clearing its environment variables. This is one half of the fix to PowerShell/PowerShellEditorServices#346.
daviwil
added a commit
that referenced
this issue
Jan 19, 2017
Fix #346: GetVersionDetails failing due to empty environment variable
I am seeing a similar NullReferenceException on the Mac using:
|
Thanks for letting me know! I'll get a patch update shipped in a few days. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just looking at a log file and noticed this:
This on latest bits updated just a little while ago.
The text was updated successfully, but these errors were encountered: