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

Errors when running on macOS #19

Open
vors opened this issue Mar 12, 2018 · 0 comments
Open

Errors when running on macOS #19

vors opened this issue Mar 12, 2018 · 0 comments

Comments

@vors
Copy link

vors commented Mar 12, 2018

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?

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

1 participant