You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not familiar with this class and cannot seem to find many c# examples of how to work dynamically with the type. However it should be possible to update GetChildren and AspectGetter to behave better than at the moment (blank string no children).
These extension methods (see below) seem to behave badly at runtime too. Also I think they are a read herring. They are most likely just generic extension methods.
PS D:\Repos\GraphicalTools>$Values| ConvertFrom-JSON | Show-ObjectTree
Show-ObjectTree: Could not load file or assembly 'Namotion.Reflection, Version=2.0.10.0, Culture=neutral, PublicKeyToken=c2f9c3bdfae56102'. The system cannot find the file specified.
If done correctly this should also mean that other use cases for custom objects will work better. And the refactoring work in the PR will also make it more flexible to future changes.
Prerequisites
https://github.com/PowerShell/GraphicalTools/issues?q=is%3Aissue+is%3Aopen+show-objecttree returned 0 results of relevance.
Steps to reproduce
As https://github.com/orgs/PowerShell/discussions/21343#discussioncomment-8810840 states, it doesn't appear to parse the object:
Initialize a variable as JSON
Pass the value via a pipe to
Show-ObjectTree
.Expected behavior
It should display as
Get-Process | Show-ObjectTree
does:Actual behavior
Visuals
When that expansion indicator is invoked, it disappears:
Error details
Get-Error
returns
$Null
.Environment data
Version
PowerShell
Microsoft.PowerShell.ConsoleGuiTools
The text was updated successfully, but these errors were encountered: