softwaremill / scala-clippy

Good advice for Scala compiler errors
Apache License 2.0
312 stars 20 forks source link

Error using colors. #32

Closed sellout closed 7 years ago

sellout commented 7 years ago

When I add scalacOptions += "-P:clippy:colors=true" to ~/.sbt/0.13/global.sbt, I get an error: “java.lang.ClassCastException: com.softwaremill.clippy.DelegatingReporter cannot be cast to xsbt.DelegatingReporter”

Without the scalac arg, clippy works great.

kciesielski commented 7 years ago

Hi Greg, this is fixed by #31, release later today.

adamw commented 7 years ago

@sellout Could you test 0.3.6? "should" work, but with all this mutable state in the compiler... ;)

sellout commented 7 years ago

Yep. It works. Thanks!

kciesielski commented 7 years ago

The issue still occurs for multi-module projects. A fix is on the way.

kciesielski commented 7 years ago

Should be fully fixed now by #33.