Discussion:
Scala 2.12.0-RC1 - "found : ClassGenerator.this.global.Name => Int / required: ClassGenerator.this.global.Name => Int"
(too old to reply)
Hanns Holger Rutz
2016-09-08 12:31:17 UTC
Permalink
hi,

I'm trying to build a library against Scala 2.12.0-RC1, but encountering
below compiler crash.
I'm not sure the issue is Scala 2.12.0-RC1 or the scala-refactoring
library that I'm using here
(I build it myself from tag v0.10.0 as there is currently no published
artifact, and also there
I saw this crash when trying to compile the test classes).

Best, ..h.h..


scala.reflect.internal.Types$TypeError: type mismatch;
found : ClassGenerator.this.global.Name => Int
required: ClassGenerator.this.global.Name => Int
at
scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1374)
at
scala.tools.nsc.typechecker.Contexts$ContextReporter.issue(Contexts.scala:1226)
at scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:575)
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueTypeError(ContextErrors.scala:106)
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueNormalTypeError(ContextErrors.scala:99)
at
scala.tools.nsc.typechecker.ContextErrors$TyperContextErrors$TyperErrorGen$.AdaptTypeError(ContextErrors.scala:219)
at
scala.tools.nsc.typechecker.Typers$Typer.adaptMismatchedSkolems$1(Typers.scala:1044)
at scala.tools.nsc.typechecker.Typers$Typer.lastTry$1(Typers.scala:1055)
at
scala.tools.nsc.typechecker.Typers$Typer.adaptExprNotFunMode$1(Typers.scala:1105)
at
scala.tools.nsc.typechecker.Typers$Typer.vanillaAdapt$1(Typers.scala:1151)
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1195)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5514)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
at
scala.tools.nsc.typechecker.Typers$Typer.typedAssign$1(Typers.scala:4321)
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5428)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5570)
at scala.tools.nsc.typechecker.Typers$Typer.typedIf$1(Typers.scala:4338)
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5423)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedArg$1(Typers.scala:3200)
at scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:481)
at
scala.tools.nsc.typechecker.Typers$Typer.typedArgToPoly$1(Typers.scala:3590)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$doTypedApply$33(Typers.scala:3598)
at scala.reflect.internal.util.Collections.map2(Collections.scala:79)
at
scala.tools.nsc.typechecker.Typers$Typer.handlePolymorphicCall$1(Typers.scala:3598)
at scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:3609)
at
scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4647)
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4681)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5447)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at
scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5709)
at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:2270)
at
scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5412)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5463)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5555)
at scala.tools.nsc.typechecker.Typers$Typer.typedPos(Typers.scala:5562)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.typedPos(Fields.scala:511)
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$5(AccessorSynthesis.scala:356)
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$4(AccessorSynthesis.scala:356)
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.expandLazyClassMember(AccessorSynthesis.scala:356)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.superLazy$1(Fields.scala:636)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$fieldsAndAccessors$3(Fields.scala:641)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.fieldsAndAccessors(Fields.scala:639)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$1(Fields.scala:725)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:725)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
at scala.reflect.internal.Trees.itransform(Trees.scala:1408)
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$1(TypingTransformers.scala:40)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
at scala.reflect.api.Trees$Transformer.transformTemplate(Trees.scala:2563)
at scala.reflect.internal.Trees.$anonfun$itransform$4(Trees.scala:1412)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
at scala.reflect.internal.Trees.itransform(Trees.scala:1411)
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:44)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
at scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
at scala.reflect.internal.Trees.itransform(Trees.scala:1430)
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
at scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
at scala.reflect.internal.Trees.itransform(Trees.scala:1430)
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
at scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:140)
at scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30)
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$applyPhase$1(Global.scala:402)
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:395)
at scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1(Global.scala:366)
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1$adapted(Global.scala:366)
at scala.collection.Iterator.foreach(Iterator.scala:932)
at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:366)
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1404)
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1389)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1384)
at scala.tools.nsc.Global$Run.compile(Global.scala:1478)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:116)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:95)
at xsbt.CompilerInterface.run(CompilerInterface.scala:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:50)
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
at
sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)
at
sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:49)
at
sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:72)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:71)
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:99)
at sbt.inc.Incremental$.compile(Incremental.scala:71)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
at sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
at sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
at sbt.Compiler$.compile(Compiler.scala:152)
at sbt.Compiler$.compile(Compiler.scala:138)
at
sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860)
at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851)
at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-internals+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hanns Holger Rutz
2016-09-08 12:38:58 UTC
Permalink
In Scala-Refactoring] this is for class CompilationUnitDependenciesTest:

scala.reflect.internal.Types$TypeError: type mismatch;
found : CompilationUnitDependenciesTest.this.global.Name => Int
required: CompilationUnitDependenciesTest.this.global.Name => Int
at
scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1374)
...

https://github.com/scala-ide/scala-refactoring/blob/ebed6a571ab9c2668a8312326d6f79a82044e9ed/src/test/scala/scala/tools/refactoring/tests/analysis/CompilationUnitDependenciesTest.scala

best, ..h.h..
Post by Hanns Holger Rutz
hi,
I'm trying to build a library against Scala 2.12.0-RC1, but encountering
below compiler crash.
I'm not sure the issue is Scala 2.12.0-RC1 or the scala-refactoring
library that I'm using here
(I build it myself from tag v0.10.0 as there is currently no published
artifact, and also there
I saw this crash when trying to compile the test classes).
Best, ..h.h..
scala.reflect.internal.Types$TypeError: type mismatch;
found : ClassGenerator.this.global.Name => Int
required: ClassGenerator.this.global.Name => Int
at
scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1374)
at
scala.tools.nsc.typechecker.Contexts$ContextReporter.issue(Contexts.scala:1226)
at scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:575)
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueTypeError(ContextErrors.scala:106)
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueNormalTypeError(ContextErrors.scala:99)
at
scala.tools.nsc.typechecker.ContextErrors$TyperContextErrors$TyperErrorGen$.AdaptTypeError(ContextErrors.scala:219)
at
scala.tools.nsc.typechecker.Typers$Typer.adaptMismatchedSkolems$1(Typers.scala:1044)
at scala.tools.nsc.typechecker.Typers$Typer.lastTry$1(Typers.scala:1055)
at
scala.tools.nsc.typechecker.Typers$Typer.adaptExprNotFunMode$1(Typers.scala:1105)
at
scala.tools.nsc.typechecker.Typers$Typer.vanillaAdapt$1(Typers.scala:1151)
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1195)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5514)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
at
scala.tools.nsc.typechecker.Typers$Typer.typedAssign$1(Typers.scala:4321)
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5428)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5570)
at scala.tools.nsc.typechecker.Typers$Typer.typedIf$1(Typers.scala:4338)
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5423)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedArg$1(Typers.scala:3200)
at scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:481)
at
scala.tools.nsc.typechecker.Typers$Typer.typedArgToPoly$1(Typers.scala:3590)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$doTypedApply$33(Typers.scala:3598)
at scala.reflect.internal.util.Collections.map2(Collections.scala:79)
at
scala.tools.nsc.typechecker.Typers$Typer.handlePolymorphicCall$1(Typers.scala:3598)
at scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:3609)
at
scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4647)
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4681)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5447)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at
scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5709)
at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:2270)
at
scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5412)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5463)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5555)
at scala.tools.nsc.typechecker.Typers$Typer.typedPos(Typers.scala:5562)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.typedPos(Fields.scala:511)
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$5(AccessorSynthesis.scala:356)
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$4(AccessorSynthesis.scala:356)
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.expandLazyClassMember(AccessorSynthesis.scala:356)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.superLazy$1(Fields.scala:636)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$fieldsAndAccessors$3(Fields.scala:641)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.fieldsAndAccessors(Fields.scala:639)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$1(Fields.scala:725)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:725)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
at scala.reflect.internal.Trees.itransform(Trees.scala:1408)
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$1(TypingTransformers.scala:40)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
at scala.reflect.api.Trees$Transformer.transformTemplate(Trees.scala:2563)
at scala.reflect.internal.Trees.$anonfun$itransform$4(Trees.scala:1412)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
at scala.reflect.internal.Trees.itransform(Trees.scala:1411)
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:44)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
at scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
at scala.reflect.internal.Trees.itransform(Trees.scala:1430)
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
at scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
at scala.reflect.internal.Trees.itransform(Trees.scala:1430)
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
at scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:140)
at scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30)
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$applyPhase$1(Global.scala:402)
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:395)
at scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1(Global.scala:366)
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1$adapted(Global.scala:366)
at scala.collection.Iterator.foreach(Iterator.scala:932)
at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:366)
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1404)
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1389)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1384)
at scala.tools.nsc.Global$Run.compile(Global.scala:1478)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:116)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:95)
at xsbt.CompilerInterface.run(CompilerInterface.scala:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:50)
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
at
sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)
at
sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:49)
at
sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:72)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:71)
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:99)
at sbt.inc.Incremental$.compile(Incremental.scala:71)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
at sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
at sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
at sbt.Compiler$.compile(Compiler.scala:152)
at sbt.Compiler$.compile(Compiler.scala:138)
at
sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860)
at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851)
at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-internals+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adriaan Moors
2016-09-08 14:27:40 UTC
Permalink
Thanks for the report! That looks like a compiler bug involving a lazy val
as a member of a class/trait/object. Looking into it.

Sadly, this wasn't caught by the community build (perhaps because we don't
run scala-refactoring's test suite there).

cheers
adriaan
Post by Hanns Holger Rutz
scala.reflect.internal.Types$TypeError: type mismatch;
found : CompilationUnitDependenciesTest.this.global.Name => Int
required: CompilationUnitDependenciesTest.this.global.Name => Int
at
scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1374)
...
https://github.com/scala-ide/scala-refactoring/blob/ebed6a571ab9c2668a8312326d6f79a82044e9ed/src/test/scala/scala/tools/refactoring/tests/analysis/CompilationUnitDependenciesTest.scala
best, ..h.h..
Post by Hanns Holger Rutz
hi,
I'm trying to build a library against Scala 2.12.0-RC1, but encountering
below compiler crash.
I'm not sure the issue is Scala 2.12.0-RC1 or the scala-refactoring
library that I'm using here
(I build it myself from tag v0.10.0 as there is currently no published
artifact, and also there
I saw this crash when trying to compile the test classes).
Best, ..h.h..
scala.reflect.internal.Types$TypeError: type mismatch;
found : ClassGenerator.this.global.Name => Int
required: ClassGenerator.this.global.Name => Int
at
scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1374)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Contexts$ContextReporter.issue(Contexts.scala:1226)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:575)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueTypeError(ContextErrors.scala:106)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueNormalTypeError(ContextErrors.scala:99)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$TyperContextErrors$TyperErrorGen$.AdaptTypeError(ContextErrors.scala:219)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adaptMismatchedSkolems$1(Typers.scala:1044)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.lastTry$1(Typers.scala:1055)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adaptExprNotFunMode$1(Typers.scala:1105)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.vanillaAdapt$1(Typers.scala:1151)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1195)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5514)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedAssign$1(Typers.scala:4321)
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5428)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5570)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedIf$1(Typers.scala:4338)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5423)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedArg$1(Typers.scala:3200)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:481)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedArgToPoly$1(Typers.scala:3590)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$doTypedApply$33(Typers.scala:3598)
Post by Hanns Holger Rutz
at
scala.reflect.internal.util.Collections.map2(Collections.scala:79)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.handlePolymorphicCall$1(Typers.scala:3598)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:3609)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4647)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4681)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5447)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5709)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:2270)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5412)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5463)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedPos(Typers.scala:5562)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.typedPos(Fields.scala:511)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$5(AccessorSynthesis.scala:356)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$4(AccessorSynthesis.scala:356)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.expandLazyClassMember(AccessorSynthesis.scala:356)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.superLazy$1(Fields.scala:636)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$fieldsAndAccessors$3(Fields.scala:641)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.fieldsAndAccessors(Fields.scala:639)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$1(Fields.scala:725)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:725)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1408)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$1(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transformTemplate(Trees.scala:2563)
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$4(Trees.scala:1412)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1411)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:44)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1430)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1430)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:140)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$applyPhase$1(Global.scala:402)
Post by Hanns Holger Rutz
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:395)
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1(Global.scala:366)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1$adapted(Global.scala:366)
Post by Hanns Holger Rutz
at scala.collection.Iterator.foreach(Iterator.scala:932)
at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:366)
at
scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1404)
Post by Hanns Holger Rutz
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1389)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1384)
at scala.tools.nsc.Global$Run.compile(Global.scala:1478)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:116)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:95)
at xsbt.CompilerInterface.run(CompilerInterface.scala:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Post by Hanns Holger Rutz
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Post by Hanns Holger Rutz
at java.lang.reflect.Method.invoke(Method.java:498)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
at
sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
Post by Hanns Holger Rutz
at
sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:50)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:49)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)
Post by Hanns Holger Rutz
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
Post by Hanns Holger Rutz
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
Post by Hanns Holger Rutz
at
sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
Post by Hanns Holger Rutz
at
sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
Post by Hanns Holger Rutz
at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:72)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:71)
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:99)
at sbt.inc.Incremental$.compile(Incremental.scala:71)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
at sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
at
sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
Post by Hanns Holger Rutz
at sbt.Compiler$.compile(Compiler.scala:152)
at sbt.Compiler$.compile(Compiler.scala:138)
at
sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860)
Post by Hanns Holger Rutz
at
sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851)
Post by Hanns Holger Rutz
at
sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849)
Post by Hanns Holger Rutz
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at
sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
Post by Hanns Holger Rutz
at sbt.std.Transform$$anon$4.work(System.scala:63)
at
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
Post by Hanns Holger Rutz
at
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
Post by Hanns Holger Rutz
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
Post by Hanns Holger Rutz
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Post by Hanns Holger Rutz
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
Post by Hanns Holger Rutz
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
Post by Hanns Holger Rutz
at java.lang.Thread.run(Thread.java:745)
--
You received this message because you are subscribed to the Google Groups
"scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-internals+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adriaan Moors
2016-09-08 14:59:59 UTC
Permalink
Logged as https://github.com/scala/scala-dev/issues/219
Post by Adriaan Moors
Thanks for the report! That looks like a compiler bug involving a lazy val
as a member of a class/trait/object. Looking into it.
Sadly, this wasn't caught by the community build (perhaps because we don't
run scala-refactoring's test suite there).
cheers
adriaan
Post by Hanns Holger Rutz
scala.reflect.internal.Types$TypeError: type mismatch;
found : CompilationUnitDependenciesTest.this.global.Name => Int
required: CompilationUnitDependenciesTest.this.global.Name => Int
at
scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1374)
...
https://github.com/scala-ide/scala-refactoring/blob/ebed6a571ab9c2668a8312326d6f79a82044e9ed/src/test/scala/scala/tools/refactoring/tests/analysis/CompilationUnitDependenciesTest.scala
best, ..h.h..
Post by Hanns Holger Rutz
hi,
I'm trying to build a library against Scala 2.12.0-RC1, but encountering
below compiler crash.
I'm not sure the issue is Scala 2.12.0-RC1 or the scala-refactoring
library that I'm using here
(I build it myself from tag v0.10.0 as there is currently no published
artifact, and also there
I saw this crash when trying to compile the test classes).
Best, ..h.h..
scala.reflect.internal.Types$TypeError: type mismatch;
found : ClassGenerator.this.global.Name => Int
required: ClassGenerator.this.global.Name => Int
at
scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1374)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Contexts$ContextReporter.issue(Contexts.scala:1226)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:575)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueTypeError(ContextErrors.scala:106)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueNormalTypeError(ContextErrors.scala:99)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$TyperContextErrors$TyperErrorGen$.AdaptTypeError(ContextErrors.scala:219)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adaptMismatchedSkolems$1(Typers.scala:1044)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.lastTry$1(Typers.scala:1055)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adaptExprNotFunMode$1(Typers.scala:1105)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.vanillaAdapt$1(Typers.scala:1151)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1195)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5514)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedAssign$1(Typers.scala:4321)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5428)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5570)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedIf$1(Typers.scala:4338)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5423)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedArg$1(Typers.scala:3200)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:481)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedArgToPoly$1(Typers.scala:3590)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$doTypedApply$33(Typers.scala:3598)
Post by Hanns Holger Rutz
at
scala.reflect.internal.util.Collections.map2(Collections.scala:79)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.handlePolymorphicCall$1(Typers.scala:3598)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:3609)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4647)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4681)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5447)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5709)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:2270)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5412)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5463)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedPos(Typers.scala:5562)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.typedPos(Fields.scala:511)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$5(AccessorSynthesis.scala:356)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$4(AccessorSynthesis.scala:356)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.expandLazyClassMember(AccessorSynthesis.scala:356)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.superLazy$1(Fields.scala:636)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$fieldsAndAccessors$3(Fields.scala:641)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.fieldsAndAccessors(Fields.scala:639)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$1(Fields.scala:725)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:725)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1408)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$1(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transformTemplate(Trees.scala:2563)
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$4(Trees.scala:1412)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1411)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:44)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1430)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1430)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:140)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$applyPhase$1(Global.scala:402)
Post by Hanns Holger Rutz
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:395)
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1(Global.scala:366)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1$adapted(Global.scala:366)
Post by Hanns Holger Rutz
at scala.collection.Iterator.foreach(Iterator.scala:932)
at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:366)
at
scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1404)
Post by Hanns Holger Rutz
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1389)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1384)
at scala.tools.nsc.Global$Run.compile(Global.scala:1478)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:116)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:95)
at xsbt.CompilerInterface.run(CompilerInterface.scala:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Post by Hanns Holger Rutz
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Post by Hanns Holger Rutz
at java.lang.reflect.Method.invoke(Method.java:498)
at
sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
Post by Hanns Holger Rutz
at
sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
Post by Hanns Holger Rutz
at
sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:50)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:49)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)
Post by Hanns Holger Rutz
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
Post by Hanns Holger Rutz
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
Post by Hanns Holger Rutz
at
sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
Post by Hanns Holger Rutz
at
sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
Post by Hanns Holger Rutz
at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:72)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:71)
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:99)
at sbt.inc.Incremental$.compile(Incremental.scala:71)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
at sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
at
sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
Post by Hanns Holger Rutz
at sbt.Compiler$.compile(Compiler.scala:152)
at sbt.Compiler$.compile(Compiler.scala:138)
at
sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860)
Post by Hanns Holger Rutz
at
sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851)
Post by Hanns Holger Rutz
at
sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849)
Post by Hanns Holger Rutz
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at
sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
Post by Hanns Holger Rutz
at sbt.std.Transform$$anon$4.work(System.scala:63)
at
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
Post by Hanns Holger Rutz
at
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
Post by Hanns Holger Rutz
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
Post by Hanns Holger Rutz
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Post by Hanns Holger Rutz
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
Post by Hanns Holger Rutz
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
Post by Hanns Holger Rutz
at java.lang.Thread.run(Thread.java:745)
--
You received this message because you are subscribed to the Google Groups
"scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-internals+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hanns Holger Rutz
2016-09-08 15:00:38 UTC
Permalink
thanks!
Post by Adriaan Moors
Logged as https://github.com/scala/scala-dev/issues/219
Thanks for the report! That looks like a compiler bug involving a
lazy val as a member of a class/trait/object. Looking into it.
Sadly, this wasn't caught by the community build (perhaps because we
don't run scala-refactoring's test suite there).
cheers
adriaan
In Scala-Refactoring] this is for class
scala.reflect.internal.Types$TypeError: type mismatch;
found : CompilationUnitDependenciesTest.this.global.Name
<http://CompilationUnitDependenciesTest.this.global.Name> => Int
required: CompilationUnitDependenciesTest.this.global.Name
<http://CompilationUnitDependenciesTest.this.global.Name> => Int
at
scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1374)
...
https://github.com/scala-ide/scala-refactoring/blob/ebed6a571ab9c2668a8312326d6f79a82044e9ed/src/test/scala/scala/tools/refactoring/tests/analysis/CompilationUnitDependenciesTest.scala
best, ..h.h..
Post by Hanns Holger Rutz
hi,
I'm trying to build a library against Scala 2.12.0-RC1, but
encountering
Post by Hanns Holger Rutz
below compiler crash.
I'm not sure the issue is Scala 2.12.0-RC1 or the
scala-refactoring
Post by Hanns Holger Rutz
library that I'm using here
(I build it myself from tag v0.10.0 as there is currently no
published
Post by Hanns Holger Rutz
artifact, and also there
I saw this crash when trying to compile the test classes).
Best, ..h.h..
scala.reflect.internal.Types$TypeError: type mismatch;
found : ClassGenerator.this.global.Name
<http://ClassGenerator.this.global.Name> => Int
Post by Hanns Holger Rutz
required: ClassGenerator.this.global.Name
<http://ClassGenerator.this.global.Name> => Int
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1374)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Contexts$ContextReporter.issue(Contexts.scala:1226)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:575)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueTypeError(ContextErrors.scala:106)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueNormalTypeError(ContextErrors.scala:99)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$TyperContextErrors$TyperErrorGen$.AdaptTypeError(ContextErrors.scala:219)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adaptMismatchedSkolems$1(Typers.scala:1044)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.lastTry$1(Typers.scala:1055)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adaptExprNotFunMode$1(Typers.scala:1105)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.vanillaAdapt$1(Typers.scala:1151)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1195)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5514)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedAssign$1(Typers.scala:4321)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5428)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5570)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedIf$1(Typers.scala:4338)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5423)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedArg$1(Typers.scala:3200)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:481)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedArgToPoly$1(Typers.scala:3590)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$doTypedApply$33(Typers.scala:3598)
Post by Hanns Holger Rutz
at
scala.reflect.internal.util.Collections.map2(Collections.scala:79)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.handlePolymorphicCall$1(Typers.scala:3598)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:3609)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4647)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4681)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5447)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5709)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:2270)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5412)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5463)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedPos(Typers.scala:5562)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.typedPos(Fields.scala:511)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$5(AccessorSynthesis.scala:356)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$4(AccessorSynthesis.scala:356)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.expandLazyClassMember(AccessorSynthesis.scala:356)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.superLazy$1(Fields.scala:636)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$fieldsAndAccessors$3(Fields.scala:641)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.fieldsAndAccessors(Fields.scala:639)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$1(Fields.scala:725)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:725)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1408)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$1(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transformTemplate(Trees.scala:2563)
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$4(Trees.scala:1412)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1411)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:44)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1430)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at scala.reflect.internal.Trees.itransform(Trees.scala:1430)
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
Post by Hanns Holger Rutz
at
scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:140)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$applyPhase$1(Global.scala:402)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:395)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1(Global.scala:366)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1$adapted(Global.scala:366)
Post by Hanns Holger Rutz
at scala.collection.Iterator.foreach(Iterator.scala:932)
at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:366)
at
scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1404)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$Run.compileUnits(Global.scala:1389)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$Run.compileSources(Global.scala:1384)
Post by Hanns Holger Rutz
at scala.tools.nsc.Global$Run.compile(Global.scala:1478)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:116)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:95)
at xsbt.CompilerInterface.run(CompilerInterface.scala:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
Post by Hanns Holger Rutz
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Post by Hanns Holger Rutz
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Post by Hanns Holger Rutz
at java.lang.reflect.Method.invoke(Method.java:498)
at
sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
Post by Hanns Holger Rutz
at
sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
Post by Hanns Holger Rutz
at
sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:50)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:49)
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)
Post by Hanns Holger Rutz
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
Post by Hanns Holger Rutz
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
Post by Hanns Holger Rutz
at
sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
Post by Hanns Holger Rutz
at
sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
Post by Hanns Holger Rutz
at
sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)
Post by Hanns Holger Rutz
at
sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:72)
Post by Hanns Holger Rutz
at
sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:71)
Post by Hanns Holger Rutz
at
sbt.inc.Incremental$.manageClassfiles(Incremental.scala:99)
Post by Hanns Holger Rutz
at sbt.inc.Incremental$.compile(Incremental.scala:71)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
at
sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
Post by Hanns Holger Rutz
at
sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
Post by Hanns Holger Rutz
at sbt.Compiler$.compile(Compiler.scala:152)
at sbt.Compiler$.compile(Compiler.scala:138)
at
sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860)
Post by Hanns Holger Rutz
at
sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851)
Post by Hanns Holger Rutz
at
sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849)
Post by Hanns Holger Rutz
at
scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
Post by Hanns Holger Rutz
at
sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
Post by Hanns Holger Rutz
at sbt.std.Transform$$anon$4.work(System.scala:63)
at
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
Post by Hanns Holger Rutz
at
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
Post by Hanns Holger Rutz
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
Post by Hanns Holger Rutz
at
sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
Post by Hanns Holger Rutz
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Post by Hanns Holger Rutz
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
Post by Hanns Holger Rutz
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
Post by Hanns Holger Rutz
at java.lang.Thread.run(Thread.java:745)
--
You received this message because you are subscribed to the
Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-internals+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adriaan Moors
2016-09-08 16:36:04 UTC
Permalink
With https://github.com/scala/scala/pull/5388, the compiler no longer
crashes on scala-refactoring's test suite for me.

Once the publish-core job succeeds (in 5 min hopefully), you can try it
yourself with:

resolvers += "pr" at "
https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/"
scalaVersion := "2.12.0-4d67c39-SNAPSHOT"
Post by Hanns Holger Rutz
thanks!
Post by Adriaan Moors
Logged as https://github.com/scala/scala-dev/issues/219
Thanks for the report! That looks like a compiler bug involving a
lazy val as a member of a class/trait/object. Looking into it.
Sadly, this wasn't caught by the community build (perhaps because we
don't run scala-refactoring's test suite there).
cheers
adriaan
In Scala-Refactoring] this is for class
scala.reflect.internal.Types$TypeError: type mismatch;
found : CompilationUnitDependenciesTest.this.global.Name
<http://CompilationUnitDependenciesTest.this.global.Name> => Int
required: CompilationUnitDependenciesTest.this.global.Name
<http://CompilationUnitDependenciesTest.this.global.Name> => Int
at
scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1374)
Post by Adriaan Moors
...
https://github.com/scala-ide/scala-refactoring/blob/ebed6a571ab9c2668a8312326d6f79a82044e9ed/src/test/scala/scala/tools/refactoring/tests/analysis/CompilationUnitDependenciesTest.scala
Post by Adriaan Moors
best, ..h.h..
Post by Hanns Holger Rutz
hi,
I'm trying to build a library against Scala 2.12.0-RC1, but
encountering
Post by Hanns Holger Rutz
below compiler crash.
I'm not sure the issue is Scala 2.12.0-RC1 or the
scala-refactoring
Post by Hanns Holger Rutz
library that I'm using here
(I build it myself from tag v0.10.0 as there is currently no
published
Post by Hanns Holger Rutz
artifact, and also there
I saw this crash when trying to compile the test classes).
Best, ..h.h..
scala.reflect.internal.Types$TypeError: type mismatch;
found : ClassGenerator.this.global.Name
<http://ClassGenerator.this.global.Name> => Int
Post by Hanns Holger Rutz
required: ClassGenerator.this.global.Name
<http://ClassGenerator.this.global.Name> => Int
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Contexts$ThrowingReporter.handleError(Contexts.scala:1374)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Contexts$ContextReporter.issue(Contexts.scala:1226)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:575)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueTypeError(ContextErrors.scala:106)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueNormalTypeError(ContextErrors.scala:99)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.ContextErrors$TyperContextErrors$TyperErrorGen$.AdaptTypeError(ContextErrors.scala:219)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adaptMismatchedSkolems$1(Typers.scala:1044)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.lastTry$1(Typers.scala:1055)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adaptExprNotFunMode$1(Typers.scala:1105)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.vanillaAdapt$1(Typers.scala:1151)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1195)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5514)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedAssign$1(Typers.scala:4321)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5428)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5570)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedIf$1(Typers.scala:4338)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5423)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedArg$1(Typers.scala:3200)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:481)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedArgToPoly$1(Typers.scala:3590)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$doTypedApply$33(Typers.scala:3598)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.util.Collections.map2(Collections.scala:79)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.handlePolymorphicCall$1(Typers.scala:3598)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:3609)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4647)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4681)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5447)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5559)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3058)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$8(Typers.scala:3187)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3187)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2439)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$91(Typers.scala:5422)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:490)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:490)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5457)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5464)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5709)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:2270)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5412)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5463)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5500)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5530)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5474)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5478)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.typechecker.Typers$Typer.typedPos(Typers.scala:5562)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.typedPos(Fields.scala:511)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$5(AccessorSynthesis.scala:356)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.$anonfun$expandLazyClassMember$4(AccessorSynthesis.scala:356)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.AccessorSynthesis$CheckedAccessorTreeSynthesis$SynthLazyAccessorsIn.expandLazyClassMember(AccessorSynthesis.scala:356)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.superLazy$1(Fields.scala:636)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$fieldsAndAccessors$3(Fields.scala:641)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.fieldsAndAccessors(Fields.scala:639)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$1(Fields.scala:725)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:725)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.itransform(Trees.scala:1408)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$1(TypingTransformers.scala:40)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transformTemplate(Trees.scala:2563)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$4(Trees.scala:1412)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.itransform(Trees.scala:1411)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:44)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.itransform(Trees.scala:1430)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.$anonfun$transformStats$3(Fields.scala:732)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:732)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transformStats(Fields.scala:510)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.$anonfun$itransform$7(Trees.scala:1430)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:25)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.Trees.itransform(Trees.scala:1430)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555)
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.super$transform(TypingTransformers.scala:40)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$2(TypingTransformers.scala:42)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:30)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:25)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:710)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Fields$FieldsTransformer.transform(Fields.scala:510)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:140)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$applyPhase$1(Global.scala:402)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:395)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1(Global.scala:366)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1$adapted(Global.scala:366)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at scala.collection.Iterator.foreach(Iterator.scala:932)
at
scala.tools.nsc.Global$GlobalPhase.run(Global.scala:366)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1404)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$Run.compileUnits(Global.scala:1389)
Post by Hanns Holger Rutz
at
scala.tools.nsc.Global$Run.compileSources(Global.scala:1384)
Post by Hanns Holger Rutz
at scala.tools.nsc.Global$Run.compile(Global.scala:1478)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:116)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:95)
at xsbt.CompilerInterface.run(CompilerInterface.scala:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
Post by Hanns Holger Rutz
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at java.lang.reflect.Method.invoke(Method.java:498)
at
sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
Post by Hanns Holger Rutz
at
sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:50)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:49)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)
Post by Hanns Holger Rutz
at
sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:72)
Post by Hanns Holger Rutz
at
sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:71)
Post by Hanns Holger Rutz
at
sbt.inc.Incremental$.manageClassfiles(Incremental.scala:99)
Post by Hanns Holger Rutz
at sbt.inc.Incremental$.compile(Incremental.scala:71)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
at
sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
Post by Hanns Holger Rutz
at
sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at sbt.Compiler$.compile(Compiler.scala:152)
at sbt.Compiler$.compile(Compiler.scala:138)
at
sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
Post by Hanns Holger Rutz
at
sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at sbt.std.Transform$$anon$4.work(System.scala:63)
at
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
Post by Hanns Holger Rutz
at
java.util.concurrent.FutureTask.run(FutureTask.java:266)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
java.util.concurrent.FutureTask.run(FutureTask.java:266)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
Post by Adriaan Moors
Post by Hanns Holger Rutz
at java.lang.Thread.run(Thread.java:745)
--
You received this message because you are subscribed to the
Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-internals+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Simon Schäfer
2016-09-08 17:14:40 UTC
Permalink
Post by Adriaan Moors
With https://github.com/scala/scala/pull/5388, the compiler no longer
crashes on scala-refactoring's test suite for me.
Once the publish-core job succeeds (in 5 min hopefully), you can try it
resolvers += "pr" at "
https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/"
scalaVersion := "2.12.0-4d67c39-SNAPSHOT"
Are parser-combinators also published somewhere? scala-refactoring needs it
as a dependency.
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-internals+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adriaan Moors
2016-09-08 17:35:25 UTC
Permalink
Yep:
http://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.12.0-RC1/1.0.4/
Post by Simon Schäfer
Post by Adriaan Moors
With https://github.com/scala/scala/pull/5388, the compiler no longer
crashes on scala-refactoring's test suite for me.
Once the publish-core job succeeds (in 5 min hopefully), you can try it
resolvers += "pr" at "
https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/"
scalaVersion := "2.12.0-4d67c39-SNAPSHOT"
Are parser-combinators also published somewhere? scala-refactoring needs
it as a dependency.
--
You received this message because you are subscribed to the Google Groups
"scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-internals+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Simon Schäfer
2016-09-08 21:12:19 UTC
Permalink
Yep: http://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.12.0-RC1/1.0.4/
Cool, tests can be run now. The only problem is that ~50 of them are failing. I'll try to fix them and then report back if I need help.
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-internals+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Search results for 'Scala 2.12.0-RC1 - "found : ClassGenerator.this.global.Name => Int / required: ClassGenerator.this.global.Name => Int"' (newsgroups and mailing lists)
19
replies
[Lift] Lift in Action - Chapter 2 - sbt update fails
started 2012-01-05 21:11:55 UTC
liftweb@googlegroups.com
113
replies
[PHP-DEV] 5.4 again
started 2011-05-08 23:40:30 UTC
internals@lists.php.net
Loading...