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
importeu.timepit.crjdt.circe.RegNodeConflictResolver.LWWimporteu.timepit.crjdt.circe.syntax._importeu.timepit.crjdt.core.Replicaimporteu.timepit.crjdt.core.syntax._objectPlayground {
defmain(args: Array[String]):Unit= {
varp=Replica.empty("p")
vallist= doc.downField("list")
p = p.applyCmd(list := `[]`)
p = p.applyCmd(list.iter.insert("1"))
p = p.applyCmd(list.iter.next.insert("2"))
p = p.applyCmd(list.iter.next.delete) // it works without this line
println(p.document.toJson)
}
}
Exception in thread "main" scala.MatchError: (RegT(IdK(Id(2,p))),RegNode(Map())) (of class scala.Tuple2)
at eu.timepit.crjdt.circe.NodeToJson$$anonfun$listToJson$1.apply(NodeToJson.scala:50)
The text was updated successfully, but these errors were encountered:
Will be fixed on #20 .
The reason of the MatchError is wrong usage of foreach with PartialFunction filtering items that are not present.
No relation to #15 .
@TanUkkii007: The above code causes
The text was updated successfully, but these errors were encountered: