Skip to content

Commit 31e7255

Browse files
committed
Fix nio.Path in dotty doc and ensure that its compilation is tested
1 parent be940d6 commit 31e7255

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.drone.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pipeline:
1313
image: lampepfl/dotty:2017-10-20
1414
commands:
1515
- cp -R . /tmp/1/ && cd /tmp/1/
16+
- ./project/scripts/sbt compile # to ensure that side projects (such as dotty doc) compile
1617
- ./project/scripts/sbt testAll
1718
- ./project/scripts/sbt ";dotty-bench/jmh:run 1 1 tests/run/arrays.scala"
1819

doc-tool/src/dotty/tools/dottydoc/staticsite/Site.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ case class Site(
409409
}
410410

411411
private def toSourceFile(f: JFile): SourceFile =
412-
SourceFile(AbstractFile.getFile(new File(f)), Source.fromFile(f).toArray)
412+
SourceFile(AbstractFile.getFile(new File(f.toPath)), Source.fromFile(f).toArray)
413413

414414
private def collectFiles(dir: JFile, includes: String => Boolean): Array[JFile] =
415415
dir

0 commit comments

Comments
 (0)