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
Removing comments is pretty bad because there's no way to detect this bug (it's failing silently), so using fantomas makes you lose important information. I'd mark this as high priority if you ask me.
The missing comment is now assigned to SynExpr.CompExpr.
Trivia for that node is most likely not being printed somewhere in CodePrinter, so a fix done there.
Alternatively, you could try and assign the comment to SynExpr.Const as that is being printed as you can see for the other comment.
See video to have a better understanding about what I'm talking about.
nojaf
added a commit
to nojaf/fantomas
that referenced
this issue
Aug 14, 2020
Issue created from fantomas-online
Code
Result
Problem description
Fantomas removes the first comment.
Extra information
Options
Fantomas Master at 07/20/2020 08:56:02 - d42a156
IndentSize
4
MaxLineLength
120
SemicolonAtEndOfLine
false
SpaceBeforeParameter
true
SpaceBeforeLowercaseInvocation
true
SpaceBeforeUppercaseInvocation
false
SpaceBeforeClassConstructor
false
SpaceBeforeMember
false
SpaceBeforeColon
false
SpaceAfterComma
true
SpaceBeforeSemicolon
false
SpaceAfterSemicolon
true
IndentOnTryWith
false
SpaceAroundDelimiter
true
MaxIfThenElseShortWidth
40
MaxInfixOperatorExpression
50
MaxRecordWidth
40
MaxArrayOrListWidth
40
MaxValueBindingWidth
40
MaxFunctionBindingWidth
40
MultilineBlockBracketsOnSameColumn
false
NewlineBetweenTypeDefinitionAndMembers
false
KeepIfThenInSameLine
false
MaxElmishWidth
40
SingleArgumentWebMode
false
AlignFunctionSignatureToIndentation
false
AlternativeLongMemberDefinitions
false
StrictMode
false
The text was updated successfully, but these errors were encountered: