-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Wrong formatting applied to fragment of code with #if clause #2361
Labels
Comments
Expected result (I guess):
|
Same problem as #2360 |
knocte
added a commit
to knocte/DotNetLightning
that referenced
this issue
Jul 12, 2022
In recent commit to adjust formatting [1], an #if clause was removed, resulting in applying the [<Struct>] attrib always. This is a fantomas bug reported which I just reported here [2], but if we reduce circular type dependencies here, we can just workaround it for now. [1] joemphilips@c0747c9 [2] fsprojects/fantomas#2361
knocte
added a commit
to knocte/DotNetLightning
that referenced
this issue
Jul 12, 2022
In recent commit to adjust formatting [1], an #if clause was removed, resulting in applying the [<Struct>] attrib always. This is a fantomas bug which I just reported here [2], but if we reduce circular type dependencies here, we can just workaround it for now. [1] joemphilips@c0747c9 [2] fsprojects/fantomas#2361
knocte
added a commit
to knocte/DotNetLightning
that referenced
this issue
Jul 14, 2022
In recent commit to adjust formatting [1], an #if clause was removed, resulting in applying the [<Struct>] attrib always. This is a fantomas bug which I just reported here [2], but if we reduce circular type dependencies here, we can just workaround it for now. [1] joemphilips@c0747c9 [2] fsprojects/fantomas#2361
aarani
pushed a commit
to aarani/DotNetLightning.Kiss
that referenced
this issue
Jul 14, 2022
In recent commit to adjust formatting [1], an #if clause was removed, resulting in applying the [<Struct>] attrib always. This is a fantomas bug which I just reported here [2], but if we reduce circular type dependencies here, we can just workaround it for now. [1] joemphilips@c0747c9 [2] fsprojects/fantomas#2361
knocte
added a commit
to joemphilips/DotNetLightning
that referenced
this issue
Jul 15, 2022
…214) In recent commit to adjust formatting [1], an #if clause was removed, resulting in applying the [<Struct>] attrib always. This is a fantomas bug which I just reported here [2], but if we reduce circular type dependencies here, we can just workaround it for now. [1] c0747c9 [2] fsprojects/fantomas#2361
This was referenced Dec 26, 2022
Fix available in v5.2.0-beta-001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue created from fantomas-online
Code
Result
Problem description
If you compile the result with NoDUsAsStructs defined, it works; but otherwise it doesn't because this code doesn't compile:
Extra information
Options
Fantomas master branch at 2022-07-11T16:44:40Z - 98a7449
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: