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

Issue 428303004: Breaking changes in 'analyzer' package. (Closed)

Created:
6 years, 4 months ago by scheglov
Modified:
6 years, 4 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Breaking changes in 'analyzer' package. 1. Source.uri added. 2. DartSdk.fromEncoding() replaced with fromFileUri(). This CL cannot be committed as is until pkg/code_transformers is fixed. R=brianwilkerson@google.com, sigmund@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=38949

Patch Set 1 #

Total comments: 5

Patch Set 2 : Merge code_transformers CL #

Total comments: 10

Patch Set 3 : Merge https://codereview.chromium.org/444843003/ into this CL #

Patch Set 4 : Rename Source.resolveRelative to resolveRelativeUri, soften version constraints #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -385 lines) Patch
M editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart View 1 chunk +4 lines, -1 line 0 comments Download
M editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java View 4 chunks +10 lines, -9 lines 0 comments Download
M editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/IOSemanticProcessor.java View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/analysis_server/lib/src/analysis_server.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/lib/src/context_directory_manager.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/analysis_abstract.dart View 2 chunks +1 line, -2 lines 0 comments Download
M pkg/analysis_services/lib/src/index/store/codec.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/analysis_services/test/index/store/codec_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/analysis_testing/lib/abstract_context.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/analysis_testing/lib/mock_sdk.dart View 1 5 chunks +7 lines, -10 lines 0 comments Download
A pkg/analyzer/CHANGELOG.md View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/file_system/file_system.dart View 2 chunks +2 lines, -13 lines 0 comments Download
M pkg/analyzer/lib/file_system/memory_file_system.dart View 1 2 3 6 chunks +24 lines, -13 lines 0 comments Download
M pkg/analyzer/lib/file_system/physical_file_system.dart View 1 chunk +5 lines, -2 lines 0 comments Download
M pkg/analyzer/lib/source/package_map_resolver.dart View 2 chunks +1 line, -12 lines 0 comments Download
M pkg/analyzer/lib/src/analyzer_impl.dart View 3 chunks +12 lines, -19 lines 0 comments Download
M pkg/analyzer/lib/src/generated/element.dart View 4 chunks +2 lines, -58 lines 0 comments Download
M pkg/analyzer/lib/src/generated/engine.dart View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 2 chunks +13 lines, -1 line 0 comments Download
M pkg/analyzer/lib/src/generated/sdk.dart View 1 chunk +6 lines, -6 lines 0 comments Download
M pkg/analyzer/lib/src/generated/sdk_io.dart View 3 chunks +54 lines, -4 lines 0 comments Download
M pkg/analyzer/lib/src/generated/source.dart View 1 2 3 13 chunks +60 lines, -63 lines 0 comments Download
M pkg/analyzer/lib/src/generated/source_io.dart View 1 2 3 10 chunks +50 lines, -46 lines 0 comments Download
M pkg/analyzer/lib/src/string_source.dart View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M pkg/analyzer/pubspec.yaml View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/file_system/memory_file_system_test.dart View 1 2 3 7 chunks +15 lines, -15 lines 0 comments Download
M pkg/analyzer/test/file_system/physical_resource_provider_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/file_system/resource_uri_resolver_test.dart View 1 chunk +0 lines, -16 lines 0 comments Download
M pkg/analyzer/test/generated/element_test.dart View 6 chunks +0 lines, -31 lines 0 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 4 chunks +114 lines, -13 lines 0 comments Download
M pkg/analyzer/test/generated/test_support.dart View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M pkg/analyzer/test/services/test_utils.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M pkg/analyzer/test/source/package_map_resolver_test.dart View 2 chunks +0 lines, -21 lines 0 comments Download
M pkg/code_transformers/lib/src/dart_sdk.dart View 1 2 3 3 chunks +12 lines, -0 lines 0 comments Download
M pkg/code_transformers/lib/src/resolver_impl.dart View 1 2 3 3 chunks +25 lines, -4 lines 0 comments Download
M pkg/code_transformers/pubspec.yaml View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/pkg.status View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M pkg/smoke/pubspec.yaml View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/smoke/test/codegen/testing_resolver_utils.dart View 1 2 3 3 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
scheglov
6 years, 4 months ago (2014-08-04 20:30:09 UTC) #1
Brian Wilkerson
LGTM
6 years, 4 months ago (2014-08-04 20:40:04 UTC) #2
Siggi Cherem (dart-lang)
Besides the code_transformers tests, I'd recommend also running tests under polymer/test, especially those under polymer/test/build ...
6 years, 4 months ago (2014-08-04 22:43:55 UTC) #3
blois
https://codereview.chromium.org/428303004/diff/1/pkg/code_transformers/lib/src/dart_sdk.dart File pkg/code_transformers/lib/src/dart_sdk.dart (right): https://codereview.chromium.org/428303004/diff/1/pkg/code_transformers/lib/src/dart_sdk.dart#newcode114 pkg/code_transformers/lib/src/dart_sdk.dart:114: return _proxy.uri.resolveUri(relativeUri); The DartSourceProxy wraps 'dart:' sources, and I'm ...
6 years, 4 months ago (2014-08-05 21:33:26 UTC) #4
Brian Wilkerson
https://codereview.chromium.org/428303004/diff/1/pkg/code_transformers/lib/src/dart_sdk.dart File pkg/code_transformers/lib/src/dart_sdk.dart (right): https://codereview.chromium.org/428303004/diff/1/pkg/code_transformers/lib/src/dart_sdk.dart#newcode114 pkg/code_transformers/lib/src/dart_sdk.dart:114: return _proxy.uri.resolveUri(relativeUri); > The DartSourceProxy wraps 'dart:' sources, and ...
6 years, 4 months ago (2014-08-05 21:44:21 UTC) #5
blois
Updates are at https://codereview.chromium.org/447603002/ https://codereview.chromium.org/428303004/diff/1/pkg/analyzer/lib/src/generated/source.dart File pkg/analyzer/lib/src/generated/source.dart (right): https://codereview.chromium.org/428303004/diff/1/pkg/analyzer/lib/src/generated/source.dart#newcode600 pkg/analyzer/lib/src/generated/source.dart:600: } catch (exception) { exception ...
6 years, 4 months ago (2014-08-05 22:28:50 UTC) #6
scheglov
PTAL I merged https://codereview.chromium.org/447603002/ into this one. Also updated versions for analyzer, code_transformers and smoke. ...
6 years, 4 months ago (2014-08-06 02:12:00 UTC) #7
Brian Wilkerson
LGTM
6 years, 4 months ago (2014-08-06 02:21:41 UTC) #8
Siggi Cherem (dart-lang)
https://codereview.chromium.org/428303004/diff/20001/pkg/code_transformers/lib/src/dart_sdk.dart File pkg/code_transformers/lib/src/dart_sdk.dart (right): https://codereview.chromium.org/428303004/diff/20001/pkg/code_transformers/lib/src/dart_sdk.dart#newcode113 pkg/code_transformers/lib/src/dart_sdk.dart:113: print('$relativeUri => $r using $_proxy'); delete print? https://codereview.chromium.org/428303004/diff/20001/pkg/code_transformers/pubspec.yaml File ...
6 years, 4 months ago (2014-08-06 03:07:22 UTC) #9
vicb
Konstantion, Could you please add a CHANGELOG.md as discussed earlier. It is very important for ...
6 years, 4 months ago (2014-08-06 08:37:07 UTC) #10
scheglov
PTAL https://codereview.chromium.org/428303004/diff/20001/pkg/code_transformers/lib/src/dart_sdk.dart File pkg/code_transformers/lib/src/dart_sdk.dart (right): https://codereview.chromium.org/428303004/diff/20001/pkg/code_transformers/lib/src/dart_sdk.dart#newcode113 pkg/code_transformers/lib/src/dart_sdk.dart:113: print('$relativeUri => $r using $_proxy'); On 2014/08/06 03:07:22, ...
6 years, 4 months ago (2014-08-06 18:03:50 UTC) #11
Brian Wilkerson
LGTM
6 years, 4 months ago (2014-08-06 18:17:03 UTC) #12
Siggi Cherem (dart-lang)
lgtm I have a fix for the warnings that I can submit immediately afterwards (see ...
6 years, 4 months ago (2014-08-06 20:24:23 UTC) #13
scheglov
Committed patchset #4 manually as 38949 (presubmit successful).
6 years, 4 months ago (2014-08-06 20:42:06 UTC) #14
nweiz
6 years, 4 months ago (2014-08-06 20:56:52 UTC) #15
Message was sent while issue was closed.
It looks like you're making changes to analysis_server, analysis_services, and
analysis_testing without changing their pubspecs. Unless a repo package has a
"-dev" version, its contents should always exactly match the contents of the
same version uploaded to pub.dartlang.org.

What this means is that, if you modify analysis_server and its repo version is
0.1.0, you have two choices. Either you can bump the version (here it would be
to 0.1.0+1, since this isn't a user-visible change) and make a new release; or
you can make it a -dev version (in this case 0.1.1-dev). If you're planning on
making a bunch of changes in a row, the latter is probably what you want to do.

Powered by Google App Engine
This is Rietveld 408576698