-
Notifications
You must be signed in to change notification settings - Fork 123
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
Formatter should handle asserts in initializer list. #522
Comments
Hi! This issue is open, but I think we addressed this. Should we close? cc @munificent |
Or, maybe not:
I'm using dartfmt 0.2.13, not sure if that's the latest? |
Ah, we at least need to do this:
in dart_formatter.dart I'm sure there's other code we'll need to write... |
Tried the branch. Looks like it works for the simple case:
Thanks! (no CLI argument required) |
I think this is done, yes? |
I just wanted to setup the formatter for the flutter/plugins repo and the formatter is failing to format the following files because of this issue:
/cc @tvolkert |
Formatting assert initilizers is blocked on dart-lang/dart_style#522
Formatting assert initilizers is blocked on dart-lang/dart_style#522
Hitting this a lot w/ https://github.com/dart-lang/pana – FYI |
@munificent any thoughts on when this could be addressed? |
I'll get on it today. |
Points for rolling this into the SDK 😁 |
Waiting until the changes from @nex3 are done first, then yes. |
When is this change supposed to be available in the Dart SDK? The latest version 1.25.0-dev.4.0 doesn't seem to include it. |
Soon. I was going to wait until those other changes are done, but that may take a while, so I'm going to go ahead and pull it in now. |
Formatting assert initilizers is blocked on dart-lang/dart_style#522
Formatting assert initilizers is blocked on dart-lang/dart_style#522
Formatting assert initilizers is blocked on dart-lang/dart_style#522
…e#109) Formatting assert initilizers is blocked on dart-lang/dart_style#522
Formatting assert initilizers is blocked on dart-lang/dart_style#522
Formatting assert initilizers is blocked on dart-lang/dart_style#522
See dart-lang/sdk#27141 and dart-lang/sdk#27142 for context.
When the analyzer supports the syntax for assert initializers, the formatter needs to handle it gracefully.
The text was updated successfully, but these errors were encountered: