-
Notifications
You must be signed in to change notification settings - Fork 816
Cancellable: always catch internal cancellations #18531
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
base: main
Are you sure you want to change the base?
Conversation
|
I think this worked before and I broke it the previous time I touched this code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@majocha Thank you! 🙂
This just reverts a bug recently introduced in #18309. Maybe no release notes needed. |
I've been running Visual Studio in debug mode and I noticed a lot of assertions related to cancellation.
Cancellable.CheckAndThrow()
surfaces as an internal error, despite being in the context ofcancellable
workflow, for example here:fsharp/src/Compiler/Service/FSharpCheckerResults.fs
Lines 3284 to 3285 in 172dc31
This seems benign in real use, but I think is not correct. It's also annoying when trying to test things in debug mode.
The fix is to handle such things in the cancellable builder.
Update: This worked before, and I broke it. This PR just reverts relevant parts of the code.
cc: @auduchinok