Rezoom.SQL icon indicating copy to clipboard operation
Rezoom.SQL copied to clipboard

Type provider doesn't work with FParsec-Pipes 1.0.0

Open marklam opened this issue 6 years ago • 1 comments

Following the tutorial in a .net 4.7.2 console app with FSharp.Core 4.5, the provider reports

The type provider 'Rezoom.SQL.Provider.Provider' reported an error: The type initializer for '<StartupCode$Rezoom-SQL-Compiler>.$Rezoom.SQL.Compiler.Config' threw an exception

for the line type MyModel = SQLModel<".">

It seems to be a problem with the FParsec dependency, because pinning at 0.4.0 fixes it.

marklam avatar Sep 17 '18 09:09 marklam

I think this is due to the type provider assembly resolution code hoping to find a .NET framework dependency, when the 1.0.0 version of this dependency is .NET standard. I had hoped to upgrade them all together but hit a roadblock making Rezoom.SQL .NET standard compatible.

The best solution at this point is probably to put out a hotfix package for Rezoom.SQL.Provider that specifies the appropriate max version # for its dependencies.

rspeele avatar Oct 02 '18 00:10 rspeele