fsprojects / FSharp.Configuration

The FSharp.Configuration project contains type providers for the configuration of .NET projects.
http://fsprojects.github.io/FSharp.Configuration/
Other
114 stars 63 forks source link

error FS2014: A problem occurred writing the binary #106

Closed pchalamet closed 11 months ago

pchalamet commented 7 years ago

Hello,

While using Yaml type provide, I encounter this error:

FSC : error FS2014: A problem occurred writing the binary 'c:\src\oss\bugfs\obj\Debug\bugfs.dll': Error in pass3 for type ViewSerializer, err or: Error in GetMethodRefAsMethodDefIdx for mref = ("get_view", "ViewConfig"), error: Exception of type 'Microsoft.FSharp.Compiler.AbstractIL.I LBinaryWriter+MethodDefNotFound' was thrown. [c:\src\oss\bugfs\bugfs.fsproj] This is due to several type definition for the same yaml file in different modules. From what I've been able to see, commenting yaml type definition in Graph.fs solves the problem - this is useless I agree but I didn't think this could upsets fs compiler this way.

I tried to extract offending code and get a minimal reproduction case here: https://github.com/pchalamet/bugfs

Thanks !