We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4abbef1 commit 7a13b32Copy full SHA for 7a13b32
sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala
@@ -97,9 +97,8 @@ object DottyPlugin extends AutoPlugin {
97
def delete(classes: Iterable[File]): Unit = {
98
inherited.delete(classes flatMap { classFile =>
99
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
+ val prefix = classFile.getAbsolutePath.stripSuffix(".class")
+ List(".tasty", ".hasTasty").map(x => new File(prefix + x)).filter(_.exists)
103
} else Nil
104
classFile :: dottyFiles
105
})
0 commit comments