-
-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fantomas fails in Fake script #439
Comments
Hey Tim, what info do you have about |
Hey Florian, this is a extract out of my paket lock file:
|
@tforkmann Different FSharp.Compiler.Service version than the one Fantomas is using can cause problems. See #315 (comment) for older case. You can try workarounds mentioned there for version 25.0.1, or you can try early build of Fantomas that should use version 28.0 |
The latest beta now uses the FCS 30, which is the latest at the time of writing. |
Description
I tried to add Fantomas to my FakeScript but I'm getting the following error message.
What Am I doing wrong?
Repro code
// --------------------------------------------------------------------------------------
// CheckCodeFormat and then Format with Fantomas
// --------------------------------------------------------------------------------------
let fantomasConfig =
{ FormatConfig.Default with
ReorderOpenDeclaration = true }
Target.create "CheckCodeFormat" (fun _ ->
!! "src/**/*.fs"
|> checkCode fantomasConfig
)
Target.create "Format" (fun _ ->
!! "src/**/*.fs"
|> formatCode fantomasConfig
|> printfn "Formatted files: %A"
)
It seems like FSharp.Compiler.Tools is missing. Should I manually add it?
The text was updated successfully, but these errors were encountered: