Fix resolving urls in common backend

This commit is contained in:
Simon Binder 2020-05-17 15:00:14 +02:00
parent 9bb83605e9
commit 63e0d61ccb
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
3 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ class FoundFile {
FileState state = FileState.dirty;
final ErrorSink errors = ErrorSink();
FoundFile(this.uri, this.type);
FoundFile(this.uri, this.type) : assert(uri.isAbsolute);
String get shortName => uri.pathSegments.last;

View File

@ -17,7 +17,7 @@ class CommonBackend extends Backend {
final absolute = driver.absolutePath(Uri.parse(import), base: base);
if (absolute == null) return null;
return Uri.parse(absolute);
return Uri.file(absolute);
}
}

View File

@ -108,7 +108,7 @@ class MoorDriver implements AnalysisDriverGeneric {
session.notifyTaskFinished(task);
} catch (e, s) {
Logger.root.warning(
'Error while working on ${mostImportantFile.file.uri}', e, s);
'Error while working on ${mostImportantFile.file.uri}: ', e, s);
_tracker.removePending(mostImportantFile);
}
}