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
{{ message }}
Repository navigation
Show-Karma failed on relatively fresh installation #452
Ends in
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'.
Import-Module PSKoans ends in
Import-Module: The member 'FormatsToProcess' in the module manifest is not valid: Cannot find path
...PSKoans.format.ps1xml' because it does not exist..
Did you install from the PSGallery or clone the repository? If the latter, you need to install EZOut (using -AllowClobber, if memory serves, you might need it for the install and the import commands) and then run the PSKoans.ezformat.ps1 script to generate the format file before placing the module folder in a module path for use.
I might need to add some instructions around that to the readme, I'm not sure if I ended up documenting that properly.
ErrorRecord : You cannot call a method on a null-valued expression.
WasThrownFromThrowStatement : False
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.ActionCallInstruction2.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(Action1 clause, Object
dollarUnderbar, Object inputToProcess)
at System.Management.Automation.CommandProcessorBase.Complete()
Message : You cannot call a method on a null-valued expression.
Data : {System.Management.Automation.Interpreter.InterpretedFrameInfo}
InnerException :
HelpLink :
Source : System.Management.Automation
HResult : -2146233087
That's definitely an odd one, don't think I've seen that before. Is it the same in 5.1 as well as 7.x versions of powershell for you?
Also, might be worth trying to reinstall just from the gallery with Install-Module PSKoans and seeing if that works out better for you for whatever reason.
It complained
WARNING: Version '0.67.0' of module 'PSKoans' is already installed at...
To install version '0.67.1', run Install-Module and add the -Force parameter,
did so.
Show-Karma in that git folder shows me Show-Karma: You cannot call a method on a null-valued expression
are you sure you have pushed the latest Stuff ?
I'll close it now as I don't think we go here anywhere but will watch the repo and try the next mayor release.
looks promissing
Activity
vexx32 commentedon Aug 2, 2021
Did you install from the PSGallery or clone the repository? If the latter, you need to install EZOut (using
-AllowClobber, if memory serves, you might need it for the install and the import commands) and then run thePSKoans.ezformat.ps1script to generate the format file before placing the module folder in a module path for use.I might need to add some instructions around that to the readme, I'm not sure if I ended up documenting that properly.
vkuehn commentedon Aug 2, 2021
I did clone the repo. After following your instructions here I get
Show-Karma: You cannot call a method on a null-valued expression.vexx32 commentedon Aug 2, 2021
Check
$Error[0].Exception.GetBaseException() | Format-List -Forcefor the details of that I suppose, not much to go on there.vkuehn commentedon Aug 2, 2021
ErrorRecord : You cannot call a method on a null-valued expression.
WasThrownFromThrowStatement : False
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(Action1 clause, ObjectdollarUnderbar, Object inputToProcess)
at System.Management.Automation.CommandProcessorBase.Complete()
Message : You cannot call a method on a null-valued expression.
Data : {System.Management.Automation.Interpreter.InterpretedFrameInfo}
InnerException :
HelpLink :
Source : System.Management.Automation
HResult : -2146233087
vexx32 commentedon Aug 2, 2021
That's definitely an odd one, don't think I've seen that before. Is it the same in 5.1 as well as 7.x versions of powershell for you?
Also, might be worth trying to reinstall just from the gallery with
Install-Module PSKoansand seeing if that works out better for you for whatever reason.vkuehn commentedon Aug 2, 2021
It complained
WARNING: Version '0.67.0' of module 'PSKoans' is already installed at...
To install version '0.67.1', run Install-Module and add the -Force parameter,
did so.
Show-Karma in that git folder shows me
Show-Karma: You cannot call a method on a null-valued expressionare you sure you have pushed the latest Stuff ?
I'll close it now as I don't think we go here anywhere but will watch the repo and try the next mayor release.
looks promissing