Open
Description
Given the following files:
file1.dart
dantup-macbookpro:foo dantup$ cat file1.dart
import 'folder//file2.dart';
main() {
a();
}
folder/file2.dart
import '../file3.dart';
a() {
b();
}
file3.dart
b() {
print('Hello!');
}
There are no analysis warnings about the double-slash in file1.dart1
, however trying to run the file results in an error for the import inside file2.dart
. It seems like the relative path starting ../
is not based from the correct folder when there are two slashes.
bin/foo/folder//file2.dart:1:8: Error: Error when reading 'bin/foo/folder/file3.dart': No such file or directory
import '../file3.dart';
^
bin/foo/folder//file2.dart:4:3: Error: Method not found: 'b'.
b();
^
It seems like either the analysis server should also complain, or the code should compile/run successfully.