Skip to content

Type Providers are broken in the editor, even though they will execute just fine. #1758

@cartermp

Description

@cartermp
  1. Install VS 2017 RC1 Community on a clean machine.
  2. Install .NET Desktop workload.
  3. Install the FSharp.Data package.
  4. Enter the following code in the editor:
open FSharp.Data

type JsonContext = JsonProvider<""" { "name":"John", "age":94 } """>

let json = JsonContext.Parse(""" { "name":"John", "age":94 } """)

[<EntryPoint>]
let main argv = 
    printfn "Age: %d.  Name: %s" json.Age json.Name
    printfn "%A" argv
    0 // return an integer exit code

Expected: No red squiggles and IntelliSense when "dotting" into json.

Actual:

tp-appears-broken

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions