bazelbuild / rules_scala

Scala rules for Bazel
Apache License 2.0
359 stars 266 forks source link

Semanticdb clear dir #1580

Closed crt-31 closed 1 month ago

crt-31 commented 2 months ago

Description

This change clears out and deletes the _semanticdb folder before compiling. This is similar to how ScalacWorker was already clearing out the _classes directory.

Motivation

I ran into a bug where, when you delete a source *.scala file, it's associated semanticdb file remained and was read-only which caused permission errors when the compiler tried to clear the semanticdb output directory.