|
|
|
|
|
by harpocrates
2888 days ago
|
|
I heartily recommend [splain][0] to anyone debugging non-trivial implicits. It is a scalac compiler plugin that, among other things, will swap out the horribly unhelpful "implicit not found" or "diverging implicit expansion" messages for an indented and annotated representation of the search tree that the compiler went through before giving up. `-Xlog-implicits` is good to use every now and then, but it quickly becomes unreadable for any decent sized project. [0]: https://github.com/tek/splain
|
|
A search tree is cool, but it's not going to explain how to get a value when it has restrictions (dependencies).