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

Unified Diff: pkg/analyzer/lib/src/dart/sdk/sdk.dart

Issue 2286923002: Convert analysis server over to use ContextBuilder (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: address comment, fix bugs, clean-up Created 4 years, 4 months 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
Index: pkg/analyzer/lib/src/dart/sdk/sdk.dart
diff --git a/pkg/analyzer/lib/src/dart/sdk/sdk.dart b/pkg/analyzer/lib/src/dart/sdk/sdk.dart
index d692a289058e0f84919428a587c861fb22a90950..347aa9f82987650bc6c0ec5c75aef8dd4a2d5ccb 100644
--- a/pkg/analyzer/lib/src/dart/sdk/sdk.dart
+++ b/pkg/analyzer/lib/src/dart/sdk/sdk.dart
@@ -10,6 +10,7 @@ import 'dart:io' as io;
import 'package:analyzer/dart/ast/ast.dart';
import 'package:analyzer/file_system/file_system.dart';
+import 'package:analyzer/file_system/memory_file_system.dart';
import 'package:analyzer/src/context/context.dart';
import 'package:analyzer/src/dart/scanner/reader.dart';
import 'package:analyzer/src/dart/scanner/scanner.dart';
@@ -596,9 +597,13 @@ class FolderBasedDartSdk extends AbstractDartSdk {
lastStackTrace = stackTrace;
}
}
+ StringBuffer buffer = new StringBuffer();
+ buffer.writeln('Could not initialize the library map from $searchedPaths');
+ if (resourceProvider is MemoryResourceProvider) {
+ (resourceProvider as MemoryResourceProvider).writeOn(buffer);
+ }
AnalysisEngine.instance.logger.logError(
- "Could not initialize the library map from $searchedPaths",
- new CaughtException(lastException, lastStackTrace));
+ buffer.toString(), new CaughtException(lastException, lastStackTrace));
return new LibraryMap();
}
« no previous file with comments | « pkg/analyzer/lib/src/context/builder.dart ('k') | pkg/analyzer/test/generated/analysis_context_factory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698