Skip to content

Commit 805134a

Browse files
authored
Merge pull request scalacenter#1720 from dos65/fix_source_changes_detection
fix: prevent ignorance of initial changes
2 parents aab21b1 + 37c3e63 commit 805134a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/src/main/scala/sbt/internal/inc/bloop/internal/BloopNameHashing.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ private final class BloopNameHashing(
8484
initialChangedSources,
8585
allSources.map(v => v: VirtualFileRef),
8686
previous
87-
).collect { case f: VirtualFile => f }
87+
).map {
88+
case f: VirtualFile => f
89+
case ref: VirtualFileRef => PlainVirtualFileConverter.converter.toVirtualFile(ref)
90+
}
8891

8992
recompileClasses(invalidatedSources, binaryChanges, previous, compileTask, manager).flatMap {
9093
current =>

0 commit comments

Comments
 (0)