Fix FCS 43.10.103 API compatibility for UntypedAstUtils.fs to unblock CI#4169
Fix FCS 43.10.103 API compatibility for UntypedAstUtils.fs to unblock CI#4169AbhitejJohn merged 1 commit intodotnet:mainfrom
Conversation
- Update FSharp.Compiler.Service 43.10.100 -> 43.10.103 - Update FSharp.Core 10.0.100 -> 10.0.103 - Pin SDK to 10.0.103 with latestPatch rollForward - Fix NamePatPairField: now a record type, use .Pattern property - Remove dead SynExpr.LetOrUseBang/SynExprAndBang code (unified into SynExpr.LetOrUse)
|
Is this consistent with the latest FSAutoComplete code? cc @Thorium |
|
The file is here: Ping @TheAngryByrd |
|
Yeah FSharp.Compiler.Service makes binary incompatible changes to the AST consistently. It's something we just live with.
As far as I know, the fork here has been out of sync with FsAutocomplete for a very long time. But we'll probably have to make the same change to patch in our repo. |
|
@TheAngryByrd I did update the files from FSAutoComplete to this repo not-long-ago to get support for function signatures etc. #4080 |
|
@Thorium , @jonsequitur : Indeed, however the CI has been failing ever since with these errors: Here's a build link: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1298378&view=logs&j=bb592630-4b9d-53ad-3960-d954a70a95cf&t=c2e030e7-0c13-5c98-0562-982c06e545f9. Why the PR build passed for #4080 I'm not really sure yet. This change however is LLMs proposing a fix which seems to have unblocked the build. I'd love to get your thoughts on correctness though. |
|
The reason I pinged Jimmy is that I expect he'll need the same changes to FSAutoComplete soon as well. |
|
@Thorium : Sounds good, I'm not super familiar with that integration. Would that mean we'd want to wait on those changes to be rolled out before we can merge this? Or is that independent of these updates? |
|
It's independent since FsAutocomplete here is essentially a fork. We'd just make the same changes when I get around to doing the updates. |
|
Perfect, thanks. I'll go ahead and merge this then. |
CI is failing since build #20260211.6 with compilation errors in UntypedAstUtils.fs. The .NET SDK rolled forward to 10.0.103 which ships FCS 43.10.103 with breaking AST changes (LetOrUseBang/SynExprAndBang removed, NamePatPairField changed to record). This PR updates the FCS/FSharp.Core packages to 43.10.103/10.0.103, pins the SDK, and fixes the code.