-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi,
I have a function in a ps1 file in a Plugins folder.
I added this folder in the pluginspath configuration, and the function/file is auto-completed when I do add-psprofileplugin.
but when I restart the powershell session, Importing the psprofile module returns me an exception that the path is null.
PSMessageDetails :
Exception : System.Management.Automation.CmdletInvocationException: Cannot bind argument to parameter 'Path' because it is null. ---> System.Management.Automation.ParentContainsErrorRecordException: Cannot bind argument to parameter
'Path' because it is null.
at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections,
FunctionContext funcContext)
at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
TargetObject :
CategoryInfo : InvalidData: (:) [Import-Module], CmdletInvocationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ImportModuleCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, C:\Users\avezina\Documents\WindowsPowerShell\Modules\PSProfile\0.6.3.20200627\PSProfile.psm1: line 991
at _loadPlugins, C:\Users\avezina\Documents\WindowsPowerShell\Modules\PSProfile\0.6.3.20200627\PSProfile.psm1: line 956
at Load, C:\Users\avezina\Documents\WindowsPowerShell\Modules\PSProfile\0.6.3.20200627\PSProfile.psm1: line 240
at <ScriptBlock>, C:\Users\avezina\Documents\WindowsPowerShell\Modules\PSProfile\0.6.3.20200627\PSProfile.psm1: line 7263
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working