Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Issue 2769663002: Run dartfmt on generated file. (Closed)

Created:
3 years, 9 months ago by ahe
Modified:
3 years, 5 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M pkg/front_end/tool/_fasta/generate_messages.dart View 2 chunks +6 lines, -1 line 2 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 9 (3 generated)
ahe
3 years, 9 months ago (2017-03-22 12:58:35 UTC) #2
karlklose
LGTM
3 years, 9 months ago (2017-03-22 13:04:18 UTC) #3
ahe
Committed patchset #1 (id:1) manually as 9d439605a8bd32aa58efba6b765166c6cbee6fed (presubmit successful).
3 years, 9 months ago (2017-03-23 12:09:24 UTC) #5
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2769663002/diff/1/pkg/front_end/tool/_fasta/generate_messages.dart File pkg/front_end/tool/_fasta/generate_messages.dart (right): https://codereview.chromium.org/2769663002/diff/1/pkg/front_end/tool/_fasta/generate_messages.dart#newcode13 pkg/front_end/tool/_fasta/generate_messages.dart:13: import 'package:dart_style/dart_style.dart' show DartFormatter; note: this introduced a circular ...
3 years, 5 months ago (2017-07-12 20:06:51 UTC) #7
ahe
https://codereview.chromium.org/2769663002/diff/1/pkg/front_end/tool/_fasta/generate_messages.dart File pkg/front_end/tool/_fasta/generate_messages.dart (right): https://codereview.chromium.org/2769663002/diff/1/pkg/front_end/tool/_fasta/generate_messages.dart#newcode13 pkg/front_end/tool/_fasta/generate_messages.dart:13: import 'package:dart_style/dart_style.dart' show DartFormatter; On 2017/07/12 20:06:51, Siggi Cherem ...
3 years, 5 months ago (2017-07-13 00:26:54 UTC) #8
Siggi Cherem (dart-lang)
3 years, 5 months ago (2017-07-13 19:16:51 UTC) #9
Message was sent while issue was closed.
On 2017/07/13 00:26:54, ahe wrote:
>
https://codereview.chromium.org/2769663002/diff/1/pkg/front_end/tool/_fasta/g...
> File pkg/front_end/tool/_fasta/generate_messages.dart (right):
> 
>
https://codereview.chromium.org/2769663002/diff/1/pkg/front_end/tool/_fasta/g...
> pkg/front_end/tool/_fasta/generate_messages.dart:13: import
> 'package:dart_style/dart_style.dart' show DartFormatter;
> On 2017/07/12 20:06:51, Siggi Cherem (dart-lang) wrote:
> > note: this introduced a circular dependency on fasta_codes_generated.dart
> > (package:dart_style imports  package:analyzer which in turn imports
> > package:front_end including the generated file.)
> > 
> > As a result, if the file is missing or broken this script fails to run. I
run
> > into this because of a merge conflict and wanted to regenerate the file
> without
> > bothering to revert it to a valid Dart file.
> > 
> > I suggest we run the formatter as a separate process instead.
> 
> We could do that, but then we have to use the slightly outdated version that's
> stored somewhere in tools/. That's also a source of confusion.

True, note however that the PRESUBMIT script we use for all CLs also uses the
one under `tools/sdks/linux/dart-sdk/bin/dartfmt`. So using this outdated
version would make things more consistent overall.

> 
> What I've been doing is this:
> 
> git checkout current_branch_name --
> pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
> 
> Is that an acceptable workaround for you?

That's OK for me, but might come at a surprise if someone outside the team is
editing messages and runs into this.

Powered by Google App Engine
This is Rietveld 408576698