Skip to content

Commit

Permalink
Merge pull request #2114 from tgodzik/handle-no-class-def
Browse files Browse the repository at this point in the history
bugfix: Handle NoClassDefFoundError coming from the compiler
  • Loading branch information
tgodzik authored Jul 13, 2023
2 parents 67c68be + 7fb8124 commit fb7ebf5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ final class BloopHighLevelCompiler(
val msg = "Encountered a StackOverflowError coming from the compiler. You might need to restart your Bloop build server"
logger.error(s"${msg}:\n${t.getStackTrace().mkString("\n")}")
throw new CompileFailed(new Array(0), msg, new Array(0), t)
case t: NoClassDefFoundError =>
val msg = "Encountered a NoClassDefFoundError coming from the compiler. You might need to clean compile your workspace"
logger.error(s"${msg}:\n${t.getStackTrace().mkString("\n")}")
throw new CompileFailed(new Array(0), msg, new Array(0), t)
case NonFatal(t) =>
// If scala compilation happens, complete the java promise so that it doesn't block
JavaCompleted.tryFailure(t)
Expand Down

0 comments on commit fb7ebf5

Please sign in to comment.