fsprojects / FSharp.TypeProviders.SDK

The SDK for creating F# type providers
https://fsprojects.github.io/FSharp.TypeProviders.SDK/
MIT License
298 stars 94 forks source link

HTML Provider doesn't work with FSI with F# 4.6 #318

Closed leolorenzoluis closed 2 years ago

leolorenzoluis commented 5 years ago

Description

Running load on HTML Provider will throw an exception with FSI F# 4.6

Repro steps


type NasdaqCompaniesByName = HtmlProvider<"https://www.nasdaq.com/screening/companies-by-name.aspx">
NasdaqCompaniesByName.Load("https://www.nasdaq.com/screening/companies-by-name.aspx?letter=A")

Expected behavior

It should not throw exception

Actual behavior

error FS3033: The type provider 'ProviderImplementation.HtmlProvider' reported an error in the context of provided type 'FSharp.Data.HtmlProvider,Sample="https://www.nasdaq.com/screening/companies-by-name.aspx"', member 'Load'. The error: assembly mscorlib not found

Known workarounds

Run it with dotnet cli and not through FSI

Related information

dsyme commented 2 years ago

This has been fixed since then, and would go to FSharp.Data repository in any case