Describe "Module Bug or Issue"
Identical to the issue reported in #452
Context "The Problem"
After following the repo-based installation steps and running Show-Karma, I receive the following error:
PS C:\code\PSKoans> Show-Karma
Show-Karma : The 'Show-Karma' command was found in the module 'PSKoans', but the module could not be loaded. For more
information, run 'Import-Module PSKoans'.
At line:1 char:1
+ Show-Karma
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Show-Karma:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
Running Import-Module PSKoans as suggested in the first error message:
PS C:\code\PSKoans> Import-Module PSKoans
Import-Module : The member 'FormatsToProcess' in the module manifest is not valid: Cannot find path
'C:\code\PSKoans\PSKoans\PSKoans.format.ps1xml' because it does not exist.. Verify that a valid value is specified for
this field in the 'C:\code\PSKoans\PSKoans\PSKoans.psd1' file.
At line:1 char:1
+ Import-Module PSKoans
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (C:\code\PSKoans\PSKoans\PSKoans.psd1:String) [Import-Module], Argu
mentException
+ FullyQualifiedErrorId : Modules_InvalidManifest,Microsoft.PowerShell.Commands.ImportModuleCommand
Installing EZOut using -AllowClobber and running PSKoans.ezformat.ps1 as suggested in #452:
PS C:\code\PSKoans> Install-Module EZOut -AllowClobber
PS C:\code\PSKoans> .\PSKoans.ezformat.ps1
PS C:\code\PSKoans>
Running Show-Karma again:
PS C:\code\PSKoans> Show-Karma
Show-Karma : You cannot call a method on a null-valued expression.
At line:1 char:1
+ Show-Karma
+ ~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Show-Karma], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull,Show-Karma
Checking $Error[0].Exception.GetBaseException() | Format-List -Force as suggested in #452:
PS C:\code\PSKoans> $Error[0].Exception.GetBaseException() | Format-List -Force
ErrorRecord : You cannot call a method on a null-valued expression.
WasThrownFromThrowStatement : False
Message : You cannot call a method on a null-valued expression.
Data : {System.Management.Automation.Interpreter.InterpretedFrameInfo}
InnerException :
TargetSite : Void CheckActionPreference(System.Management.Automation.Language.FunctionContext,
System.Exception)
StackTrace : at
System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
funcContext, Exception exception)
at
System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame
frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(Interp
retedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(Interp
retedFrame frame)
at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object
dollarUnderbar, Object inputToProcess)
at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
at System.Management.Automation.CommandProcessorBase.Complete()
HelpLink :
Source : System.Management.Automation
HResult : -2146233087
Context "Additional Information"
Name Version
---- -------
PSKoans 0.67.0
PSKoans 0.67.0
Name Value
---- -----
PSVersion 5.1.22000.65
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22000.65
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Also attempted using PS 7.1.4 on both Windows and macOS with similar results.
No issues when installing from gallery.
Describe "Module Bug or Issue"
Identical to the issue reported in #452
Context "The Problem"
After following the repo-based installation steps and running
Show-Karma, I receive the following error:Running
Import-Module PSKoansas suggested in the first error message:Installing EZOut using
-AllowClobberand runningPSKoans.ezformat.ps1as suggested in #452:Running
Show-Karmaagain:Checking
$Error[0].Exception.GetBaseException() | Format-List -Forceas suggested in #452:Context "Additional Information"
Also attempted using PS 7.1.4 on both Windows and macOS with similar results.
No issues when installing from gallery.