Skip to content
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

Installing VS 15.6 breaks Powershell JSON handling #6346

Closed
aragula12 opened this issue Mar 8, 2018 · 3 comments
Closed

Installing VS 15.6 breaks Powershell JSON handling #6346

aragula12 opened this issue Mar 8, 2018 · 3 comments
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a OS-Windows Resolution-Answered The question is answered. Resolution-External The issue is caused by external component(s).

Comments

@aragula12
Copy link

aragula12 commented Mar 8, 2018

Visual Studio 15.6 which was recently released (https://blogs.msdn.microsoft.com/visualstudio/2018/03/06/visual-studio-2017-version-15-6-visual-studio-for-mac-version-7-4-released) breaks / Powershell JSON handling

Issue 1:
Steps to reproduce

"[{x:'b'},{x:'a'}]" | ConvertFrom-Json | ConvertTo-Json

Expected behavior

before VS 15.6 used to return

[
  {
      "x":  "b"
  },
  {
      "x":  "a"
  }
]

Actual behavior

With VS 15.6 installed returns

{
    "value":  [
                  {
                      "x":  "b"
                  },
                  {
                      "x":  "a"
                  }
              ],
    "Count":  2
}

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.16299.248
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.16299.248
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue 2:
Steps to reproduce

"[{x:'b'},{x:'a'}]" | ConvertFrom-Json | Sort-Object -Property x

Expected behavior

before VS 15.6 used to return

x
-
a
b

Actual behavior

With VS 15.6 installed returns

x
-
b
a

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.16299.248
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.16299.248
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@bergmeister
Copy link
Contributor

bergmeister commented Mar 8, 2018

I have a VM with VS 15.5.6 installed and can say there is no difference between my dev laptop that has VS 15.6.1
What you describe as expected is what I get in PowerShell 6 (both machines), and what you describe as actual, I get on Windows PowerShell 5.1 on both machines. Note that this repo is only for issues of PowerShell 6.

@mklement0
Copy link
Contributor

mklement0 commented Mar 8, 2018

To add to @bergmeister's comment: The issue you describe was fixed in Core a while back (but still exists in Windows PowerShell v5.1): #3153

@TravisEz13
Copy link
Member

As stated in the bug template:

For Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:

@TravisEz13 TravisEz13 added Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-Answered The question is answered. OS-Windows Resolution-External The issue is caused by external component(s). labels Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a OS-Windows Resolution-Answered The question is answered. Resolution-External The issue is caused by external component(s).
Projects
None yet
Development

No branches or pull requests

4 participants