Skip to content

Commit e0dc007

Browse files
authored
Merge pull request #27 from hasali19/fix/files-in-src
Fix debug failure when there are files in src dir
2 parents 39045e6 + 99afcce commit e0dc007

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adapter/src/main/kotlin/org/javacs/ktda/jdi/launch/JDILauncher.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class JDILauncher(
7979

8080
private fun sourcesRootsOf(projectRoot: Path): Set<Path> = projectRoot.resolve("src")
8181
.let(Files::list) // main, test
82+
.filter { Files.isDirectory(it) }
8283
.flatMap(Files::list) // kotlin, java
8384
.filter { Files.isDirectory(it) }
8485
.collect(Collectors.toSet())

0 commit comments

Comments
 (0)