[Windows] Generated files and files in dotlin itself use \ instead of / as path divider in import paths
eggnstone opened this issue · 3 comments
eggnstone commented
The generated files do not compile because the import paths use the wrong path divider:
E.g. dotlin/intrinsics/internal.dt.g.dart:
import "..\..\kotlin\native\annotation.dt.g.dart" show Annotation; // **Not OK**
import "package:meta/meta.dart" ; // **OK**
@internal @sealed class $Return<T>{ const $Return(this.value, this.target, ) : super();@nonVirtual final T value;@nonVirtual final int target;}
@internal @sealed class DotlinExternal implements Annotation{ const DotlinExternal() : super();}
Same the import paths in my code
import "package:dotlin/src\dotlin\intrinsics\internal.dt.g.dart" show $Return; // **Even a mix of path dividers**
import "package:dotlin/src\kotlin\ranges\ranges.dt.g.dart" show IntRange;
import "package:dotlin/src\kotlin\ranges\ranges_ext.dt.g.dart" show IntRangeFactoryExt;
import "package:dotlin/src\kotlin\library.dt.g.dart" show SafeStringPlus;
import "package:meta/meta.dart";
import "dart_format_exception.dt.g.dart" show DartFormatException;
import "dotlin\c.dt.g.dart" show C;
import "dotlin\dotlin_tools.dt.g.dart" show DotlinTools$Companion;
wilkomanger commented
Nice find, thank you! That's indeed a bug!
wilkomanger commented
Should be fixed in aba5f86, could you verify it works for you?
eggnstone commented
Confirmed