-
Notifications
You must be signed in to change notification settings - Fork 59
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
>=1.3.0 causes nonsensical Intellisense/compilation errors (due to applicatives?) #84
Comments
This unfortunately feels like an F# compiler issue. :( @baronfel and I are looking at making a PR to FSharp.Core soon. |
For a workaround right now could you do: let! _ = finalizeUpdate user @cartermp I think we found another edge case in CEs wrt applicatives. |
@dsyme looks like an issue to investigate here |
Thanks for the tip. I'll stick with 1.2.6 for now; it's the most non-intrusive solution. |
I can definitely confirm this bug happens when adding the |
@cartermp I'm about to submit an issue with more details that should help narrow it down |
I'm going to keep this open until F# release a new preview with the fix |
Pretty sure this is fixed in F# 5.0 |
Was fixed in an updated VS version, to be specific. Don't remember exactly which. The referenced FSharp.Core version seems irrelevant. |
After upgrading from 1.2.6 to 1.3.0 or above, I get nonsensical compilation errors:
I guess this has to do with applicatives.
I am using
<LangVersion>preview</LangVersion>
to get access tonameof
, which I use extensively in logging.It builds fine with the VSBuild task on Azure Pipelines, but locally there's nothing that can make it compile except downgrading to 1.2.6.
Note that I am not even using
and!
; the error come just from upgrading FsToolkit.ErrorHandling.The errors can often be "fixed" by reordering the bang operator lines if possible, but that's not always possible nor desirable. For example like the below (which can't be used due to incorrect behavior):
The text was updated successfully, but these errors were encountered: