Skip to content

Update FSharp.Compiler.Service to 43.13.404 - #1569

Merged
TheAngryByrd merged 3 commits into
ionide:mainfrom
TheAngryByrd:fcs-43.13.404
Nov 17, 2026
Merged

TheAngryByrd merged 3 commits into
ionide:mainfrom
TheAngryByrd:fcs-43.13.404

Conversation

@TheAngryByrd

Copy link
Copy Markdown
Member

Summary

This PR updates FsAutoComplete to FSharp.Compiler.Service 43.13.404 and FSharp.Core 10.1.404. It also updates the packages that pin FCS: FSharp.Analyzers.SDK 0.43.0, Ionide.Analyzers 0.22.0, and Ionide.ProjInfo 0.76.0. Those three were released with FCS 43.13.404 in ionide/proj-info#254, ionide/FSharp.Analyzers.SDK#365, and ionide/ionide-analyzers#220.

The merge releases 0.87.0. This is a breaking change for analyzer authors: FSAC loads only analyzers built against FSharp.Analyzers.SDK 0.43.

FCS 43.13 changes that FSAC adapts to

  • Record spreads (F# 11). SynExpr.Record holds SynExprRecordFieldOrSpread, SynExpr.AnonRecd holds SynExprAnonRecordFieldOrSpread, and SynTypeDefnSimpleRepr.Record holds SynFieldOrSpread (recordFieldsAndSpreads). The block separator moved from the field to the wrapper. The syntax walkers in UntypedAstUtils.fs, FCSPatches.fs, TestAdapter.fs, and UnionPatternMatchCaseGenerator.fs also walk spread expressions and spread types. The code fixes that read record fields skip spreads.
  • Record stub generation. RecordStubGenerator does not offer stubs for a record expression with a spread. Fields that the spread supplies are not in the field list, so the generator would add them again and override the spread values. RecordExpr gets LastFieldBlockSeparator, because the separator is no longer on SynExprRecordField.
  • Interpolated strings. SynInterpolatedStringPart.FillExpr has formatting: SynInterpolationFormatting instead of qualifiers. The .NET format identifier is in SynInterpolationFormatting.DotNet(format = Some ident).
  • Tooltip text. ToolTipElementData.MainDescription, TypeMapping, and MethodGroupItemParameter.Display are RichText instead of TaggedText[]. TextTag has a new UnresolvedName case, which TipFormatter renders as plain text.
  • FSharpSourceTokenizer takes three arguments.

Points for review

  • FCSPatches.RichTextShim.ofTaggedTexts calls the internal RichText(TaggedText[]) constructor through reflection. ToolTipElement.Single takes a RichText, but FCS 43.13 keeps the RichText constructor and the RichText module internal. The keyword and # directive tooltips in KeywordList.fs need it. The let keyword hover test in CoreTests.fs covers this path. An upstream FCS change that makes RichText.ofParts public would remove the shim.
  • LanguageVersionShim.SupportsFeature returns true when FCS no longer has the LanguageFeature case. FCS removes the flag of a feature that every supported language version has, for example StructActivePattern in Remove always-on StructActivePattern language feature flag dotnet/fsharp#20208. Before, a removed flag silently turned off the code fix that asked for it. The two features that FSAC asks for (AccessorFunctionShorthand and StringInterpolation) are still in FCS 43.13. Ionide.Analyzers 0.22.0 has the same fix, because its ReturnStructPartialActivePatternAnalyzer stopped working.

Not changed

  • FSharpLint.Core stays at 0.23. It allows any FCS >= 40.0 and is not part of this update.
  • FCS 43.13 supports only F# 8.0 and later (Language version '7.0' is out of support.). FSAC passes the project --langversion to FCS unchanged.

Validation

  • dotnet build -c Release passes, and dotnet fantomas check . passes.
  • FsAutoComplete.Tests.Lsp on net10.0: Failed: 12, Passed: 5871, Skipped: 113. The 12 failures are the TestExplorer tests (6 for each compiler mode). Their sample projects target net8.0, and the local machine has no .NET 8 runtime, so test discovery returns an empty set. CI runs them.
  • New test GenerateRecordStub with spread: it fails when the generator does not skip spreads (There should be no applicable code action, but was [|{ Title = "Generate record stub"), and it passes with the change.

🤖 Generated with Claude Code

TheAngryByrd and others added 3 commits November 16, 2026 19:12
Update FSharp.Analyzers.SDK to 0.43.0, Ionide.Analyzers to 0.22.0, and
Ionide.ProjInfo to 0.76.0. Adapt to the FCS 43.13 syntax tree (record
spreads, interpolation formatting), the RichText tooltip text, and the
FSharpSourceTokenizer constructor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… spread

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TheAngryByrd
TheAngryByrd merged commit 152fbbd into ionide:main Nov 17, 2026
7 checks passed
@TheAngryByrd
TheAngryByrd deleted the fcs-43.13.404 branch November 17, 2026 03:05
@Numpsy

Numpsy commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Record spreads (F# 11).

Q. Is the intention to update FCS to the 'latest', or the '.NET 11' version? (Just reading the version numbering 'fun' in dotnet/fsharp#20968 about FCS 43.13.101 being the 11 version and 43.13.404 being the latest 10 update release, in a somewhat 'eh?' set of circumstances)

@TheAngryByrd

Copy link
Copy Markdown
Member Author

Ugh that's annoying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants