Skip to content

Commit 7a13b32

Browse files
committed
Remove both .tasty and .hasTasty files in sbt.
1 parent 4abbef1 commit 7a13b32

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,8 @@ object DottyPlugin extends AutoPlugin {
9797
def delete(classes: Iterable[File]): Unit = {
9898
inherited.delete(classes flatMap { classFile =>
9999
val dottyFiles = if (classFile.getPath endsWith ".class") {
100-
val f = new File(classFile.getAbsolutePath.stripSuffix(".class") + ".tasty")
101-
if (f.exists) List(f)
102-
else Nil
100+
val prefix = classFile.getAbsolutePath.stripSuffix(".class")
101+
List(".tasty", ".hasTasty").map(x => new File(prefix + x)).filter(_.exists)
103102
} else Nil
104103
classFile :: dottyFiles
105104
})

0 commit comments

Comments
 (0)