bloop icon indicating copy to clipboard operation
bloop copied to clipboard

provide a complete stacktrace when the compiler crashes

Open tpolecat opened this issue 3 years ago • 1 comments

I had an issue today where a java.lang.NoSuchMethodError was thrown from a compiler plugin. sbt says:

[error] ## Exception when compiling 12 sources to /Users/rnorris/Scala/gsp-graphql/modules/core/target/scala-2.13/classes
[error] java.lang.NoSuchMethodError: 'scala.tools.nsc.reporters.Reporter scala.tools.nsc.Global.reporter()'
[error] d_m.StringParser.parse(StringParser.scala:9)
[error] d_m.KindRewriter$MyTransformer.makeTypeParamFromName$1(KindProjector.scala:164)
[error] d_m.KindRewriter$MyTransformer.makeComplexTypeParam$1(KindProjector.scala:174)
[error] ...

But all bloop says is:

$ bloop --verbose --debug all compile core
Compiling core (1 Scala source)
Compiled core (51ms)
[E] Unexpected error when compiling core: ''scala.tools.nsc.reporters.Reporter scala.tools.nsc.Global.reporter()''
[E] Failed to compile 'core'

It would be nice if bloop were able to provide the stacktrace in these cases.

tpolecat avatar Dec 29 '20 17:12 tpolecat

Thanks for reporting, do perhaps have a reproduction that we could test it out on?

tgodzik avatar Dec 30 '20 09:12 tgodzik