[info] compiling 49 Scala sources to /home/aleksander/Repos/ducktape/ducktape/.jvm/target/scala-3.3.2/classes ...
Warning: mocking up superclass for module class internal
[error] -- Error: /home/aleksander/Repos/ducktape/ducktape/src/main/scala/io/github/arainko/ducktape/Playground.scala:21:19
[error] 21 | source.fallibleTo[DestToplevel1]
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] |Malformed tree was found while expanding macro with -Xcheck-macros.
[error] | |The tree does not conform to the compiler's tree invariants.
[error] | |
[error] | |Macro was:
[error] | |scala.quoted.runtime.Expr.splice[scala.util.Either[scala.collection.immutable.List[scala.Predef.String], io.github.arainko.ducktape.DestToplevel1]](((contextual$1: scala.quoted.Quotes) ?=> io.github.arainko.ducktape.internal.FallibleTransformations.inline$createTransformationBetween[[A >: scala.Nothing <: scala.Any] => scala.util.Either[scala.collection.immutable.List[scala.Predef.String], A], io.github.arainko.ducktape.SourceToplevel1, io.github.arainko.ducktape.DestToplevel1](scala.quoted.runtime.Expr.quote[io.github.arainko.ducktape.SourceToplevel1](io.github.arainko.ducktape.Playground$package.source).apply(using contextual$1), scala.quoted.runtime.Expr.quote[io.github.arainko.ducktape.Mode[[A >: scala.Nothing <: scala.Any] => scala.util.Either[scala.collection.immutable.List[scala.Predef.String], A]]](io.github.arainko.ducktape.F).apply(using contextual$1), scala.quoted.runtime.Expr.quote["transformation" | "definition"]("transformation").apply(using contextual$1), scala.quoted.runtime.Expr.quote[scala.collection.immutable.Seq[io.github.arainko.ducktape.Field$package.Field.Fallible[[A >: scala.Nothing <: scala.Any] => scala.util.Either[scala.collection.immutable.List[scala.Predef.String], A], io.github.arainko.ducktape.SourceToplevel1, io.github.arainko.ducktape.DestToplevel1] | io.github.arainko.ducktape.Case$package.Case.Fallible[[A >: scala.Nothing <: scala.Any] => scala.util.Either[scala.collection.immutable.List[scala.Predef.String], A], io.github.arainko.ducktape.SourceToplevel1, io.github.arainko.ducktape.DestToplevel1]]]().apply(using contextual$1))(scala.quoted.Type.of[[A >: scala.Nothing <: scala.Any] => scala.util.Either[scala.collection.immutable.List[scala.Predef.String], A]](contextual$1), scala.quoted.Type.of[io.github.arainko.ducktape.SourceToplevel1](contextual$1), scala.quoted.Type.of[io.github.arainko.ducktape.DestToplevel1](contextual$1), contextual$1)))
[error] | |
[error] | |The macro returned:
[error] | |io.github.arainko.ducktape.F.map[scala.collection.immutable.List[io.github.arainko.ducktape.DestLevel1], io.github.arainko.ducktape.DestToplevel1](io.github.arainko.ducktape.F.traverseCollection[io.github.arainko.ducktape.SourceLevel1, io.github.arainko.ducktape.DestLevel1, [A >: scala.Nothing <: scala.Any] => scala.collection.Iterable[A][io.github.arainko.ducktape.SourceLevel1], scala.collection.immutable.List[io.github.arainko.ducktape.DestLevel1]](io.github.arainko.ducktape.Playground$package.source.level1, ((a: io.github.arainko.ducktape.SourceLevel1) => io.github.arainko.ducktape.F.map[io.github.arainko.ducktape.Positive, io.github.arainko.ducktape.DestLevel1](io.github.arainko.ducktape.Positive.transformer.transform(a.int), ((value: io.github.arainko.ducktape.Positive) => value match {
[error] | case int =>
[error] | new io.github.arainko.ducktape.DestLevel1(int = int)
[error] |}))))(scala.collection.immutable.List.iterableFactory[io.github.arainko.ducktape.DestLevel1]), ((`valueā`: scala.collection.immutable.List[io.github.arainko.ducktape.DestLevel1]) => `valueā` match {
[error] | case level1 =>
[error] | new io.github.arainko.ducktape.DestToplevel1(level1 = level1)
[error] |}))
[error] | |
[error] | |Error:
[error] | |assertion failed: bad owner; method $anonfun has owner method $anonfun, expected was value <local Playground$>
[error] |owner chain = method $anonfun, method $anonfun, value macro, value <local Playground$>, object Playground, package io.github.arainko.ducktape, package io.github.arainko, package io.github, package io, package <root>, ctxOwners = value <local Playground$>, value <local Playground$>, value <local Playground$>, value <local Playground$>, value <local Playground$>, value <local Playground$>, value <local Playground$>, value <local Playground$>, value <local Playground$>, value <local Playground$>, value <local Playground$>, value <local Playground$>, object Playground, package io.github.arainko.ducktape, package <root>, package <root>, package <root>, package <root>, package <root>, package <root>, <none>, <none>, <none>, <none>, <none>
[error] | |
[error] |stacktrace available when compiling with `-Ydebug`
[error] | |
[error] |----------------------------------------------------------------------------
[error] |Inline stack trace
[error] |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[error] |This location contains code that was inlined from FallibleTransformations.scala:13
[error] 13 | ) = ${ createTransformationBetween[F, A, B]('source, 'F, 'transformationSite, 'configs) }
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[error] |This location contains code that was inlined from FallibleTransformations.scala:13
[error] 18 | inline def fallibleTo[Dest]: F[Dest] = FallibleTransformations.between[F, Source, Dest](value, F, "transformation")
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] ----------------------------------------------------------------------------
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 6 s, completed Feb 26, 2024, 9:03:58 PM
sbt:ducktape>
io.github.arainko.ducktape.Playground.F
.map[scala.collection.immutable.List[io.github.arainko.ducktape.DestLevel1], io.github.arainko.ducktape.DestToplevel1](
io.github.arainko.ducktape.Playground.F.traverseCollection[
io.github.arainko.ducktape.SourceLevel1,
io.github.arainko.ducktape.DestLevel1,
[A >: scala.Nothing <: scala.Any] =>> scala.collection.Iterable[A][io.github.arainko.ducktape.SourceLevel1],
scala.collection.immutable.List[io.github.arainko.ducktape.DestLevel1]
](
io.github.arainko.ducktape.Playground$package.source.level1,
(a: io.github.arainko.ducktape.SourceLevel1) =>
io.github.arainko.ducktape.Playground.F.map[io.github.arainko.ducktape.Positive, io.github.arainko.ducktape.DestLevel1](
io.github.arainko.ducktape.Positive.transformer.transform(a.int),
(value: io.github.arainko.ducktape.Positive) =>
value match {
case int =>
new io.github.arainko.ducktape.DestLevel1(int = int)
}
)
)(scala.collection.immutable.List.iterableFactory[io.github.arainko.ducktape.DestLevel1]),
(`valueā`: scala.collection.immutable.List[io.github.arainko.ducktape.DestLevel1]) =>
`valueā` match {
case level1 =>
new io.github.arainko.ducktape.DestToplevel1(level1 = level1)
}
)