Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

annotation, rangePos and updateDynamic crash the compiler #56

Open
MasseGuillaume opened this issue Oct 14, 2014 · 0 comments
Open

annotation, rangePos and updateDynamic crash the compiler #56

MasseGuillaume opened this issue Oct 14, 2014 · 0 comments

Comments

@MasseGuillaume
Copy link

see https://github.com/MasseGuillaume/paradise-crash/blob/master/core/src/main/scala/Test.scala#L13

 last core/compile:compile
[debug] 
[debug] Initial source changes: 
[debug]     removed:Set()
[debug]     added: Set()
[debug]     modified: Set(/home/masgui/Projects/Kata/sbt-example-paradise/core/src/main/scala/Test.scala)
[debug] Removed products: Set()
[debug] External API changes: API Changes: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated sources: Set(/home/masgui/Projects/Kata/sbt-example-paradise/core/src/main/scala/Test.scala)
[debug] 
[debug] Sources indirectly invalidated by:
[debug]     product: Set()
[debug]     binary dep: Set()
[debug]     external source: Set()
[debug] All initially invalidated sources: Set(/home/masgui/Projects/Kata/sbt-example-paradise/core/src/main/scala/Test.scala)
[debug] Recompiling all 1 sources: invalidated sources (1) exceeded 50.0% of all sources
[info] Compiling 1 Scala source to /home/masgui/Projects/Kata/sbt-example-paradise/core/target/scala-2.11/classes...
[debug] Getting compiler-interface from component compiler for Scala 2.11.2
[debug] Getting compiler-interface from component compiler for Scala 2.11.2
[debug] Running cached compiler 6af796a, interfacing (CompilerInterface) with Scala compiler version 2.11.2
[debug] Calling Scala compiler with arguments  (CompilerInterface):
[debug]     -Yrangepos
[debug]     -unchecked
[debug]     -deprecation
[debug]     -feature
[debug]     -Xplugin:/home/masgui/.ivy2/cache/org.scalamacros/paradise_2.11.2/jars/paradise_2.11.2-2.0.1.jar
[debug]     -bootclasspath
[debug]     /opt/jdk1.8.0_20/jre/lib/resources.jar:/opt/jdk1.8.0_20/jre/lib/rt.jar:/opt/jdk1.8.0_20/jre/lib/sunrsasign.jar:/opt/jdk1.8.0_20/jre/lib/jsse.jar:/opt/jdk1.8.0_20/jre/lib/jce.jar:/opt/jdk1.8.0_20/jre/lib/charsets.jar:/opt/jdk1.8.0_20/jre/lib/jfr.jar:/opt/jdk1.8.0_20/jre/classes:/home/masgui/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.2.jar
[debug]     -classpath
[debug]     /home/masgui/Projects/Kata/sbt-example-paradise/core/target/scala-2.11/classes:/home/masgui/Projects/Kata/sbt-example-paradise/macros/target/scala-2.11/classes:/home/masgui/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.2.jar
[info] ======= Position error
[info] Synthetic tree [1364] contains nonsynthetic tree [1363]
[info] == Enclosing tree [1364] of type Template at [343]Test.scala
[info] 
[info] [L  12        ] #1364   [343]           Template   // Template(value <local V>)
[info] 
[info] == Enclosed tree [1363] of type Apply at [362:375]Test.scala
[info] 
[info] [L  13        ] #1363   [362:375]       Apply      // Proxy.test = 1
[info] 
[info] 
[info] While validating #1411
[info] [L   1        ] #1411   [0:427]         PackageDef // import scala.language.dynamics
[info] 
[info] Children:
[info]   [L   1 P# 1411] #155    [0:0]           Ident      // i
[info]   [L   1 P# 1411] #25     [0:30]          Import     // scala.language.dynamics
[info]   [L   3 P# 1411] #1328   [32:340]        ModuleDef  // Proxy extends Dynamic {
[info]   [L  12 P# 1411] #1365   [343]           ModuleDef  // term V
[info]   [L  17 P# 1411] #1410   [381:427]       ModuleDef  // Test extends App {
[info] =======
scala.reflect.internal.Positions$ValidateException: Synthetic tree [1364] contains nonsynthetic tree [1363]
    at scala.reflect.internal.Positions$class.positionError$1(Positions.scala:102)
    at scala.reflect.internal.Positions$class.validate$1(Positions.scala:119)
    at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
    at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
    at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
    at scala.reflect.internal.Positions$class.validatePositions(Positions.scala:147)
    at scala.reflect.internal.SymbolTable.validatePositions(SymbolTable.scala:16)
    at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:103)
    at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:410)
    at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:94)
    at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:93)
    at scala.collection.Iterator$class.foreach(Iterator.scala:743)
    at scala.collection.AbstractIterator.foreach(Iterator.scala:1177)
    at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:93)
    at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1557)
    at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1542)
    at scala.tools.nsc.Global$Run.compileSources(Global.scala:1537)
    at scala.tools.nsc.Global$Run.compile(Global.scala:1644)
    at xsbt.CachedCompiler0.run(CompilerInterface.scala:123)
    at xsbt.CachedCompiler0.run(CompilerInterface.scala:99)
    at xsbt.CompilerInterface.run(CompilerInterface.scala:27)
    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:483)
    at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:102)
    at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:48)
    at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
    at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:99)
    at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:99)
    at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:99)
    at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:166)
    at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:98)
    at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:143)
    at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:87)
    at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:39)
    at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:37)
    at sbt.inc.IncrementalCommon.cycle(Incremental.scala:99)
    at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:38)
    at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:37)
    at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:65)
    at sbt.inc.Incremental$.compile(Incremental.scala:37)
    at sbt.inc.IncrementalCompile$.apply(Compile.scala:27)
    at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:157)
    at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:71)
    at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:46)
    at sbt.Compiler$.apply(Compiler.scala:75)
    at sbt.Compiler$.apply(Compiler.scala:66)
    at sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:770)
    at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:762)
    at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:762)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
    at sbt.std.Transform$$anon$4.work(System.scala:64)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
    at sbt.Execute.work(Execute.scala:244)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
    at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
    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)
[error] (core/compile:compile) scala.reflect.internal.Positions$ValidateException: Synthetic tree [1364] contains nonsynthetic tree [1363]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant