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
[error] uncaught exception during compilation: java.lang.IllegalArgumentException
java.lang.IllegalArgumentException:Could not find proxy forvalarr:Array[Int] in List(value arr, method fun$mcI$sp, classBar, package<empty>, package<root>) (currentOwner=methodfun$mIcI$sp )
at scala.tools.nsc.transform.LambdaLift$LambdaLifter.scala$tools$nsc$transform$LambdaLift$LambdaLifter$$searchIn$1(LambdaLift.scala:303)
at scala.tools.nsc.transform.LambdaLift$LambdaLifter$$anonfun$scala$tools$nsc$transform$LambdaLift$LambdaLifter$$searchIn$1$2.apply(LambdaLift.scala:308)
at scala.tools.nsc.transform.LambdaLift$LambdaLifter$$anonfun$scala$tools$nsc$transform$LambdaLift$LambdaLifter$$searchIn$1$2.apply(LambdaLift.scala:308)
at scala.Option.getOrElse(Option.scala:120)
The text was updated successfully, but these errors were encountered:
@non said:
(That last comment would probably be obvious to compiler hackers.)
My current idea about what's going on here is that there's a problem with owners. These debug messages seem to point the way:
[log lambdalift(->constructors)] proxy value x (flags: <triedcooking>) from method arg$mIcI$sp
in classBar (flags: <method> <specialized> <triedcooking>) has logical enclosure method arg$mc
I$sp in classBar (flags: <method> <specialized> <triedcooking>)
[log lambdalift(->constructors)] searching for value x(method arg$mcI$sp) in method arg$mIcI$sp
method arg$mIcI$sp
[log lambdalift(->constructors)] searching for value x(method arg$mcI$sp) in classBarclassBa
r
[log lambdalift(->constructors)] searching for value x(method arg$mcI$sp) in package<empty>pa
ckage <empty>
[log lambdalift(->constructors)] searching for value x(method arg$mcI$sp) in package<root>pac
kage <root>
It looks like the compiler is searching for arg$mcI$sp's "x" inside the wrong method (arg$mIcI$sp).
Here is a code sample in which this exception occurs. I have attached the full exception output.
The exception starts:
The text was updated successfully, but these errors were encountered: