Open mausch opened 9 years ago
No, I don't have those errors when compiling. Also you can check on myget it compiles and run all tests.
Weird... I can't access that myget link, but I'm wondering if there were any (unwanted) breaking changes in a recent version of F#. Just for reference, my fsc.exe ( in c:\Program Files (x86)\Microsoft SDKs\F#\3.1\Framework\v4.0\ ) shows:
I just installed it from https://www.microsoft.com/en-us/download/details.aspx?id=44011 .
Mine is:
So probably there was a breaking change. Anyway I remember having tested the whole project with the coming F# 4.0 and worked fine.
There's definitely something weird here. I tried to build it on my Ubuntu machine (F# 3.1.1.31-0xamarin5 + mono 4.0.1-0xamarin5) and it failed with the same errors. Then I tried mono:3.12.0 with Docker (F# 3.1.1.26+dfsg2-3~xamarin1) and it built fine. mono:4 with Docker (F# 3.1.1.31-0xamarin5) also worked fine. And this is the same version I'm running on my non-docker environment. I don't think .NET / mono are to blame here, this seems like something weird with the F# compiler. BTW I had to comment out all references to MSTest as it's not included in Mono, but since this is only about compilation that shouldn't matter. The docker mono:4 environment seems to be exactly the same as my own... this is kinda crazy :)
Thanks. May be we should send a report to the F# guys. But then we should try to isolate the code that throws the error from the rest of the code.
First I need to isolate the environment that causes this error :-/
I get the same errors if I compile in DEBUG mode. Can you try to compile it in RELEASE?
Getting these compilation errors in the tests... are you also getting them? I'm using F# 3.1.2
C:\prg\FsControl\FsControl.Test\UnitTest.fs(107,25): error FS0073: internal error: Undefined or unsolved type variable: ^_?3062019 https://github.com/gmpl/FsControl/blob/master/FsControl.Test/UnitTest.fs#L107
C:\prg\FsControl\FsControl.Test\UnitTest.fs(149,28): error FS0073: internal error: Undefined or unsolved type variable: ^_?3062492 https://github.com/gmpl/FsControl/blob/master/FsControl.Test/UnitTest.fs#L149
C:\prg\FsControl\FsControl.Test\UnitTest.fs(150,28): error FS0073: internal error: Undefined or unsolved type variable: ^_?3064361 https://github.com/gmpl/FsControl/blob/master/FsControl.Test/UnitTest.fs#L150