Skip to content

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

Closed
@melekhove

Description

@melekhove

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions