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?
Asked
Active
Viewed 2,155 times
32
![](../../users/profiles/495796.webp)
Robin Green
- 29,408
- 13
- 94
- 178
![](../../users/profiles/9204.webp)
Alexey Romanov
- 154,018
- 31
- 276
- 433
1 Answers
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.
![](../../users/profiles/1296806.webp)
som-snytt
- 38,672
- 2
- 41
- 120