Log implicits only for "diverging implicit expansion"s
Asked Answered
H

1

32

Other answers suggest using "-Xlog-implicits" option for debugging "diverging implicit expansion" errors. However, it also logs a lot of implicits in places unrelated to these errors. Is there some way to limit it to only explain places which produce compilation errors?

Hartwell answered 13/12, 2013 at 12:24 Comment(0)
S
9

If there were such an option, one might have seen it in use here:

https://github.com/scala/scala/pull/3669

But the tool of choice seems to be grep:

scalac -Xlog-implicits test/files/neg/t2031.scala 2>&1 | grep diverg

Since that area is under active development, now might be the time to submit a request for enhancement.

Salsbury answered 2/4, 2014 at 0:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.