lukesampson / pshazz

Give your powershell some pizazz.
The Unlicense
575 stars 40 forks source link

ItemNotFoundExceptions in help output #74

Closed raikesy closed 5 years ago

raikesy commented 5 years ago

Using latest pshazz installed via scoop, Powershell 6.1.0

Running pshazz [help] gives the following output:

usage: pshazz <command> [<args>]

Some useful commands are:
gc : Cannot find path 'C:\Users\jzrai\scoop\apps\pshazz\current\libexec\C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-config.ps1' because it does not exist.
At C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-help.ps1:25 char:23
+         $summary = summary (gc "$psscriptroot\$_" -raw )
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\jzrai\...hazz-config.ps1:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

gc : Cannot find path 'C:\Users\jzrai\scoop\apps\pshazz\current\libexec\C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-edit.ps1' because it does not exist.
At C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-help.ps1:25 char:23
+         $summary = summary (gc "$psscriptroot\$_" -raw )
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\jzrai\...pshazz-edit.ps1:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

gc : Cannot find path 'C:\Users\jzrai\scoop\apps\pshazz\current\libexec\C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-get.ps1' because it does not exist.
At C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-help.ps1:25 char:23
+         $summary = summary (gc "$psscriptroot\$_" -raw )
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\jzrai\...\pshazz-get.ps1:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

gc : Cannot find path 'C:\Users\jzrai\scoop\apps\pshazz\current\libexec\C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-help.ps1' because it does not exist.
At C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-help.ps1:25 char:23
+         $summary = summary (gc "$psscriptroot\$_" -raw )
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\jzrai\...pshazz-help.ps1:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

gc : Cannot find path 'C:\Users\jzrai\scoop\apps\pshazz\current\libexec\C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-init.ps1' because it does not exist.
At C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-help.ps1:25 char:23
+         $summary = summary (gc "$psscriptroot\$_" -raw )
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\jzrai\...pshazz-init.ps1:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

gc : Cannot find path 'C:\Users\jzrai\scoop\apps\pshazz\current\libexec\C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-list.ps1' because it does not exist.
At C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-help.ps1:25 char:23
+         $summary = summary (gc "$psscriptroot\$_" -raw )
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\jzrai\...pshazz-list.ps1:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

gc : Cannot find path 'C:\Users\jzrai\scoop\apps\pshazz\current\libexec\C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-new.ps1' because it does not exist.
At C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-help.ps1:25 char:23
+         $summary = summary (gc "$psscriptroot\$_" -raw )
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\jzrai\...\pshazz-new.ps1:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

gc : Cannot find path 'C:\Users\jzrai\scoop\apps\pshazz\current\libexec\C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-rm.ps1' because it does not exist.
At C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-help.ps1:25 char:23
+         $summary = summary (gc "$psscriptroot\$_" -raw )
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\jzrai\...c\pshazz-rm.ps1:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

gc : Cannot find path 'C:\Users\jzrai\scoop\apps\pshazz\current\libexec\C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-use.ps1' because it does not exist.
At C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-help.ps1:25 char:23
+         $summary = summary (gc "$psscriptroot\$_" -raw )
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\jzrai\...\pshazz-use.ps1:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

gc : Cannot find path 'C:\Users\jzrai\scoop\apps\pshazz\current\libexec\C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-which.ps1' because it does not exist.
At C:\Users\jzrai\scoop\apps\pshazz\current\libexec\pshazz-help.ps1:25 char:23
+         $summary = summary (gc "$psscriptroot\$_" -raw )
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Users\jzrai\...shazz-which.ps1:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

config  
edit    
get     
help    
init    
list    
new     
rm      
use     
which   

type 'pshazz help <command>' to get help for a specific command

Unfortunately I don't know enough about the pshazz internals to guess at what's causing this.