GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
I found that this line from a SBT configuration (on Windows):
"lazy val tagtree = RootProject(file("../TagTree"))"
blows up with this exception:
java.net.URISyntaxException: Illegal character in path at index 2: ..\TagTree
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.(Unknown Source)
The problems seems to be at IO.scala:620:
"def toURI(f: File): URI = if(f.isAbsolute) f.toURI else new URI(f.getPath)"
Unfortunately, on Windows, File.getPath() uses backslashes which are illegal in URIs:
scala> new java.io.File("../TagTree")
res0: java.io.File = ..\TagTree
res1: java.lang.String = ..\TagTree
IMPORTANT This project has moved to https://github.com/sbt/sbt. This issue still exists to avoid dead links, but GitHub limitations prevent the original issue from being correctly preserved here. Please see sbt/sbt#111 for the full issue and to comment.