I’m using sbt to compile a project. And scala compiler crashes while compiling. Sbt shows tiny record about assertion. How can I get full compiler stack trace?
I’ve tried to search this question in google but finds only cases when your own code or test cases crashes, not scala compiler itself.
Repeat the same command, but preceded with
last. For example, if you triedcompileand something happened, typelast compilenext.In addition, sbt keeps all the logs files from various tasks under
target/streamsdirectory. It is in a directory corresponding to the scope/task executed. SO,compile/compile/$outcontains the logs for running compile.When you see an error, it should tell you which task failed so that you can either go look up the logs, or run
last <cmd that failed>. If you do agrep -R "MyException" target/streamsin your project directory it should find the right logfile.