-
Notifications
You must be signed in to change notification settings - Fork 288
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
Build with embedded resource broke after upgrade from 3.0.0 to 3.0.1 #1255
Build with embedded resource broke after upgrade from 3.0.0 to 3.0.1 #1255
Comments
Confirmed. |
The error is also in the 3.3.1 release. Probably thrown in the SDK's Maybe it's possible to upcast the assembly before calling |
I'm facing this issue too, added a repro test here: https://github.com/Tarmil/FSharp.Data/tree/embeddedresource-repro I tried uncommenting the code in GetManifestResourceStream in ProvidedTypes.fs, and I end up with an empty sequence as
It will still call the overridden method. |
My bad, the latest version is broken too, I took a old version |
See fsprojects/FSharp.TypeProviders.SDK#324 for a likely fix, it reinstates the code to read resources (at the cost of re-cracking the PR File, though I don't think that's significant) @fpellet Any chance you could test this fix, or is it too tricky to do so? |
I can confirm that the issue is fixed with the latest TPSDK master in the repro test I linked above 👍 https://github.com/Tarmil/FSharp.Data/tree/embeddedresource-fixed |
Integrated latest TPSDK and released as 3.3.1 then 3.3.2 |
Should this issue be resolved in 3.3.2? It still fails in my code. |
Fix issue #1255 : EmbeddedResource not working
I’m seeing this same issue with the CsvProvider (on both 3.3.1 & 3.3.2) - |
JsonProvider in FSharp.Data 3.3.2 is still giving me this issue. |
Hum, I think that the code is good, but nuget package is bad |
@fpellet I've tried your package and built 3.3.2 from source again and they both work. The package from Nuget does not. As you pointed out 3.3.1 and 3.3.2 Nuget packages contain the same binaries. Both happen to be identical to 3.2.4 as well. As of 3.3.1 the release branch (https://github.com/fsharp/FSharp.Data/commits/release) has only included the .nupkg file and not the binaries. The binaries commited in the release branch are still from 3.2.4. This appears to be a change in the release process. @dsyme could this be what is causing the wrong binaries to be released to Nuget? |
@champloo I bumped the version, rebuilt master from clean and manually pushed a nuget for FSharp.Data 3.3.3. Could you check it out and see if it fixes your problems? I tried a |
OK I removed the whole "push binaries to release branch" thing as I don't see why we're releasing via any other mechanism but nuget. Github is not meant to be for binary releases.... |
I can confirm that nuget packet version 3.3.3 works for me. 3.3.2 does not work. |
@dsyme 3.3.3 fixes the issues that I was having. Thank you. |
Thanks for confirming! |
I get an error message if I upgrade JsonProvider from 3.0.0 to 3.0.1:
Error:
to reproduce:
Make an app.fsproj with a
program.fs
:and reference a lib.fsproj with a
lib.fs
:json file is not complicated:
The text was updated successfully, but these errors were encountered: