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
moduleS3v2openSystem.Threading.TasksopenAmazon.RuntimeletwaitAndUpcast(x:Task<'t>)=lett=
x |> Async.AwaitTask |> Async.RunSynchronously
x.Result :> AmazonWebServiceResponse
Result
moduleS3v2openSystem.Threading.TasksopenAmazon.RuntimeletwaitAndUpcast(x:Task<'t>)=lett=
x |> Async.AwaitTask |> Async.RunSynchronously
x.Result :> AmazonWebServiceResponse
Problem description
After having run the formatter on the code above, an empty line was added before the x.Result :> AmazonWebServiceResponse line.
When the output is pasted to the input field the line will be removed.
Eventually re-running fantomas with the snippet above will oscillate between two state differing only in that empty line.
I have noticed this while running fantomas 4.2.0 locally in check mode on a file with the above snippet in it.
When the upcast operation (:> AmazonWebServiceResponse) is removed the code formatting is stable.
Please describe here the Fantomas problem you encountered.
Check out our Contribution Guidelines.
Extra information
The formatted result breaks by code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
The text was updated successfully, but these errors were encountered:
kodfodrasz
changed the title
Fantomas format is "unstable" after upcast operator: adds/removes empty line
Fantomas format is "unstable/oscillates" after upcast operator: adds/removes empty line
Nov 6, 2020
nojaf
added a commit
to nojaf/fantomas
that referenced
this issue
Nov 7, 2020
Issue created from fantomas-online
Code
Result
Problem description
After having run the formatter on the code above, an empty line was added before the
x.Result :> AmazonWebServiceResponse
line.When the output is pasted to the input field the line will be removed.
Eventually re-running fantomas with the snippet above will oscillate between two state differing only in that empty line.
I have noticed this while running fantomas 4.2.0 locally in check mode on a file with the above snippet in it.
When the upcast operation (
:> AmazonWebServiceResponse
) is removed the code formatting is stable.Please describe here the Fantomas problem you encountered.
Check out our Contribution Guidelines.
Extra information
Options
Fantomas Master at 11/02/2020 11:33:23 - f7b8f3a
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: