-
Notifications
You must be signed in to change notification settings - Fork 832
Type relations cache: Add a failsafe in case of infinite types #19010
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
Conversation
❗ Release notes required
|
Unfortunately,, I can't come up with a test case that would repro the issue. |
I think it would make sense to re-target this to release/dev18.0 and backport, if there is a real chance of it happening for regular projects. |
In the repo from the issue it happens during edits, i.e. the code is not in the state that compiles correctly. |
Understood. |
@T-Gro backporting to "release/dev18.0" failed, the patch most likely resulted in conflicts: $ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Add a failsafe in case of infinite types
Applying: do not cache when invalid keys
Applying: refactor
Applying: rn
.git/rebase-apply/patch:13: trailing whitespace.
* Type relations cache: handle potentially "infinite" types ([PR #19010](https://github.com/dotnet/fsharp/pull/19010))
warning: 1 line adds whitespace errors.
Using index info to reconstruct a base tree...
M docs/release-notes/.FSharp.Compiler.Service/11.0.0.md
Falling back to patching base and 3-way merge...
Auto-merging docs/release-notes/.FSharp.Compiler.Service/11.0.0.md
CONFLICT (content): Merge conflict in docs/release-notes/.FSharp.Compiler.Service/11.0.0.md
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0004 rn
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
Description
This is a speculative fix for #19007
We should not try to get a cache key out of an infinite type.
This adds a failsafe for such cases.