Skip to content

dotty.tools.dotc.CompilationTests fail on Windows #5129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
melekhove opened this issue Sep 20, 2018 · 0 comments
Closed

dotty.tools.dotc.CompilationTests fail on Windows #5129

melekhove opened this issue Sep 20, 2018 · 0 comments

Comments

@melekhove
Copy link
Contributor

The issue is most likely related to different class path separator.

Testing tests\run\virtpatmat_valdef.scala
java.nio.file.InvalidPathException: Illegal char <:> at index 138: D:\home\projects\Scala\Dotty\git\library\..\out\bootstrap\dotty-library-bootstrapped\scala-0.10\dotty-library_0.10-0.10.0-bin-SNAPSHOT.jar:D:\home\projects\Scala\Dotty\git\out\runTestFromTasty\run\weakconform
	at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
	at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
	at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
	at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
	at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
	at java.nio.file.Paths.get(Paths.java:84)
	at dotty.tools.io.Directory$.apply(Directory.scala:32)
	at dotty.tools.io.AbstractFile$.getDirectory(AbstractFile.scala:25)
	at dotty.tools.dotc.classpath.ClassPathFactory.$anonfun$classesInPathImpl$1(ClassPathFactory.scala:58)
	at scala.collection.immutable.List.flatMap(List.scala:335)
	at dotty.tools.dotc.classpath.ClassPathFactory.classesInPathImpl(ClassPathFactory.scala:55)
	at dotty.tools.dotc.classpath.ClassPathFactory.classesInExpandedPath(ClassPathFactory.scala:44)
	at dotty.tools.dotc.config.PathResolver$Calculated$.basis(PathResolver.scala:234)
	at dotty.tools.dotc.config.PathResolver$Calculated$.containers$lzycompute(PathResolver.scala:238)
	at dotty.tools.dotc.config.PathResolver$Calculated$.containers(PathResolver.scala:238)
	at dotty.tools.dotc.config.PathResolver.containers(PathResolver.scala:261)
	at dotty.tools.dotc.config.PathResolver.result$lzycompute(PathResolver.scala:264)
	at dotty.tools.dotc.config.PathResolver.result(PathResolver.scala:263)
	at dotty.tools.dotc.config.JavaPlatform.classPath(JavaPlatform.scala:18)
	at dotty.tools.dotc.config.JavaPlatform.rootLoader(JavaPlatform.scala:38)
	at dotty.tools.dotc.core.Contexts$ContextBase.rootLoader(Contexts.scala:602)

I'm trying to fix it but the problem is that it's hard to do that w/o debug and I can't debug it from IJ Idea.
It either couldn't find test classes or fails for some other reasons.

Does someone know how to run/debug such tests from IJ Idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant