Closed samhanes closed 5 years ago
Is it possible to create Test for this repo with TP that provide enums? I see that @Dzoukr is also interested in such sample/test #264
Thanks for pinging me - I updated #264 with snippet of my usage, but as written there - there must be cleaner way.
I was able to resolve this issue - we were incorrectly adding both the root types and the provider type to the executing assembly. After updating usage to match the example in the template, the compiler error is resolved.
I'm now seeing a different issue, but it may not be related - going to investigate a bit more before I close this. Please don't spend any time on this for now!
Description
After upgrading FSharp.Data.SqlClient to the latest version of the SDK, I am seeing compile-time errors for tests using
SqlEnumProvider
, which is a generative provider. At design time, the provided types are working as expected.The error at compile time:
I also see the following in the output:
Repro steps
Fetch the branch used here: https://github.com/fsprojects/FSharp.Data.SqlClient/pull/315
Run
build.fsx
, type provider will build but tests will fail to compile.Open Tests.sln and observe that design-time behavior in
SqlEnumTests.fs
is as expected.Expected behavior
SqlClient.Tests project should compile.
Actual behavior
Error when compiling SqlClient.Tests.
Known workarounds
None
Related information