You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
error FS0192 : internal error : unexpected non-generation of witness with FSharp.Core 5.0 #10472
Activity
TIHan commentedon Nov 16, 2020
// cc @dsyme
dsyme commentedon Nov 16, 2020
@marklam Note that setting
/langversion4:7allows a workaroundmarklam commentedon Nov 16, 2020
@dsyme Thanks.
TysonMN commentedon Nov 23, 2020
In the case of project file
<OtherFlags>, the specific notation for the workaround is--langversion:4.7. The whole line issmoothdeveloper commentedon Dec 26, 2020
Also hit on https://github.com/smoothdeveloper/zcore-midi-fs it comes with a long stack trace of the compiler eventually reaching this instance of the message:
fsharp/src/fsharp/IlxGen.fs
Lines 3137 to 3146 in b23b2a0
gusty commentedon Jan 13, 2021
I'm also facing this error in a production project which I can't share.
Setting lang to 4.7 is annoying as we want to take advantage of new features.
cartermp commentedon Jan 13, 2021
Just for posterity you don't need
OtherFlagsand I would recomment using<LangVersion>property instead.@dsyme would you be able to take a look here?
gusty commentedon Mar 30, 2021
@dsyme What's the status on this? Why Backlog?
I was hoping this issue to get prioritized as it's a regression, and it's preventing us to move to our new libraries which use F# 5.0
I still really hope you can find a fix soon.
dsyme commentedon Apr 1, 2021
There's a fix coming in #11349
TysonMN commentedon May 27, 2021
FWIW, I have confirmed that this issue is fixed when using Visual Studio 16.10 and FSharp.Core 5.0.1