ekk-cb / test

0 stars 0 forks source link

StackOverflow #9

Open ekk-cb opened 3 years ago

ekk-cb commented 3 years ago

Hi, I have a weird behavior using upickle 2.1.

It is reproduceable easily by cloning my demo project https://github.com/mathieuleclaire/scalaTraJSTagsWireRx. It is a client/server application based on scalatra/autowire/upickle. With upickle 1.7, it works fine, but upgrading the upickle version to 2.1 produces this error at compile time: (upgrading autowire to 2.4 does not fix the issue). Thanks

java.lang.StackOverflowError
    at scala.tools.nsc.typechecker.Namers$Namer.typeErrorHandler(Namers.scala:111)
    at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1535)
    at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply$mcV$sp(Namers.scala:778)
    at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply(Namers.scala:777)
    at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply(Namers.scala:777)
    at scala.tools.nsc.typechecker.Namers$Namer.scala$tools$nsc$typechecker$Namers$Namer$$logAndValidate(Namers.scala:1561)
    at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1.apply(Namers.scala:777)
    at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1.apply(Namers.scala:769)
    at scala.tools.nsc.typechecker.Namers$$anon$1.completeImpl(Namers.scala:1676)
    at scala.tools.nsc.typechecker.Namers$LockingTypeCompleter$class.complete(Namers.scala:1684)
    at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1674)
    at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1429)
    at scala.reflect.internal.Symbols$Symbol.initialize(Symbols.scala:1576)
    at scala.tools.nsc.typechecker.Typers$Typer.typedValDefImpl(Typers.scala:1949)
    at scala.tools.nsc.typechecker.Typers$Typer.typedValDef(Typers.scala:1944)
    at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$56.apply(Typers.scala:2939)
    at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$56.apply(Typers.scala:2939)
    at scala.collection.immutable.List.loop$1(List.scala:172)
    at scala.collection.immutable.List.mapConserve(List.scala:188)
    at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedFunction(Typers.scala:2939)
    at scala.tools.nsc.typechecker.Typers$Typer.typedFunction$1(Typers.scala:5193)
    at scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5230)
    at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5262)
    at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5269)
    at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5305)
    at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5332)
    at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5279)
    at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5283)
    at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2364)
    at scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5226)
    at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5262)
    at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5269)
    at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5305)
    at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5332)
    at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5279)
    at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5283)
    at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5375)
    at scala.tools.nsc.typechecker.Typers$Typer.instantiateToMethodType$1(Typers.scala:876)
    at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1168)
    at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1163)
    at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5319)
    at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5332)
    at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5279)
    at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5283)
    at scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:3114)
    at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedArgToPoly$1(Typers.scala:3450)
    at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$70.apply(Typers.scala:3458)
    at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$70.apply(Typers.scala:3458)
    at scala.reflect.internal.util.Collections$class.map2(Collections.scala:79)
    at scala.reflect.internal.SymbolTable.map2(SymbolTable.scala:16)

ID: 11 Original Author: mathieuleclaire

ekk-cb commented 3 years ago

Ah, sounds like you need to import upickle._. Yes, it is not stated anywhere. I will fix it at some point.

Original Author:lihaoyi

ekk-cb commented 3 years ago

Closing because this is already tracked by https://github.com/lihaoyi/upickle/issues/8

Original Author:lihaoyi

ekk-cb commented 3 years ago

Test Close

ekk-cb commented 3 years ago

Reopen