Repository navigation
Update FSharp.Compiler.Service to 43.13.404 - #1569
Merged
Merged
Conversation
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>
Contributor
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) |
Member
Author
|
Ugh that's annoying |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
SynExpr.RecordholdsSynExprRecordFieldOrSpread,SynExpr.AnonRecdholdsSynExprAnonRecordFieldOrSpread, andSynTypeDefnSimpleRepr.RecordholdsSynFieldOrSpread(recordFieldsAndSpreads). The block separator moved from the field to the wrapper. The syntax walkers inUntypedAstUtils.fs,FCSPatches.fs,TestAdapter.fs, andUnionPatternMatchCaseGenerator.fsalso walk spread expressions and spread types. The code fixes that read record fields skip spreads.RecordStubGeneratordoes 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.RecordExprgetsLastFieldBlockSeparator, because the separator is no longer onSynExprRecordField.SynInterpolatedStringPart.FillExprhasformatting: SynInterpolationFormattinginstead ofqualifiers. The .NET format identifier is inSynInterpolationFormatting.DotNet(format = Some ident).ToolTipElementData.MainDescription,TypeMapping, andMethodGroupItemParameter.DisplayareRichTextinstead ofTaggedText[].TextTaghas a newUnresolvedNamecase, whichTipFormatterrenders as plain text.FSharpSourceTokenizertakes three arguments.Points for review
FCSPatches.RichTextShim.ofTaggedTextscalls the internalRichText(TaggedText[])constructor through reflection.ToolTipElement.Singletakes aRichText, but FCS 43.13 keeps theRichTextconstructor and theRichTextmodule internal. The keyword and#directive tooltips inKeywordList.fsneed it. Theletkeyword hover test inCoreTests.fscovers this path. An upstream FCS change that makesRichText.ofPartspublic would remove the shim.LanguageVersionShim.SupportsFeaturereturnstruewhen FCS no longer has theLanguageFeaturecase. FCS removes the flag of a feature that every supported language version has, for exampleStructActivePatternin 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 (AccessorFunctionShorthandandStringInterpolation) are still in FCS 43.13. Ionide.Analyzers 0.22.0 has the same fix, because its ReturnStructPartialActivePatternAnalyzer stopped working.Not changed
>= 40.0and is not part of this update.Language version '7.0' is out of support.). FSAC passes the project--langversionto FCS unchanged.Validation
dotnet build -c Releasepasses, anddotnet fantomas check .passes.FsAutoComplete.Tests.Lsponnet10.0:Failed: 12, Passed: 5871, Skipped: 113. The 12 failures are the TestExplorer tests (6 for each compiler mode). Their sample projects targetnet8.0, and the local machine has no .NET 8 runtime, so test discovery returns an empty set. CI runs them.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