Skip to content

Commit db35221

Browse files
committed
Fix traversing jar files with tasty inspector
1 parent b5417d1 commit db35221

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/fromtasty/TASTYRun.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class TASTYRun(comp: Compiler, ictx: Context) extends Run(comp, ictx) {
1818
file.extension match
1919
case "jar" =>
2020
JarArchive.open(Path(file.path), create = false).allFileNames()
21+
.map(_.stripPrefix("/")) // change paths from absolute to relative
2122
.filter(e => Path.extension(e) == "tasty" && !fromTastyIgnoreList(e))
2223
.map(e => e.stripSuffix(".tasty").replace("/", "."))
2324
.toList

0 commit comments

Comments
 (0)