tapir icon indicating copy to clipboard operation
tapir copied to clipboard

Show precise errors for failed derivation for Pickler

Open kciesielski opened this issue 1 year ago • 0 comments

Current behavior: When Tapir fails to derive a Pickler for a type because of missing Pickler for one of its fields, we show a compilation error pointing which field type failed derivation. image

Expected improvement: It would be great to show the full path (like "breadcrumbs") of implicit resolution that led to the point of failed summoning. The user would have a better understanding of where exactly the issue happened. For deeper errors, we'd like to show something like

Failed to summon Pickler[example.Country] when deriving from example.Book > example.Author

kciesielski avatar Sep 14 '23 10:09 kciesielski