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
When invoked by the successful output of of the New-Junction command from the PowerShell Community Extensions module (https://github.com/Pscx/Pscx/) this error is thrown
New-Junction-TargetPath D:\Literary\unsorted\webcomic -LiteralPath D:\LitShare\unsorted_webcomic
FileInfo : You cannot call a method on a null-valued expression.
At C:\Users\Chirishman\Documents\WindowsPowerShell\Modules\Get-ChildItemColor\2.2.0\Get-ChildItemColor.psm1:182
char:17+ FileInfo $_+ ~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [FileInfo], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull,FileInfo
Upon debugging the inner exception in FileInfo is:
You cannot call a method on a null-valued expression.
At C:\Users\Administrator\Documents\WindowsPowerShell\Modules\Get-ChildItemColor\2.2.0\FileInfo.ps1:33 char:5+$ParentName=$Item.PSParentPath.Replace("Microsoft.PowerShell.Co ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stepping into FileInfo I find that the PSParentPath property is not present, though the Parent property is there
I think this could be solved by adding a fallback to dropping everything after the last slash in FullName if PSParentPath is missing though I've also reported it on that repo as a bug (Pscx/Pscx#99)
The text was updated successfully, but these errors were encountered:
When invoked by the successful output of of the
New-Junction
command from the PowerShell Community Extensions module (https://github.com/Pscx/Pscx/) this error is thrownUpon debugging the inner exception in FileInfo is:
Stepping into FileInfo I find that the PSParentPath property is not present, though the Parent property is there
I believe that this is happening because the
New-Junction
command is implemented as a DLL and is not automatically appending that extra propertyI think this could be solved by adding a fallback to dropping everything after the last slash in FullName if PSParentPath is missing though I've also reported it on that repo as a bug (Pscx/Pscx#99)
The text was updated successfully, but these errors were encountered: