question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

>=1.3.0 causes nonsensical Intellisense/compilation errors (due to applicatives?)

See original GitHub issue

After upgrading from 1.2.6 to 1.3.0 or above, I get nonsensical compilation errors:

image

I guess this has to do with applicatives.

I am using <LangVersion>preview</LangVersion> to get access to nameof, 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):

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cmeerencommented, Jun 8, 2020

For a workaround right now could you do:

let! _ = finalizeUpdate user

Thanks for the tip. I’ll stick with 1.2.6 for now; it’s the most non-intrusive solution.

0reactions
cmeerencommented, Nov 24, 2020

Was fixed in an updated VS version, to be specific. Don’t remember exactly which. The referenced FSharp.Core version seems irrelevant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found