-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Line of code including a backward composition operator causes error #1998
Comments
Hello, thank you for reporting this issue. I believe the problem is occurring around: fantomas/src/Fantomas/CodePrinter.fs Lines 2031 to 2039 in 2c6c967
We try to see if the A potential fix might be something like: let sepSpaceAfterFunctionName ctx =
match e with
| Paren _ -> sepSpace ctx
| _ ->
match List.tryHead es with
| Some (SimpleExpr _) -> sepSpace ctx
| _ ->
match e with
| UppercaseSynExpr -> onlyIf ctx.Config.SpaceBeforeUppercaseInvocation sepSpace ctx
| LowercaseSynExpr -> onlyIf ctx.Config.SpaceBeforeLowercaseInvocation sepSpace ctx Are you interested in submitting a PR for this? |
Hello, No problem. I would be happy to submit a PR, I'm just a bit busy at the moment. I will try to submit one tomorrow if that is OK. |
Sure thing, take your time. Thanks! |
I believe this issue was resolved by #2036. |
This can be closed now after the merge of #2060 FYI |
The following line within a block of code causes Fantomas to throw an error:
(SomeModule.doSomething << SomeModule.doSomethingElse) (fun x -> x)
The error starts with "System.Exception: cannot determine if synExpr Paren". I have reproduced it in the in the Fantomas online tool.
(I tried to use the "Create an issue" button but I got a GitHub "Your request URL is too long. " error.)
The text was updated successfully, but these errors were encountered: