-
Notifications
You must be signed in to change notification settings - Fork 125
Dart format --fix requires two runs to reach fixpoint. #971
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
Comments
I tried to repro but, I'm getting:
Would you mind just attaching the unformatted dart_services.pb.dart file and I'll go from that? |
Hey Bob, Have a look at Steps 2 and 3 are the |
This only happens with I feel like this may have come up in the past and is a known issue that |
This right here is the known issue. :) So, yes, it's known but undesirable. The architecture of how |
So I should replace If you are going to drop, please add a warning now pushing people to |
Those two commands currently do different things. The former can do a few entirely syntactic fix-ups. The latter is built on top of analyzer and can to more complex changes. I have a vague long-term goal to remove |
Thanks for the clarification @munificent |
I should say that in general |
Closing this since we're removing |
Hey Dart Style team,
On the dart-services project we generate code from protobuf definitions, then we need to run
dartfmt --fix -w
twice to get code stability. This changed between Dart 2.10.2 and 2.10.3. This behaviour also reproduces in Dart 2.11.0-213.4.beta and 2.12.0-0.0.dev.To reproduce you need to install a couple of tools
gh
tool:brew install gh
brew install protobuf
Reproduction steps:
The text was updated successfully, but these errors were encountered: