Skip to content

Update all tools - #1563

Merged
nojaf merged 7 commits into
ionide:mainfrom
nojaf:update-tools
Oct 13, 2026
Merged

nojaf merged 7 commits into
ionide:mainfrom
nojaf:update-tools

Conversation

@nojaf

@nojaf nojaf commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Updates every tool in .config/dotnet-tools.json. Each commit handles one tool, so the PR reads best commit by commit.

Please merge with a merge commit or a rebase, not a squash. .git-blame-ignore-revs lists the format commit 788c67db by its SHA, and a squash would replace it.

Fantomas 7.0.5 → 8.0.8

  • A new .fantomasignore lets everyone format from the root with dotnet fantomas .. It skips the sample projects (TestCases/, SampleTestProjects/) and build output.
  • The test code is formatted now too. It was left out only because the 2022 setup covered src/ and nobody widened it later.
  • CI, the Format / CheckFormat targets and the docs use the root command and Fantomas 8's check subcommand.
  • 788c67db is the format commit (187 files, no code changes), and it is added to .git-blame-ignore-revs. Most of the churn is Fantomas 8's default bracket style, which we keep.
  • TestCases/Formatting gets its own empty .fantomasignore. That test runs Fantomas 6.2.2, which reads only the nearest ignore file. Without it, Fantomas 6 used the root file and skipped the test input. Fantomas 8 still applies the root file, so dotnet fantomas . keeps skipping the folder.

F# analyzers

  • Updated, for our own analyzer runs: the fsharp-analyzers tool goes from 0.37.2 to 0.39.2, Ionide.Analyzers from 0.17.0 to 0.19.0 and FSharp.Analyzers.Build from 0.3.0 to 0.5.0. The analyze job now installs .NET 10, which the tool needs since 0.38.0.
  • Unchanged, for analyzer support in the editor: the FSharp.Analyzers.SDK library stays at 0.37.2. Versions 0.38.0 and later target only net10.0 and pin FSharp.Core 10.1.400 exactly.
  • 5ace001e fixes the 37 warnings the analyzers reported: IONIDE-005 (11), IONIDE-006 (19) and IONIDE-011 (7). The 9 extra IONIDE-005 hits come from FCS 43.12.400, which shows match s with "" -> to the analyzer as s = "" (Fix quotations leaking empty-string match lowering into AST (#19873) dotnet/fsharp#19923). Only notes remain.
  • The main FsAutoComplete project is not analyzed, because its paket.references does not include Ionide.Analyzers. This was already the case before this PR.

Paket 10.3.1 → 12.0.0-alpha001

Telplin and ReportGenerator

Telplin goes from 0.9.6 to 0.17.1 and ReportGenerator from 5.5.4 to 5.5.11. Both are only used ad hoc; nothing in the build calls them.

Testing

  • The full LSP test suite (net10.0, BackgroundCompiler and TransparentCompiler) passed with the analyzer fixes: 5,863 tests ran, none failed. Two runs of the Fantomas integration test errored. After the TestCases/Formatting/.fantomasignore fix, that test passes with both compilers.
  • dotnet fantomas check . reports nothing to format.
  • dotnet build -c Release succeeds with Paket 12.
  • After the analyzer fixes, the analyzers report 0 warnings for FsAutoComplete.Core and FsAutoComplete.Logging.

nojaf added 7 commits October 13, 2026 16:12
Add a .fantomasignore so `dotnet fantomas .` formats build.fsx, src/,
benchmarks/ and the test code without passing paths. Only the sample
projects under TestCases/ and SampleTestProjects/ are skipped, because
the tests depend on their exact layout. CI, the Format and CheckFormat
targets and the contributor docs now use the root command and the
`check` subcommand.

Fantomas could not parse the #if list in DependentFileCheckingTests.fs
when no define is set, so the list now starts on its own line.

The code itself is reformatted in the next commit.
Result of running `dotnet fantomas .` from the repository root. Only
formatting changes, no code changes. Most of the churn comes from the
Fantomas 8 default bracket style, which puts the braces of multiline
records and lists on their own lines. Test code is formatted for the
first time, so the whole of src/, test/, benchmarks/ and build.fsx now
passes `dotnet fantomas check .`.
Ionide.Analyzers 0.19.0 is built against FSharp.Analyzers.SDK 0.39.0,
so it loads in the 0.39.2 tool. FSharp.Analyzers.Build goes to 0.5.0.
The tool runs on .NET 10 since 0.38.0, so the analyze job now installs
it explicitly.

The FSharp.Analyzers.SDK library that FSAC uses to host analyzers in
the editor stays at 0.37.2: 0.38.0 and later target only net10.0 and
pin FSharp.Core 10.1.400 exactly.
Fixes every warning the analyzers report for FsAutoComplete.Core and
FsAutoComplete.Logging: Option.get and .Value calls (IONIDE-006),
comparisons with "" (IONIDE-005) and `<> null` checks (IONIDE-011).

Most changes keep the behaviour as it was. Code that used to throw on a
missing value now handles it: an AsyncAVal cache that is still empty is
filled instead of unwrapped, an AddCallback marking callback without a
running transaction notifies right away, and a missing caller member
name or file path becomes an empty string.

Also add an empty .fantomasignore to the Formatting test case. That test
runs Fantomas 6.2.2 from its own tool manifest, and Fantomas 6 applied
the root .fantomasignore, which ignores TestCases/, so it skipped the
test input and returned no edits. Fantomas 6 reads only the nearest
ignore file, while Fantomas 8 still applies the root one, so
`dotnet fantomas .` keeps skipping the folder.
Paket 12 only ships as a .NET 10 tool and drops paket.exe, the
bootstrapper and Mono. Paket.Restore.targets is regenerated by Paket
and no longer looks for them. paket.lock does not change.

CI already restores with the .NET 10 SDK on every leg, so only the
comments that named Paket 10 and net9.0 change.
Both are only used ad hoc; nothing in the build or CI calls them.
@nojaf
nojaf merged commit ab8f42e into ionide:main Oct 13, 2026
20 checks passed
@nojaf
nojaf deleted the update-tools branch October 13, 2026 18:20
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.

1 participant