-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FSI 4.7: expression is too large and/or complex to emit #7673
Comments
cc @TIHan This could be related to stack overflow bugs we resolved in F# 4.7 where massive records would cause the compiler to stack overflow on .NET Core. This may have worked on FSI since it uses .NET Framework which didn't have that issue. |
Yes, this is related. I already have a fix for it for a similar issue and this one might well be the same issue. Will make a PR today. |
Seems my fix wasn't enough to handle more cases since I was able to spend a bit more time on it. I made a PR regardless though. @kevmal , if you want this to work as is, you can put the |
I have an anonymous record with 48 fields that loads in fsi.exe but fails with Error FS0073 in fsiAnyCpu.exe. With 47 fields it loads fine in both fsi and fsiAnyCpu. Here is a gist: https://gist.github.com/larjo/d89b2a9184b151773de3117fa21f97fd I am using the fsi and fsiCpuAny from the latest build tools, 16.3.5. If I declare the anonymous record as a struct, it actually works in fsiAnyCpu. So that is a possible workaround. |
#7678 resolves this. |
The following has never caused issues but with "F# Interactive version 10.6.0.0 for F# 4.7" it gives a
The actual record is longer I just deleted fields to reduce the example length:
The text was updated successfully, but these errors were encountered: