Skip to content

Commit

Permalink
Merge pull request #158 from tgodzik/compiler-error
Browse files Browse the repository at this point in the history
bugfix: Handle NoClassDefFoundError coming from the compiler
  • Loading branch information
tgodzik committed Dec 6, 2023
2 parents e1a6468 + 45f30ca commit 1b24bf2
Showing 1 changed file with 4 additions and 0 deletions.
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 1b24bf2

Please sign in to comment.