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

Unified Diff: pkg/analysis_server/lib/src/context_manager.dart

Issue 1438293002: Server notification to indicate `pub list-dir` fallback. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/context_manager.dart
diff --git a/pkg/analysis_server/lib/src/context_manager.dart b/pkg/analysis_server/lib/src/context_manager.dart
index d429e22a4c82d1d30c9dfbd99741d5ed5af02317..e135e9a4ae23b87e3127e0140dc79c8a1ba78a6a 100644
--- a/pkg/analysis_server/lib/src/context_manager.dart
+++ b/pkg/analysis_server/lib/src/context_manager.dart
@@ -838,6 +838,12 @@ class ContextManagerImpl implements ContextManager {
return new CustomPackageResolverDisposition(resolver);
}
}
+
+ // Notify server that no `.packages` file was found (and there is no
+ // alternative resolver provider).
+ AnalysisEngine.instance.logger.logError(
+ 'No `.packages` for $folder, falling back to `pub`.');
+
ServerPerformanceStatistics.pub.makeCurrentWhile(() {
packageMapInfo = _packageMapProvider.computePackageMap(folder);
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698