Skip to content

v15.0.0 gives --multiemit warnings when accessing types defined in prior snippets #740

@nhirschey

Description

@nhirschey

It looks like changes for fsi script debugging in .net6.0 (dotnet/fsharp#12722) are causing multi-emit warnings in v15 versions of fsdocs-tool.

To reproduce, I create a blank docs folder and add index.fsx with this:

type Test = { A: int; B: string }


let list = [{ A = 1; B = "a" }; { A = 2; B = "b" }; { A = 3; B = "c" }]
[ for x in list do x.A ]

(***include-fsi-output***)

[ for x in list do x ]
(***include-fsi-output***)

[ for x in list do x.A ]
(***include-fsi-output***)

When I run dotnet fsdocs watch --eval I get this below. Note the warning in the last snippet, with full text

input.fsx (1,1)-(1,25) interactive warning Accessing the internal type, method or field 'A@' from a previous evaluation in F# Interactive is deprecated and may cause subsequent access errors. To enable the legacy generation of a single dynamic assembly that can access internals, use the '--multiemit-' option."

image

Tools info

{
  "version": 1,
  "isRoot": true,
  "tools": {
    "fsdocs-tool": {
      "version": "15.0.0",
      "commands": [
        "fsdocs"
      ]
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions