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

Issue 184113007: Support JSON output for pub build. (Closed)

Created:
6 years, 9 months ago by Bob Nystrom
Modified:
6 years, 9 months ago
Reviewers:
nweiz, keertip
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support JSON output for pub build. BUG=https://code.google.com/p/dart/issues/detail?id=15018 R=nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=33450

Patch Set 1 #

Patch Set 2 : Re-upload #

Patch Set 3 : #

Patch Set 4 : Re-upload. #

Total comments: 29

Patch Set 5 : Revise. #

Patch Set 6 : Extend timeout. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -89 lines) Patch
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/ast/AstComparator.java View 1 2 3 4 6 chunks +8 lines, -8 lines 0 comments Download
M sdk/lib/_internal/pub/bin/pub.dart View 2 chunks +12 lines, -4 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command.dart View 1 2 3 4 5 chunks +14 lines, -6 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/build.dart View 1 2 3 4 5 11 chunks +89 lines, -25 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/list_package_dirs.dart View 3 chunks +4 lines, -5 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/log.dart View 1 2 3 4 5 chunks +50 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/utils.dart View 1 2 3 4 1 chunk +14 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/all_includes_all_buildable_directories_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/all_with_no_buildable_directories_test.dart View 1 chunk +12 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/build/allows_multiple_dir_name_args_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/cleans_entire_build_directory_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/build/compiles_entrypoints_in_benchmark_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/compiles_entrypoints_in_example_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/compiles_entrypoints_in_test_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/compiles_entrypoints_in_web_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/copies_browser_js_next_to_entrypoints_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/copies_browser_js_with_dependency_override_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/copies_browser_js_with_dev_dependency_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/copies_non_dart_files_to_build_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/dart2js_finds_imports_across_packages_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/does_not_allow_args_with_all_test.dart View 1 chunk +25 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/handles_long_paths_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/ignores_entrypoints_in_asset_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/ignores_entrypoints_in_bin_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/ignores_entrypoints_in_lib_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/ignores_existing_compiled_js_files_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/ignores_non_entrypoint_dart_files_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/includes_assets_from_dependencies_in_lib_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/includes_assets_from_dependencies_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/includes_dart_files_from_dependencies_in_debug_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/includes_dart_files_in_debug_mode_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/build/missing_build_directories_test.dart View 1 chunk +21 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/build/missing_web_directory_test.dart View 1 chunk +11 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/build/name_arg_builds_only_that_directory_test.dart View 1 chunk +1 line, -1 line 0 comments Download
A sdk/lib/_internal/pub/test/build/outputs_error_to_json_test.dart View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/build/outputs_results_to_json_test.dart View 1 chunk +52 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/build/unsupported_build_directories_test.dart View 1 chunk +27 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/test/list_package_dirs/no_lockfile_test.dart View 1 chunk +5 lines, -4 lines 0 comments Download
M sdk/lib/_internal/pub/test/package_files_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/test_pub.dart View 1 2 3 3 chunks +9 lines, -4 lines 0 comments Download
M sdk/lib/_internal/pub/test/transformer/dart2js/supports_configuration_with_build_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/transformer/mode_defaults_to_release_in_build_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Bob Nystrom
https://codereview.chromium.org/184113007/diff/60001/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/ast/AstComparator.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/ast/AstComparator.java (right): https://codereview.chromium.org/184113007/diff/60001/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/ast/AstComparator.java#newcode1 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/ast/AstComparator.java:1: /* This is the result of a dumb merge ...
6 years, 9 months ago (2014-03-05 00:55:36 UTC) #1
nweiz
https://codereview.chromium.org/184113007/diff/60001/sdk/lib/_internal/pub/lib/src/command.dart File sdk/lib/_internal/pub/lib/src/command.dart (right): https://codereview.chromium.org/184113007/diff/60001/sdk/lib/_internal/pub/lib/src/command.dart#newcode199 sdk/lib/_internal/pub/lib/src/command.dart:199: /// Throw an [ApplicationException] for a data error of ...
6 years, 9 months ago (2014-03-05 02:36:51 UTC) #2
Bob Nystrom
Thanks! https://codereview.chromium.org/184113007/diff/60001/sdk/lib/_internal/pub/lib/src/command.dart File sdk/lib/_internal/pub/lib/src/command.dart (right): https://codereview.chromium.org/184113007/diff/60001/sdk/lib/_internal/pub/lib/src/command.dart#newcode199 sdk/lib/_internal/pub/lib/src/command.dart:199: /// Throw an [ApplicationException] for a data error ...
6 years, 9 months ago (2014-03-07 00:42:17 UTC) #3
nweiz
lgtm https://codereview.chromium.org/184113007/diff/60001/sdk/lib/_internal/pub/lib/src/utils.dart File sdk/lib/_internal/pub/lib/src/utils.dart (right): https://codereview.chromium.org/184113007/diff/60001/sdk/lib/_internal/pub/lib/src/utils.dart#newcode867 sdk/lib/_internal/pub/lib/src/utils.dart:867: /// A class for command input data exceptions. ...
6 years, 9 months ago (2014-03-07 00:57:13 UTC) #4
Bob Nystrom
Committed patchset #6 manually as r33450 (presubmit successful).
6 years, 9 months ago (2014-03-07 20:36:25 UTC) #5
Bob Nystrom
6 years, 9 months ago (2014-03-07 20:38:42 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/184113007/diff/60001/sdk/lib/_internal/pub/li...
File sdk/lib/_internal/pub/lib/src/utils.dart (right):

https://codereview.chromium.org/184113007/diff/60001/sdk/lib/_internal/pub/li...
sdk/lib/_internal/pub/lib/src/utils.dart:867: /// A class for command input data
exceptions.
On 2014/03/07 00:57:13, nweiz wrote:
> On 2014/03/07 00:42:18, Bob Nystrom wrote:
> > On 2014/03/05 02:36:52, nweiz wrote:
> > > This description is pretty terse. I assume it refers to things like
invalid
> > > command-line arguments, but it would be nice to have some more description
> > here.
> > 
> > Reword a bit. It's basically an exception form of exit_codes.DATA.
> 
> I still don't really understand how this should be used differently than
> FormatError.

I look at FormatException as "there's something wrong with the data you gave me,
so I'm bailing". dataError() means "I want pub to exit with exit_code.DATA now."

The fact that it throws an exception is an implementation detail. (And, in fact,
if we didn't have that annoying flush-before-exit stuff, it would just call
exit() and not throw anything.)

Powered by Google App Engine
This is Rietveld 408576698