-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Idempotency problem when adding members to a single case union without a pipe #3102
Comments
Hello, thanks for reporting this issue. I believe the problem may be around: fantomas/src/Fantomas.Core/CodePrinter.fs Line 3585 in e2aa020
Something along the lines of
probably avoid the problem. Are you interested in sending a PR for this? |
Not yet familiar with the codebase but I can try it out and let you know if I don't get make progress. |
We have some documentation about how the project is structured: https://fsprojects.github.io/fantomas/docs/contributors/Solution%20Structure.html Let me know if you have any questions. |
Nice. I checked out the project to make sure I can at least built it and get the test to success, but this test failed:
Unrelated, but nice to start with a clean slate when modifying things. Is this one expected? |
actually I missed an error above that that might be the cause
|
Ok, this is interesting. Are you on Mac? And does running If it does, you could try and ignore this integration test. It did work for me locally. Not quite sure what went wrong. |
I get the same error when running just the Fantomas.Core.Tests, so seems like something more general is wrong with my local env. |
To narrow it down a little more,
Unfortunately, the last one seems to be where a test for this type of change is meant to go. |
Please tell me again what you SDK version is? What operating system? |
I'm on arm mac with osx 14.5, dotnet version 8.0.303. I can try the devcontainer out. |
It passes when run via a container with |
I just tried running the build via |
I'm not sure what is wrong with your environment but it feels like something is overriding |
@joprice available now in https://www.nuget.org/packages/fantomas/6.3.13 |
Issue created from fantomas-online
Formatted code
Reformatted code
Problem description
Fantomas was not able to produce the same code after reformatting the result.
Extra information
The text was updated successfully, but these errors were encountered: