-
Notifications
You must be signed in to change notification settings - Fork 10
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 < 5.0 breaks nested lists #46
Comments
To be clear, I mean this is fixed by upstream |
I think you can upgrade Fantomas tool and the extension will pick it up. |
Hmm. I updated to 5.2.1 locally but it doesn't seem to get picked up by the VS2022 extension. :/ |
Hmm... I would check you have the latest extension version. I think it doesn't get autoupdates. |
I actually can't induce my version to fail on a blank line. It never shows an error message. I did notice that when I tried to update using Sorry, this is all pretty new stuff to me coming from Linux-land. |
Hello, There might be some confusion between the framework and SDK versions. |
Which is interesting because NET7.0 is not available as an option in the VS2022 project settings dropdown. My project does not have a |
Ok, and to be clear you've installed Fantomas in your local folder via:
? What does |
Just did those. Now shows this:
So, closing and restarting VS2022 and reformatting the code above still shows the buggy behavior. Either this is still using an old version somehow (not sure how to diagnose further), or perhaps the problem above is not actually fixed, or there is a different issue. Let me dig further. |
Ok, thanks. And to double-check, formatting the file using the command line does not give the problem right? |
Hmm, weird. Could you create a script (f.ex #r "nuget: Fantomas.Client, 0.8.0"
open System
open System.IO
open Fantomas.Client.Contracts
open Fantomas.Client.LSPFantomasService
let service : FantomasService = new LSPFantomasService()
// this path needs to be absolute and exist
let filePath = Path.Combine(__SOURCE_DIRECTORY__, "minimal.fs")
service.VersionAsync(filePath).Result
|> printfn "%A" And execute that by running |
Sure. cat .\script.fsx
#r "nuget: Fantomas.Client, 0.8.0"
open System
open System.IO
open Fantomas.Client.Contracts
open Fantomas.Client.LSPFantomasService
let service : FantomasService = new LSPFantomasService()
// this path needs to be absolute and exist
let filePath = Path.Combine(__SOURCE_DIRECTORY__, "minimal.fs")
service.VersionAsync(filePath).Result
|> printfn "%A"
|
Thank you, btw. |
Thanks, good to see that this part is working out. |
On latest
F# Formatter
extension for VS2022, formatting thisbecomes this
note the
setStatusCode ...
item and closing]
is dropped.This appears to be fixed by 5.0
The text was updated successfully, but these errors were encountered: