Skip to content

Commit

Permalink
chore: Report if target root is missing
Browse files Browse the repository at this point in the history
I noticed it happening in a bazel project for a couple of targets. This is most likely a bug in Bazel BSP, but digging into that could take a while, so to make sure that this will show up properly I added a log statement.
  • Loading branch information
tgodzik committed May 14, 2024
1 parent 4d9f63c commit 58c15e0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ final class FileSystemSemanticdbs(
javaRoot orElse buildTargets.scalaTargetRoot(buildTarget)
}
} yield {
if (!targetroot.exists)
scribe.warn(s"Target root $targetroot does not exist")
val optScalaVersion =
if (file.toLanguage.isJava) None
else buildTargets.scalaTarget(buildTarget).map(_.scalaVersion)
Expand Down

0 comments on commit 58c15e0

Please sign in to comment.