Skip to content

Commit b808d2e

Browse files
authored
Don't throw an error when a source file does not exist, closes #858 (#859)
1 parent 03d889c commit b808d2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
##### Bug Fixes
1212

13-
- None.
13+
- A clean build is no longer required when a file is deleted from the scanned project.
1414

1515
## 3.0.0 (2024-12-27)
1616

Sources/Indexer/SourceFileCollector.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Configuration
22
import Foundation
33
import Logger
4-
import Shared
54
import SourceGraph
65
import SwiftIndexStore
76
import SystemPackage
@@ -43,7 +42,8 @@ public struct SourceFileCollector {
4342

4443
if !isExcluded(file) {
4544
guard file.exists else {
46-
throw PeripheryError.pathDoesNotExist(path: file.string)
45+
logger.debug("Source file does not exist: \(file.string)")
46+
return nil
4747
}
4848

4949
let module = try indexStore.moduleName(for: unit)

0 commit comments

Comments
 (0)