-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Experience report upgrading to v4.6.0-alpha-006 #1961
Comments
Hello Paul,
I'm afraid you are preaching to the choir here. As mentioned in your last experience report Fantomas follows the MS style guide. All stylistic changes were introduced here because of prior changes in the guide. The change about lambdas was discussed in dotnet/docs#25207 and I'm well aware this will have caused a large diff because of this. It was not treaded lightly, though it is unlikely that this will not happen again in future versions.
We don't have the bandwidth to support every stylistic preference of each end-user. I have to deal with these conversations on a weekly basis and that is why we settled on two style guides. (//cc @dsyme).
4.6 is indeed the first version that will decouple Fantomas from Ionide as proposed in #1844. Thanks for understanding, Florian |
Completely understood, just wanted to provide the feedback. Looks like there's nothing actionable here so will close. |
Thanks Paul |
Thanks for the feedback Paul |
Hey, this is an experience report of upgrading to Fantomas v4.6.0-alpha-006+c90333468261671f2f0e8e065009160b74a41662 from version 4.5.4.
Changes I didn't like :)
Brace on new line
I think this changed for CEs, but it's not consistent with what happens for records. Wasn't a huge fan, but could go either way.
Lambdas kept on same line
It seems lambda arguments are changed such that:
I think I kinda like this, unsure. It gets back two columns in the body, which is nice for sure.
However, in pipelines the body is now indented from the start of the
|>
:I find it harder to read the pipelines now. Also, it is inconsistent, as it's indented differently in the pipeline vs no pipeline:
No settings for new changes
The new changes led to quite a big diff. It would be better if I could disable the changes using settings: this would allow me have a small diff that I could manually verify (this is important as I'm still of the impression that fantomas can lose code/comments sometimes).
How to use
The reason I tried v4.6 was that I wanted to decouple ionide from fantomas so I could control the version of fantomas used for all my project's users. However, I could figure out how to use it in ionide 5.8.1. I don't remember where I got the impression that that's how this works (some issue somewhere I think) - apologies if this was an error in my understanding.
The text was updated successfully, but these errors were encountered: