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

Get-Content : Cannot bind argument to parameter 'Path' because it is an empty string. #12

Open
ghost opened this issue May 11, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented May 11, 2017

I just installed and I am getting this error when I run it :

PS C:> todo
Get-Content : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\Users\xxxxxx\Documents\WindowsPowerShell\Modules\todo\todo.psm1:259 char:27

  • $results = @(Get-Content $listLocations)
    
  •                          ~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Get-Content], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.GetContentCommand

PS C:> todo add "test"
Add-Content : Cannot bind argument to parameter 'Path' because it is null.
At C:\Users\cjanik\Documents\WindowsPowerShell\Modules\todo\todo.psm1:491 char:14

  • Add-Content $TODO_FILE ($item)
    
  •             ~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Add-Content], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.AddContentCommand

Get-Content : Cannot bind argument to parameter 'Path' because it is null.
At C:\Users\xxxxxxxx\Documents\WindowsPowerShell\Modules\todo\todo.psm1:495 char:27

  •     $taskNum = (Get-Content $TODO_FILE | Measure-Object).Count
    
  •                             ~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Get-Content], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.GetContentCommand

2017-05-10 test
added.

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

0 participants