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

Issue 341123007: Rerun "pub list" when pubspec.lock changes. (Closed)

Created:
6 years, 5 months ago by Paul Berry
Modified:
6 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Rerun "pub list" when pubspec.lock changes. (Note: we don't actually hardcode the dependency on pubspec.lock--we use the "input_files" field of the output from "pub list" which tells us the dependency). This required some refactoring: ContextDirectory has been eliminated and its responsibilities (creating the analysis context, UriResolvers, and SourceFactory) have been shifted to ContextDirectoryManager and AnalysisServerContextDirectoryManager. Accordingly, AnalysisServer.folderMap now maps directly from folder to AnalysisContext. Note: we don't yet properly handle the case where one of the dependencies output by "pub list" is outside of the context folder. R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=37826

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -112 lines) Patch
M pkg/analysis_server/lib/src/analysis_server.dart View 9 chunks +40 lines, -71 lines 4 comments Download
M pkg/analysis_server/lib/src/context_directory_manager.dart View 7 chunks +36 lines, -3 lines 0 comments Download
M pkg/analysis_server/lib/src/package_map_provider.dart View 4 chunks +34 lines, -4 lines 0 comments Download
M pkg/analysis_server/pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/test/context_directory_manager_test.dart View 13 chunks +84 lines, -28 lines 0 comments Download
M pkg/analysis_server/test/domain_analysis_test.dart View 2 chunks +33 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/mocks.dart View 1 chunk +10 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/package_map_provider_test.dart View 4 chunks +15 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Paul Berry
6 years, 5 months ago (2014-06-30 16:26:29 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/341123007/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/341123007/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode85 pkg/analysis_server/lib/src/analysis_server.dart:85: SourceFactory _createSourceFactory(Map<String, List<Folder>> packageMap) { Do we need ...
6 years, 5 months ago (2014-06-30 16:53:16 UTC) #2
Paul Berry
https://codereview.chromium.org/341123007/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/341123007/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode85 pkg/analysis_server/lib/src/analysis_server.dart:85: SourceFactory _createSourceFactory(Map<String, List<Folder>> packageMap) { On 2014/06/30 16:53:16, Brian ...
6 years, 5 months ago (2014-06-30 17:43:00 UTC) #3
Paul Berry
6 years, 5 months ago (2014-06-30 17:44:45 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 manually as r37826 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698