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

Issue 351703004: Improve pub's pubspec error messages. (Closed)

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

Description

Improve pub's pubspec error messages. This uses the source spans exposed by the yaml package to associate pubspec errors visually with the section of the pubspec that caused them. R=rnystrom@google.com BUG=14999 Committed: https://code.google.com/p/dart/source/detail?r=37675

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix tests #

Total comments: 2

Patch Set 3 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -254 lines) Patch
M sdk/lib/_internal/pub/bin/pub.dart View 2 chunks +6 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart View 1 3 chunks +39 lines, -31 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/transformer_id.dart View 3 chunks +10 lines, -5 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/pubspec.dart View 1 16 chunks +128 lines, -162 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/utils.dart View 3 chunks +14 lines, -10 lines 0 comments Download
M sdk/lib/_internal/pub/test/get/git/dependency_name_match_pubspec_test.dart View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/get/git/require_pubspec_name_test.dart View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/pub_get_and_upgrade_test.dart View 1 2 4 chunks +10 lines, -6 lines 0 comments Download
M sdk/lib/_internal/pub/test/pubspec_test.dart View 1 7 chunks +12 lines, -15 lines 0 comments Download
M sdk/lib/_internal/pub/test/test_pub.dart View 1 3 chunks +8 lines, -7 lines 0 comments Download
M sdk/lib/_internal/pub/test/transformer/fails_to_load_a_pubspec_with_reserved_transformer_test.dart View 1 2 chunks +6 lines, -5 lines 0 comments Download
M sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_from_a_non_dependency_test.dart View 1 2 chunks +3 lines, -5 lines 0 comments Download
M sdk/lib/_internal/pub/test/upgrade/git/upgrade_to_incompatible_pubspec_test.dart View 1 2 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
nweiz
6 years, 6 months ago (2014-06-24 20:10:41 UTC) #1
Bob Nystrom
LGTM! https://codereview.chromium.org/351703004/diff/1/sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart File sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart (right): https://codereview.chromium.org/351703004/diff/1/sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart#newcode77 sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart:77: } I don't think I realized we don't ...
6 years, 6 months ago (2014-06-24 20:49:07 UTC) #2
nweiz
https://codereview.chromium.org/351703004/diff/1/sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart File sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart (right): https://codereview.chromium.org/351703004/diff/1/sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart#newcode77 sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart:77: } On 2014/06/24 20:49:07, Bob Nystrom wrote: > I ...
6 years, 6 months ago (2014-06-24 20:50:40 UTC) #3
nweiz
I realized I forgot to fix up the tests when I sent this out. PTAL ...
6 years, 6 months ago (2014-06-24 21:43:42 UTC) #4
Bob Nystrom
One request but still LGTM! https://codereview.chromium.org/351703004/diff/20001/sdk/lib/_internal/pub/test/get/git/dependency_name_match_pubspec_test.dart File sdk/lib/_internal/pub/test/get/git/dependency_name_match_pubspec_test.dart (right): https://codereview.chromium.org/351703004/diff/20001/sdk/lib/_internal/pub/test/get/git/dependency_name_match_pubspec_test.dart#newcode31 sdk/lib/_internal/pub/test/get/git/dependency_name_match_pubspec_test.dart:31: 'doesn\'t match expected name ...
6 years, 6 months ago (2014-06-24 21:48:23 UTC) #5
nweiz
https://codereview.chromium.org/351703004/diff/20001/sdk/lib/_internal/pub/test/get/git/dependency_name_match_pubspec_test.dart File sdk/lib/_internal/pub/test/get/git/dependency_name_match_pubspec_test.dart (right): https://codereview.chromium.org/351703004/diff/20001/sdk/lib/_internal/pub/test/get/git/dependency_name_match_pubspec_test.dart#newcode31 sdk/lib/_internal/pub/test/get/git/dependency_name_match_pubspec_test.dart:31: 'doesn\'t match expected name "weirdname".')); On 2014/06/24 21:48:23, Bob ...
6 years, 6 months ago (2014-06-24 23:52:19 UTC) #6
nweiz
6 years, 6 months ago (2014-06-24 23:54:09 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r37675 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698