-
Notifications
You must be signed in to change notification settings - Fork 62
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
OCGV: Out-ConsoleGridView does not accept XML data #97
Comments
I just updated to 7.0.1 and I am getting the same error, any new ideas? |
Can you paste the output of |
gentle ping on this |
I just went through the same steps, creating an XML object from the same test file above.
For the record:
And the data object certainly has data (truncated):
I tried this in both Windows Terminal running PowerShell Core as well as pwsh.exe, which I guess uses the trusty conhost. Both produced the same error. Piping to UpdateI just updated PowerShell to 7.0.3 and got the exact same error. |
I can repro. I'll take a look. |
Ok, this is beyond my knowledge of PS. What I've found is the cmdlet's |
@tig were your repro steps the same? |
Yes. I grabbed his XML file and tested as he showed. |
@andschwa please prefix title with "OCGV: ". |
While manipulating XML data and testing
Out-ConsoleGridView
(Powershell 7.0.0 on Windows 10.0.19603), I noticed that the cmdlet appears to demand data of a certain datatype. For testing, a sample XML file can be found here.Tabular output from
$xml
can be viewed in the terminal$xml.catalog.book
Output
Piping to
Out-GridView
produces expected outputHowever, piping to
Out-ConsoleGridView
produces an errorThe
BaseType
of$xml.catalog.book
isSystem.Array
The text was updated successfully, but these errors were encountered: