mirror of https://github.com/AMT-Cheif/drift.git
Fix resolving urls in common backend
This commit is contained in:
parent
9bb83605e9
commit
63e0d61ccb
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue