Closed baronfel closed 6 years ago
Thank for you efforts @baronfel. I am nit quite sure ... but maybe Yaml TP emits code that use some types/functions not available in test project.
For example it may be some call from quotation to function defined in private
module insite TP assembly, that it inaccessible
from test project. According to error message, it may be use of some type defined in provate module. (this is just a guess)
Still no resolution, but I updated to latest SDK again.
@baronfel I updated the TPSDK and fixed one bug, getting a little further, see commit to your branch above
Error is now:
2) FS3033: C:\GitHub\dsyme\FSharp.Configuration\tests\FSharp.Configuration.Tests\YamlProvider.Tests.fs(8,17): The type provider 'FSharp.Configuration.ConfigTypeProvider+FSharpConfigurationProvider' reported an error: Type mismatch when building 'args': invalid parameter for a method or indexer property. Expected 'System.Collections.Generic.IEnumerable`1[System.String]', but received type 'System.Collections.Generic.IEnumerable`1[System.String]'.Parameter name: receivedType
It is likely this is a bug in the TPSDK, I will look soon
Thanks @dsyme! I think I've seen that error message before, over on Fsharp.Data.TypeProviders as well.
Is there some guidance available for when we should create ProvidedAssemblies? I see here now that we have one for the yamlConfig
type, and then another made in the instanciation function for that type as well. What practical effect does that have? Those are two logically- and file-system-distinct assemblies from what I can tell.
@baronfel There is only the one in the instantiation function for generative type provider. The other is GetExecutingAssembly
You're correct, I slid right past that binding
@baronfel @sergey-tihon I fixed the remaining issue. The problem we were hitting is now documented here: https://github.com/fsprojects/FSharp.TypeProviders.SDK/#explicit-construction-of-code-makegenerictype-makegenericmethod-and-uncheckedquotations
I think we can merge this and consider republishing the TP
@baronfel You may have seen we're looking for maintainers for this repo - @dtchepak and @forki might be able to help a bit. Any interest? We're mainly just looking for someone to republish the packages after updates like this, though there have been a few incoming issues too, thanks
Thank you @baronfel ! PR is merged as released as v1.4.0
P.S. @baronfel we will be happy to see your name on maintainers list.
I'd be interested in becoming a maintainer 👍 Just send a PR to the readme?
@baronfel I'll add you to the readme, the github team and the nuget package
@baronfel OK, added. You have to accept the nuget.org and github invitations.
I did the grunt-part of the new TP SDK update, and now am raising a flag to finish the job. The TP project builds, but the tests fail with errors like:
Which come from invoking the TP in the test project. I'm imagining I missed something related to Suppressing Relocation, so any tips here would be ideal.