Open rpiaggio opened 5 years ago
I'm getting a similar error, except it persists even after I eliminated defaults:
[warn] an unexpected type representation reached the compiler backend while compiling AutowireServerLayer.scala: <error>. If possible, please file a bug on https://github.com/scala/bug/issues.
[error] Error while emitting AutowireServerLayer.scala
[error] <error> (of class scala.reflect.internal.Types$ErrorType$)
[error] Error while emitting AutowireServerLayer.scala
[error] assertion failed: ClassBType.info not yet assigned: Llrbcol/snippet/request/AutowireServerLayer;
[error] Error while emitting AutowireServerLayer.scala
[error] assertion failed: ClassBType.info not yet assigned: Llrbcol/snippet/request/AutowireServerLayer$AutowireServer$;
[error] Error while emitting AutowireServerLayer.scala
[error] assertion failed: ClassBType.info not yet assigned: Llrbcol/snippet/request/AutowireServerLayer$AutowireServer$$anonfun$routes$1;
[error] Error while emitting AutowireServerLayer.scala
[error] assertion failed: ClassBType.info not yet assigned: Llrbcol/snippet/request/AutowireServerLayer$AutowireServer$;
[error] Error while emitting AutowireServerLayer.scala
[error] assertion failed: ClassBType.info not yet assigned: Llrbcol/snippet/request/AutowireServerLayer$AutowireServer$;
[error] Error while emitting AutowireServerLayer.scala
[error] assertion failed: ClassBType.info not yet assigned: Llrbcol/snippet/request/AutowireServerLayer;
Hi, I am having the same issue. How were you able to work around on this issue?
thanks.
We get the same error on Scala 2.12.19. We can also reproduce the error on 2.12.8 but not on 2.12.7.
Example:
works, while:
fails with:
Note 1: What actually fails is the compilation of
Router.route[EventApi](new EventService)
(present inApplication.scala
in this case).Note 2: Worked with Scala 2.12.6.
Thank you!