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
/// Destructure and apply a tuple to an arbitrary value./// E.g. `myFn $ (arg1, arg2)` in JS becomes `myFn(arg1, arg2)`let($)(callee:obj)(args:obj):'a = jsNative
Error
System.Exception: was not expecting token DOLLAR
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1433.Invoke(String message)in D:\workspace\_work\1\s\src\fsharp\FSharp.Core\printf.fs:line 1433
at Fantomas.TokenParser.getTriviaNodesFromTokens@1088.Invoke(Token t)in/home/runner/work/fantomas-tools/fantomas-tools/.deps/fantomas/src/Fantomas/TokenParser.fs:line 1090
at Microsoft.FSharp.Primitives.Basics.List.mapToFreshConsTail[a,b](FSharpList`1 cons, FSharpFunc`2 f, FSharpList`1 x)in D:\workspace\_work\1\s\src\fsharp\FSharp.Core\local.fs:line 241
at Microsoft.FSharp.Primitives.Basics.List.map[T,TResult](FSharpFunc`2 mapping, FSharpList`1 x)in D:\workspace\_work\1\s\src\fsharp\FSharp.Core\local.fs:line 251
at Microsoft.FSharp.Collections.ListModule.Map[T,TResult](FSharpFunc`2 mapping, FSharpList`1 list)in D:\workspace\_work\1\s\src\fsharp\FSharp.Core\list.fs:line 75
at Fantomas.Trivia.collectTrivia(FSharpFunc`2 mkRange, FSharpList`1 tokens, ParsedInput ast)in/home/runner/work/fantomas-tools/fantomas-tools/.deps/fantomas/src/Fantomas/Trivia.fs:line 525
at Fantomas.Context.Context.Create(FormatConfig config, FSharpList`1 defines, String fileName, FSharpList`1 hashTokens, String content, FSharpOption`1 maybeAst)in/home/runner/work/fantomas-tools/fantomas-tools/.deps/fantomas/src/Fantomas/Context.fs:line 200
at Fantomas.CodeFormatterImpl.formatWith(ParsedInput ast, FSharpList`1 defines, FSharpList`1 hashTokens, FormatContext formatContext, FormatConfig config)in/home/runner/work/fantomas-tools/fantomas-tools/.deps/fantomas/src/Fantomas/CodeFormatterImpl.fs:line 387
at Fantomas.CodeFormatterImpl.format@401-1.Invoke(Tuple`3[]_arg1)in/home/runner/work/fantomas-tools/fantomas-tools/.deps/fantomas/src/Fantomas/CodeFormatterImpl.fs:line 403
at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, FSharpFunc`2 userCode, b result1)in D:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 404
at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)in D:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 104
Problem description
($) is not supported.
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.
Issue created from fantomas-online
Code
Error
Problem description
($)
is not supported.Extra information
Options
Fantomas Master at 04/04/2021 13:15:53 - c044cdf
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: