Thanks to visit codestin.com
Credit goes to github.com

Skip to content

@boopickleWireProtocol macro expansion error due to empty parameter list in event sourced entity api #68

@SemanticBeeng

Description

@SemanticBeeng

@notxcain I am getting this as soon as I add a method in my event sourced entity api returning *Status. The *Status is implemented similar to BookingStatus from @vpavkin 's tutorial.

The only thing I can see different is that my *Status is in a different sbt module than the entity.
But also tried moving it to same sbt module and getting same

Any idea of what might cause this?
Not likely this to be an aecor bug but maybe others will run into it so worth having it here.

[error] <macro>:2:4: exception during macro expansion: 
[error] org.scalameta.invariants.InvariantFailedException: invariant failed:
[error] when verifying args.length.>(1).||(args.length.==(1).&&(scala.meta.classifiers.`package`.XtensionClassifiable[scala.meta.Term](args.head)(scala.meta.Tree.classifiable[scala.meta.Term]).is[scala.meta.internal.ast.Quasi](scala.meta.internal.ast.Quasi.ClassifierClass[scala.meta.Term])))
[error] found that args.length.>(1) is false
[error] and also scala.meta.classifiers.`package`.XtensionClassifiable[scala.meta.Term](args.head)(scala.meta.Tree.classifiable[scala.meta.Term]).is[scala.meta.internal.ast.Quasi](scala.meta.internal.ast.Quasi.ClassifierClass[scala.meta.Term]) is false
[error] where args = List("status")
[error] 	at org.scalameta.invariants.InvariantFailedException$.raise(Exceptions.scala:15)
[error] 	at scala.meta.Term$Tuple$.internal$44(Trees.scala:78)
[error] 	at scala.meta.Term$Tuple$.apply(Trees.scala:75)
[error] 	at aecor.macros.BoopickleWireProtocolMacro$.$anonfun$apply$4(boopickleWireProtocol.scala:60)
[error] 	at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
[error] 	at scala.collection.immutable.List.foreach(List.scala:389)
[error] 	at scala.collection.TraversableLike.map(TraversableLike.scala:234)
[error] 	at scala.collection.TraversableLike.map$(TraversableLike.scala:227)
[error] 	at scala.collection.immutable.List.map(List.scala:295)
[error] 	at aecor.macros.BoopickleWireProtocolMacro$.apply(boopickleWireProtocol.scala:58)
[error] 	at aecor.macros.boopickleWireProtocol$inline$.apply(boopickleWireProtocol.scala:16)
[error]   @boopickleWireProtocol trait Session[F[_]] {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions