Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error : Value cannot be null #43

Closed
nabinked opened this issue Oct 24, 2019 · 1 comment
Closed

Error : Value cannot be null #43

nabinked opened this issue Oct 24, 2019 · 1 comment

Comments

@nabinked
Copy link

nabinked commented Oct 24, 2019

Installed inside WSL (Ubuntu 18.04). Powershell version 6.2.3 . Let me know if you need more info.

/mnt/c/Users/nabin.thapa> z group
Test-Path : Value cannot be null.
Parameter name: The provided Path argument was null or an empty collection.
At /home/nabin/.local/share/powershell/Modules/z/1.1.10/z.psm1:98 char:10
+     if ((Test-Path $cdHistory)) {
+          ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidArgument: (:) [Test-Path], ArgumentNullException
+ FullyQualifiedErrorId : NullPathNotPermitted,Microsoft.PowerShell.Commands.TestPathCommand

System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'FilePath' because it is null.
   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(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
@badmotorfinger
Copy link
Owner

This script is not supported while running under Linux nor the cross platform PowerShell Core.

Happy to accept pull requests for this support :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants