scalacenter / tasty-query

Apache License 2.0
51 stars 11 forks source link

Resolving symbol throws `StackOverflow` #423

Closed adpi2 closed 10 months ago

adpi2 commented 10 months ago

In the classpath of "com.typesafe.akka" %% "akka-stream" % "2.8.5":

  1. Find the class symbol of akka.stream.scaladsl.FlowOps
  2. Resolve the member groupBy[K](maxSubstreams: Int, f: Out => K, allowClosedSubstreamRecreation: Boolean): SubFlow[Out, Mat, Repr, Closed]
  3. Find the inner tree that looks like:
    via(new GroupBy(maxSubstreams, f, allowClosedSubstreamRecreation)).map(_.via(flow)).via
  4. resolve the symbol of this tree
java.lang.StackOverflowError: null
    at tastyquery.Substituters$SubstParamsMap.transform(Substituters.scala:70)
    at tastyquery.TypeMaps$TypeMap.apply(TypeMaps.scala:32)
    at tastyquery.TypeMaps$TypeMap.mapOver(TypeMaps.scala:173)
    at tastyquery.TypeMaps$TypeMap.mapOver(TypeMaps.scala:91)
    at tastyquery.Substituters$SubstParamsMap.transform(Substituters.scala:78)
    at tastyquery.TypeMaps$TypeMap.apply(TypeMaps.scala:32)
    at tastyquery.TypeMaps$TypeMap.$anonfun$1(TypeMaps.scala:74)
    at scala.collection.immutable.List.mapConserve(List.scala:472)
    at tastyquery.TypeMaps$TypeMap.mapOverLambda(TypeMaps.scala:74)
    at tastyquery.TypeMaps$TypeMap.mapOver(TypeMaps.scala:124)
    at tastyquery.TypeMaps$NormalizingTypeMap.mapOver(TypeMaps.scala:209)
    at tastyquery.TypeMaps$TypeMap.mapOver(TypeMaps.scala:90)
    at tastyquery.Substituters$SubstParamsMap.transform(Substituters.scala:78)
    at tastyquery.TypeMaps$TypeMap.apply(TypeMaps.scala:32)
    at tastyquery.TypeMaps$TypeMap.op$proxy3$1(TypeMaps.scala:170)
    at tastyquery.TypeMaps$TypeMap.mapOver(TypeMaps.scala:170)
    at tastyquery.TypeMaps$TypeMap.mapOver(TypeMaps.scala:91)
    at tastyquery.Substituters$SubstParamsMap.transform(Substituters.scala:78)
    at tastyquery.TypeMaps$TypeMap.apply(TypeMaps.scala:32)
    at tastyquery.TypeMaps$TypeMap.mapOver(TypeMaps.scala:139)
    at tastyquery.TypeMaps$NormalizingTypeMap.mapOver(TypeMaps.scala:209)
    at tastyquery.TypeMaps$TypeMap.mapOver(TypeMaps.scala:90)
    at tastyquery.Substituters$SubstParamsMap.transform(Substituters.scala:78)
    at tastyquery.TypeMaps$TypeMap.apply(TypeMaps.scala:32)
    at tastyquery.TypeMaps$TypeMap.mapOver(TypeMaps.scala:139)
    at tastyquery.TypeMaps$NormalizingTypeMap.mapOver(TypeMaps.scala:209)
    at tastyquery.TypeMaps$TypeMap.mapOver(TypeMaps.scala:90)
    at tastyquery.Substituters$SubstParamsMap.transform(Substituters.scala:78)
    at tastyquery.TypeMaps$TypeMap.apply(TypeMaps.scala:32)
    at tastyquery.Substituters$.substParams(Substituters.scala:16)
    at tastyquery.Types$TypeLambdaType.instantiate(Types.scala:1645)
    at tastyquery.Types$TypeLambdaType.instantiate$(Types.scala:1631)
    at tastyquery.Types$TypeLambda.instantiate(Types.scala:1891)
    at tastyquery.Types$Type.appliedTo(Types.scala:563)
    at tastyquery.Types$Type.applyIfParameterized(Types.scala:574)
    at tastyquery.Types$AppliedType.superType(Types.scala:1459)