derivation of shapeless tagging causes compiler to fail #82
Comments
|
Maybe the issue is here: https://github.com/propensive/magnolia/blob/master/core/shared/src/main/scala/globalutil.scala#L74 |
|
Thanks for the report, @TimPigden! I'm still only connected to the Internet with my smartphone, but I will take a look soon. On the face of it, I have no idea what the issue is, but it looks like the sort of thing we might be able to get a handle on, and maybe hack a bit to make it work... but not necessarily easily. |
|
@joroKr21 It looks like a good candidate! I'll try to take a look later today. |
|
Hi Jon, good talking to you today. Here's the latest version which illustrates both the bug and the implicits I'd like to make both |
|
I've found something else out which may be relevant. A different generic but the pattern is similar
compiles whereas
causes the compiler to blow up. Those shoulds/in are from specs2 btw. |
|
Thanks, @TimPigden! I promise I'll take a look as soon as I'm past the next extremely busy week. :) |
|
Wow even old bugs can be fixed. Closing this one as duplicate of #165. |
the attached example causes the compiler to fail with message
In the worst case (my real code) this is all you get:
No file, no line indicator, nothing. SBT just gives up.
However, in this boiled down case you do get sufficient info to identify the problem line.
Also in the real case the behaviour of what will and won't work is different (the Option version doesn't compile whereas here it does).
magnolia-json.zip
The text was updated successfully, but these errors were encountered: