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
letMethInfoIsUnseen g m ty minfo =letisUnseenByObsoleteAttrib()=match BindMethInfoAttributes m minfo
(fun ilAttribs -> Some foo)(fun fsAttribs -> Some bar)#if!NO_EXTENSIONTYPING
(fun provAttribs -> Some(CheckProvidedAttributesForUnseen provAttribs m))#else(fun _provAttribs -> None)#endifwith| Some res -> res
| None ->false()
Error
System.Exception: Fantomas is trying to format the input multiple times due to the detect ofmultipledefines.
There is a problem with merging all the code back togheter. Please raise an issue at https://github.com/fsprojects/fantomas/issues.
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1637.Invoke(String message)in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\printf.fs:line 1637
at Fantomas.String.merge(String a, String b)in C:\Users\nojaf\Projects\fantomas-tools\.deps\fantomas\src\Fantomas\Utils.fs:line 62
at Fantomas.CodeFormatterImpl.merged@418.Invoke(String a, String b)in C:\Users\nojaf\Projects\fantomas-tools\.deps\fantomas\src\Fantomas\CodeFormatterImpl.fs:line 418
at Microsoft.FSharp.Collections.ListModule.Fold[T,TState](FSharpFunc`2 folder, TState state, FSharpList`1 list)in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\list.fs:line 220
at Fantomas.CodeFormatterImpl.format@408-1.Invoke(Tuple`2[]_arg1)in C:\Users\nojaf\Projects\fantomas-tools\.deps\fantomas\src\Fantomas\CodeFormatterImpl.fs:line 418
at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, FSharpFunc`2 userCode, b result1)in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 417
at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 109
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.
Options
Fantomas Master at 7/16/2020
Name
Value
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:
nojaf
added a commit
to nojaf/fantomas
that referenced
this issue
Aug 14, 2020
Issue created from fantomas-online
Code
Error
Extra information
Options
Fantomas Master at 7/16/2020
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: