fasdr icon indicating copy to clipboard operation
fasdr copied to clipboard

Errors when running on macOS

Open vors opened this issue 6 years ago • 0 comments

Hello!

I tried importing the module on Mac and got few errors import-module fasdr

PS /Users/vors/dev/Pester> import-module fasdr                                                                            New-Object : Cannot convert argument "0", with value: "System.IO.Abstractions.FileSystem", for "Database" to type "System.IO.Abstractions.IFileSystem": "Cannot convert the "System.IO.Abstractions.FileSystem" value of type "System.IO.Abstractions.FileSystem" to type "System.IO.Abstractions.IFileSystem"."                                                              At /Users/vors/.local/share/powershell/Modules/Fasdr/1.0.135/Fasdr.psm1:237 char:26                                       
+ ... rDatabase = New-Object Fasdr.Backend.Database -ArgumentList $fileSyst ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [New-Object], MethodException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
 
database is null!
You cannot call a method on a null-valued expression.
At /Users/vors/.local/share/powershell/Modules/Fasdr/1.0.135/Fasdr.psm1:241 char:2
+     $global:fasdrDatabase.Load()
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At /Users/vors/.local/share/powershell/Modules/Fasdr/1.0.135/Fasdr.psm1:488 char:1
+ $location = $global:fasdrDatabase.GetProviderDatabaseLocation($provid ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
 
Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At /Users/vors/.local/share/powershell/Modules/Fasdr/1.0.135/Fasdr.psm1:489 char:17
+ if (!(Test-Path $location)) {
+                 ~~~~~~~~~
+ CategoryInfo          : InvalidData: (:) [Test-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand

I assumed it could work on unix, because Travis CI badge indicates that it has a CI on non-windows platforms. Is it a case?

vors avatar Mar 12 '18 02:03 vors