Skip to content

Commit 5793f90

Browse files
committed
Disable perspective in CB
perspective now fails with the following stack trace ``` error when pickling type Z error when pickling type perspective.Const[List[A]][Z] error when pickling tree perspective.Const[List[A]][Z] error when pickling tree perspective.FoldableK.this.foldMapK[([_] =>> A), C](fa)[ perspective.Const[List[A]][Z] ] error when pickling tree perspective.FoldableK.this.foldMapK[([_] =>> A), C](fa)[ perspective.Const[List[A]][Z] ]( perspective.FunctionK.liftConst[A, List[A]]( { def $anonfun(_$5: A): List[A] = List.apply[A]([_$5:A : A]*) closure($anonfun) } ) ) error when pickling tree perspective.FoldableK.this.foldMapK[([_] =>> A), C](fa)[ perspective.Const[List[A]][Z] ]( perspective.FunctionK.liftConst[A, List[A]]( { def $anonfun(_$5: A): List[A] = List.apply[A]([_$5:A : A]*) closure($anonfun) } ) )(cats.kernel.Semigroup.catsKernelMonoidForList[A]) error when pickling tree extension [A >: Nothing <: Any, C >: Nothing <: Any]( fa: FoldableK.this.F[perspective.Const[A], C] ) def toListK: List[A] = this.foldMapK[([_] =>> A), C](fa)[perspective.Const[List[A]][Z]]( perspective.FunctionK.liftConst[A, List[A]]( { def $anonfun(_$5: A): List[A] = List.apply[A]([_$5:A : A]*) closure($anonfun) } ) )(cats.kernel.Semigroup.catsKernelMonoidForList[A]) error when pickling tree [ F[_[_ >: Nothing <: Any] >: Nothing <: Any, _ >: Nothing <: Any] >: Nothing <: Any ]() extends Object { F[_$1[_$2],_$3] extension [A[_ >: Nothing <: Any] >: Nothing <: Any, C >: Nothing <: Any]( fa: FoldableK.this.F[A, C] ) def foldLeftK[B >: Nothing <: Any](b: B)(f: B => A ~>#: B): B extension [A[_ >: Nothing <: Any] >: Nothing <: Any, C >: Nothing <: Any]( fa: FoldableK.this.F[A, C] ) def foldMapK[B >: Nothing <: Any](f: perspective.~>#:[A, B])(using B: cats.Monoid[B] ): B = this.foldLeftK[A, C](fa)[B](B.empty)( { def $anonfun(b: B): A ~>#: B = { final class $anon() extends Object(), PolyFunction { def apply[Z >: Nothing <: Any](az: A[Z]): B = cats.syntax.all.catsSyntaxSemigroup[B](b)(B).combine( f.apply[Z](az) ) } new $anon():([Z] => (A[Z]) => B) } closure($anonfun) } ) extension [A >: Nothing <: Any, C >: Nothing <: Any]( fa: FoldableK.this.F[perspective.Const[A], C] ) def toListK: List[A] = this.foldMapK[([_] =>> A), C](fa)[perspective.Const[List[A]][Z]]( perspective.FunctionK.liftConst[A, List[A]]( { def $anonfun(_$5: A): List[A] = List.apply[A]([_$5:A : A]*) closure($anonfun) } ) )(cats.kernel.Semigroup.catsKernelMonoidForList[A]) } error when pickling tree @sourcefile("dotty/perspective/src/main/scala/perspective/FoldableK.scala") trait FoldableK[ F[_[_ >: Nothing <: Any] >: Nothing <: Any, _ >: Nothing <: Any] >: Nothing <: Any ]() extends Object { F[_$1[_$2],_$3] extension [A[_ >: Nothing <: Any] >: Nothing <: Any, C >: Nothing <: Any]( fa: FoldableK.this.F[A, C] ) def foldLeftK[B >: Nothing <: Any](b: B)(f: B => A ~>#: B): B extension [A[_ >: Nothing <: Any] >: Nothing <: Any, C >: Nothing <: Any]( fa: FoldableK.this.F[A, C] ) def foldMapK[B >: Nothing <: Any](f: perspective.~>#:[A, B])(using B: cats.Monoid[B] ): B = this.foldLeftK[A, C](fa)[B](B.empty)( { def $anonfun(b: B): A ~>#: B = { final class $anon() extends Object(), PolyFunction { def apply[Z >: Nothing <: Any](az: A[Z]): B = cats.syntax.all.catsSyntaxSemigroup[B](b)(B).combine( f.apply[Z](az) ) } new $anon():([Z] => (A[Z]) => B) } closure($anonfun) } ) extension [A >: Nothing <: Any, C >: Nothing <: Any]( fa: FoldableK.this.F[perspective.Const[A], C] ) def toListK: List[A] = this.foldMapK[([_] =>> A), C](fa)[perspective.Const[List[A]][Z]]( perspective.FunctionK.liftConst[A, List[A]]( { def $anonfun(_$5: A): List[A] = List.apply[A]([_$5:A : A]*) closure($anonfun) } ) )(cats.kernel.Semigroup.catsKernelMonoidForList[A]) } error when pickling tree package perspective { import cats.* import cats.syntax.package.all.* import scala.language.implicitConversions @sourcefile("dotty/perspective/src/main/scala/perspective/FoldableK.scala") trait FoldableK[ F[_[_ >: Nothing <: Any] >: Nothing <: Any, _ >: Nothing <: Any] >: Nothing <: Any ]() extends Object { F[_$1[_$2],_$3] extension [A[_ >: Nothing <: Any] >: Nothing <: Any, C >: Nothing <: Any]( fa: FoldableK.this.F[A, C] ) def foldLeftK[B >: Nothing <: Any](b: B)(f: B => A ~>#: B): B extension [A[_ >: Nothing <: Any] >: Nothing <: Any, C >: Nothing <: Any]( fa: FoldableK.this.F[A, C] ) def foldMapK[B >: Nothing <: Any](f: perspective.~>#:[A, B])(using B: cats.Monoid[B] ): B = this.foldLeftK[A, C](fa)[B](B.empty)( { def $anonfun(b: B): A ~>#: B = { final class $anon() extends Object(), PolyFunction { def apply[Z >: Nothing <: Any](az: A[Z]): B = cats.syntax.all.catsSyntaxSemigroup[B](b)(B).combine( f.apply[Z](az) ) } new $anon():([Z] => (A[Z]) => B) } closure($anonfun) } ) extension [A >: Nothing <: Any, C >: Nothing <: Any]( fa: FoldableK.this.F[perspective.Const[A], C] ) def toListK: List[A] = this.foldMapK[([_] =>> A), C](fa)[perspective.Const[List[A]][Z]]( perspective.FunctionK.liftConst[A, List[A]]( { def $anonfun(_$5: A): List[A] = List.apply[A]([_$5:A : A]*) closure($anonfun) } ) )(cats.kernel.Semigroup.catsKernelMonoidForList[A]) } } java.lang.AssertionError: assertion failed: orphan parameter reference: TypeParamRef(Z) while compiling /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/ApplicativeK.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/ApplyK.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/Compose.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/Const.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/DistributiveK.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/Finite.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/FoldableK.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/FunctionK.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/FunctorK.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/Id.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/MonadK.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/RepresentableK.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/TraverseK.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/TupleK.scala, /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/src/main/scala/perspective/ValueK.scala [error] ## Exception when compiling 15 sources to /Users/odersky/workspace/dotty/community-build/community-projects/perspective/dotty/perspective/target/scala-3.1.1-RC1-bin-SNAPSHOT/classes [error] java.lang.AssertionError: assertion failed: orphan parameter reference: TypeParamRef(Z) [error] scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8) [error] dotty.tools.dotc.core.tasty.TreePickler.pickleNewType(TreePickler.scala:289) [error] dotty.tools.dotc.core.tasty.TreePickler.pickleType(TreePickler.scala:160) [error] dotty.tools.dotc.core.tasty.TreePickler.pickleNewType$$anonfun$11$$anonfun$1(TreePickler.scala:181) [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:15) [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:10) [error] scala.collection.immutable.List.foreach(List.scala:333) [error] dotty.tools.dotc.core.tasty.TreePickler.pickleNewType$$anonfun$2(TreePickler.scala:181) [error] dotty.tools.dotc.core.tasty.TreePickler.withLength(TreePickler.scala:58) [error] dotty.tools.dotc.core.tasty.TreePickler.pickleNewType(TreePickler.scala:181) [error] dotty.tools.dotc.core.tasty.TreePickler.pickleType(TreePickler.scala:160) [error] dotty.tools.dotc.core.tasty.TreePickler.pickleTree(TreePickler.scala:604) [error] dotty.tools.dotc.core.tasty.TreePickler.pickleTpt(TreePickler.scala:316) [error] dotty.tools.dotc.core.tasty.TreePickler.pickleTree$$anonfun$39$$anonfun$1(TreePickler.scala:435) [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:15) [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:10) ``` This looks like an unrelated problem that was exposed by the fix to `subsumes`. Unfortunately it's too large a project for me to troubleshoot myself. So we'd need a minimization to get to the root of it.
1 parent 41abe98 commit 5793f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class CommunityBuildTestB extends CommunityBuildTest:
123123
@Test def fs2 = projects.fs2.run()
124124
@Test def munit = projects.munit.run()
125125
@Test def munitCatsEffect = projects.munitCatsEffect.run()
126-
@Test def perspective = projects.perspective.run()
126+
// @Test def perspective = projects.perspective.run()
127127
@Test def scalacheckEffect = projects.scalacheckEffect.run()
128128
@Test def scodec = projects.scodec.run()
129129
@Test def scodecBits = projects.scodecBits.run()

0 commit comments

Comments
 (0)