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

Issue 8949055: Issue 250: Allow for GNU formatted errors (Closed)

Created:
9 years ago by codefu
Modified:
8 years, 12 months ago
Reviewers:
ahe, zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Issue 250: Allow for GNU formatted errors Removes --machine-problems option and added --error_format [normal|machine|gnu] R=zundel@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=2763

Patch Set 1 #

Total comments: 1

Patch Set 2 : Missing cases #

Patch Set 3 : Tweaks to drop 'gnu' and stuff library in message format #

Total comments: 5

Patch Set 4 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -52 lines) Patch
M compiler/java/com/google/dart/compiler/CommandLineOptions.java View 1 2 3 4 chunks +15 lines, -11 lines 0 comments Download
M compiler/java/com/google/dart/compiler/CompilerConfiguration.java View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DartCompiler.java View 1 1 chunk +2 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java View 2 chunks +5 lines, -5 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DefaultDartCompilerListener.java View 2 chunks +5 lines, -4 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DefaultErrorFormatter.java View 1 2 3 2 chunks +27 lines, -5 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DelegatingCompilerConfiguration.java View 2 chunks +5 lines, -5 lines 0 comments Download
M compiler/java/com/google/dart/compiler/PrettyErrorFormatter.java View 1 2 4 chunks +10 lines, -8 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/testing/TestCompilerConfiguration.java View 2 chunks +5 lines, -5 lines 0 comments Download
M compiler/java/com/google/dart/runner/DartRunner.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/PrettyErrorFormatterTest.java View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
codefu
9 years ago (2011-12-21 22:38:48 UTC) #1
ahe
-zundle +zundel
9 years ago (2011-12-21 22:39:46 UTC) #2
ahe
I don't understand why you keep the format foo.dart/bar.dart. As far as I can tell ...
9 years ago (2011-12-21 23:11:13 UTC) #3
codefu
Use "--error_format gnu". The other error formats are in use by other programmers for debugging, ...
9 years ago (2011-12-21 23:22:23 UTC) #4
ahe
On 2011/12/21 23:22:23, codefu wrote: > c.dart/foo.dart:4: cannot resolve GLOBAL_IN_A > 3: static foofunc() { ...
9 years ago (2011-12-21 23:26:20 UTC) #5
Brian Wilkerson
In one of the issues I have requested an API that would get the "unmunged" ...
9 years ago (2011-12-22 00:17:24 UTC) #6
codefu
On 2011/12/21 23:26:20, ahe wrote: > On 2011/12/21 23:22:23, codefu wrote: > > c.dart/foo.dart:4: cannot ...
9 years ago (2011-12-22 00:40:25 UTC) #7
ahe
On 2011/12/22 00:40:25, codefu wrote: > On 2011/12/21 23:26:20, ahe wrote: > > On 2011/12/21 ...
9 years ago (2011-12-22 00:52:09 UTC) #8
codefu
On 2011/12/22 00:52:09, ahe wrote: > On 2011/12/22 00:40:25, codefu wrote: > > Changing the ...
9 years ago (2011-12-22 00:58:52 UTC) #9
ahe
On 2011/12/22 00:58:52, codefu wrote: > On 2011/12/22 00:52:09, ahe wrote: > > On 2011/12/22 ...
9 years ago (2011-12-22 01:01:54 UTC) #10
zundel
On 2011/12/22 01:01:54, ahe wrote: > On 2011/12/22 00:58:52, codefu wrote: > > On 2011/12/22 ...
9 years ago (2011-12-22 13:32:42 UTC) #11
codefu
After talking to Eric, the previous example I listed was a copy/paste error. Here's the ...
8 years, 12 months ago (2011-12-22 15:25:09 UTC) #12
zundel
lgtm http://codereview.chromium.org/8949055/diff/9001/compiler/java/com/google/dart/compiler/CommandLineOptions.java File compiler/java/com/google/dart/compiler/CommandLineOptions.java (right): http://codereview.chromium.org/8949055/diff/9001/compiler/java/com/google/dart/compiler/CommandLineOptions.java#newcode46 compiler/java/com/google/dart/compiler/CommandLineOptions.java:46: usage = "Format errors as normal, machine, or ...
8 years, 12 months ago (2011-12-22 15:32:31 UTC) #13
codefu
http://codereview.chromium.org/8949055/diff/1/compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java File compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java (right): http://codereview.chromium.org/8949055/diff/1/compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java#newcode537 compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java:537: write("DartSyntheticErrorExpression(", node, node.getTokenString() + ")"); This slipped in by ...
8 years, 12 months ago (2011-12-22 15:38:20 UTC) #14
ahe
8 years, 12 months ago (2011-12-22 15:38:33 UTC) #15
http://codereview.chromium.org/8949055/diff/9001/compiler/java/com/google/dar...
File compiler/java/com/google/dart/compiler/DefaultErrorFormatter.java (right):

http://codereview.chromium.org/8949055/diff/9001/compiler/java/com/google/dar...
compiler/java/com/google/dart/compiler/DefaultErrorFormatter.java:46:
includeFrom = " (sourced from library " + lib.getUri() + ")";
On 2011/12/22 15:32:31, zundel wrote:
> for the sake of brevity, could we drop the word 'library' and shorten to
> 'sourced from'?  I doubt most users think of their top level .dart file as a
> library, even though that's technically true. 

FWIW, I agree.

Powered by Google App Engine
This is Rietveld 408576698