Skip to content
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 gets confused line-wrapping nested lambdas #16378

Closed
munificent opened this issue Jan 28, 2014 · 10 comments
Closed

Formatter gets confused line-wrapping nested lambdas #16378

munificent opened this issue Jan 28, 2014 · 10 comments
Assignees
Labels
closed-obsolete Closed as the reported issue is no longer relevant type-enhancement A request for a change that isn't a bug

Comments

@munificent
Copy link
Member

Source:

main() {
  barback.getAssetById(transformerAsset)
    .then((_) => transformerAsset)
    .catchError((e) => new AssetId(package, 'lib/$package.dart'),
          test: (e) => e is AssetNotFoundException);
}

Output:

main() {
  barback.getAssetById(transformerAsset).then((_) =>
      transformerAsset).catchError((e) => new AssetId(package, 'lib/$package.dart'),
      test: (e) => e is AssetNotFoundException);
}

I don't expect it to do as good a job line wrapping as I do, but at the very least it should stay within 80 columns.

@pq
Copy link
Member

pq commented Jan 28, 2014

Added this to the 1.2 milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@clayberg
Copy link

Removed this from the 1.2 milestone.
Added this to the 1.3 milestone.
Removed Type-Defect label.
Added Type-Enhancement label.

@pq
Copy link
Member

pq commented Apr 9, 2014

Removed this from the 1.3 milestone.
Added this to the 1.4 milestone.

@kevmoo
Copy link
Member

kevmoo commented Apr 27, 2014

Marked this as blocking #16327.

@kasperl
Copy link

kasperl commented May 8, 2014

Removed this from the 1.4 milestone.
Added this to the 1.5 milestone.

@kasperl
Copy link

kasperl commented Jun 4, 2014

Removed this from the 1.5 milestone.
Added this to the 1.6 milestone.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the 1.6 milestone.
Added Oldschool-Milestone-1.6 label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-1.6 label.

@munificent
Copy link
Member Author

This was an issue with the old formatter but not the new one.


Added AssumedStale label.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/dart_style#304.

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants