Skip to content

Format command fails for flutter/microbench #2778

@denrase

Description

@denrase

Description

@vaind The format command is failing in various other PRs when ran in the flutter/microbench folder. Do you have an idea how to best resolve this?

Relates to #2742
Relates to #2565

denis@MacBook-Pro microbenchmarks % dart format .            
Could not format because the source could not be parsed:

line 5, column 24 of lib/main.dart: This requires the 'records' language feature to be enabled.
  ╷
5 │ typedef BenchmarkSet = (String name, Future<void> Function() callback);
  │                        ^
  ╵
line 9, column 5 of lib/main.dart: This requires the 'records' language feature to be enabled.
  ╷
9 │     ('Image', image_bench.execute),
  │     ^
  ╵
line 10, column 5 of lib/main.dart: This requires the 'records' language feature to be enabled.
   ╷
10 │     ('Memory', memory_bench.execute),
   │     ^
   ╵
Formatted 2 files (0 changed) in 0.22 seconds.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions