ZLocation icon indicating copy to clipboard operation
ZLocation copied to clipboard

Index was out of range on fresh install

Open tgeng opened this issue 5 years ago • 2 comments

Hi, first thank you for creating this plugin! I enjoy using z.sh on Linux and I was super excited when seeing this project!

Unfortunately I could not get this working. Everytime I execute z. I get the following error:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
At C:\Program Files (x86)\WindowsPowerShell\Modules\ZLocation\1.2.0\ZLocation.Service.psm1:76 char:9
+         Write-Error $error[0]
+         ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], ArgumentOutOfRangeException
    + FullyQualifiedErrorId : System.ArgumentOutOfRangeException

My setup:

PS> $PSVersionTable.PSVersion
Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      17763  592

Terminal: Cmder version 180626 Windows version: 10.0.17763 Build 17763

tgeng avatar Jul 21 '19 05:07 tgeng