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
{{ message }}
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
When I alter the README example to use an additional java.time.Instant field, like this:
import java.time.Instant
import com.danielasfregola.randomdatagenerator.magnolia.RandomDataGenerator
object MyApp extends App with RandomDataGenerator {
case class Example(text: String, n: Int, inst: Instant)
val example: Example = random[Example]
}
Then I get the following error messages:
Error: could not find implicit value for evidence parameter of type org.scalacheck.Arbitrary[Example]
Error: not enough arguments for method random: (implicit evidence$1: reflect.runtime.universe.WeakTypeTag[Example], implicit evidence$2: org.scalacheck.Arbitrary[Example])Example.
This is misleading because an Arbitrary[Example] can be created but not an Arbitrary[Instant]. If I add an implicit Arbitrary[Instant] in scope, it compiles just fine and yields the expected result.
Can this be improved?
The text was updated successfully, but these errors were encountered:
@stsatlantis Thanks for the info. I tried it but unfortunately it does not provide useful additional information in this case. However, cool plugin. :)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I alter the README example to use an additional java.time.Instant field, like this:
Then I get the following error messages:
This is misleading because an Arbitrary[Example] can be created but not an Arbitrary[Instant]. If I add an implicit Arbitrary[Instant] in scope, it compiles just fine and yields the expected result.
Can this be improved?
The text was updated successfully, but these errors were encountered: