You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an fsx file (no modules, just code), then I have a "harmless" use-binding, Fantomas 8 will be quite noisy with it:
x .\examples\evaluation.fsx could not be formatted by Fantomas:
Fantomas formatted this file and then found that its own output did not pass validation, so the output was thrown away and your file is unchanged.
This is what the parser made of that output. The lines below are the output, not your file.
warning FS0524: 'use' bindings are not permitted in modules and are treated as 'let' bindings
171 | }
172 |
173 | use model = new FuugaModel("eval-demo", modelConfig)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
174 | (model :>torch.nn.Module).eval() |> ignore
175 |
This is a bug in Fantomas, not a problem with your code. Please report it with the file via https://fsprojects.github.io/fantomas-tools/.
Activity
nojaf commentedon Sep 20, 2026
Yeah, we already ignore certain warnings. Seems reasonable to add this. I'll take a look tomorrow.
Tolerate warning 524 when validating formatted output
Bump fantomas from 8.0.0 to 8.0.1 (#86)
Bump the dotnet-sidecars group with 3 updates (#266)
Bump the packages group with 10 updates (#280)