You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been recently migrating a play framework project from scala2 to scala3, and I found an error that only happens in scala 3 but it doesn't happen in scala 2 for some reason. It seems related to the Play-JSON library, but it might be my mistake.
play.sbt.PlayExceptions$CompilationException: Compilation error[Instance not found: 'Conversion[models.ErrorCode, _ <: Product]']
at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:28)
at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:28)
I'm using an abstract class so I can extend it with more defined types, like these: (there are more types, but I don't want this to become too long to read)
I'm not really sure if this is my mistake (I strongly suspect it is), so I'd like to know if it is a good idea to raise an issue, or I'm making a mistake here. Any advice would be welcome.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been recently migrating a play framework project from scala2 to scala3, and I found an error that only happens in scala 3 but it doesn't happen in scala 2 for some reason. It seems related to the Play-JSON library, but it might be my mistake.
this error is caused by these 2 lines of code.
and refers to this Object.
I'm using an abstract class so I can extend it with more defined types, like these: (there are more types, but I don't want this to become too long to read)
the reason why I'm doing this is because I'm using those types of exceptions to control the type of HTTP response in my specific controller.
I'm not really sure if this is my mistake (I strongly suspect it is), so I'd like to know if it is a good idea to raise an issue, or I'm making a mistake here. Any advice would be welcome.
Beta Was this translation helpful? Give feedback.
All reactions