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

Cyclic error with Predef.scala on -sourcepath in IDE #8258

Closed
scabug opened this issue Feb 10, 2014 · 2 comments
Closed

Cyclic error with Predef.scala on -sourcepath in IDE #8258

scabug opened this issue Feb 10, 2014 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Feb 10, 2014

Mea culpa.

I removed a special case to avoid the import of Predef._ in Predef.scala.

But the IDE runs into a cycle now:

2013-03-10 08:38:04,690 ERROR [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Error during askOption
scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving object Predef
	at scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply(Symbols.scala:1218)
	at scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply(Symbols.scala:1216)
	at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
	at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
	at scala.reflect.internal.Symbols$Symbol.lock(Symbols.scala:482)
	at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1216)
	at scala.reflect.internal.Symbols$Symbol.tpe(Symbols.scala:1200)
	at scala.reflect.internal.Symbols$Symbol.tpeHK(Symbols.scala:1201)
	at scala.reflect.internal.Types$Type.computeMemberType(Types.scala:784)
	at scala.reflect.internal.Types$Type.memberType(Types.scala:781)
	at scala.reflect.internal.TreeGen.mkAttributedSelect(TreeGen.scala:203)
	at scala.reflect.internal.TreeGen.mkAttributedRef(TreeGen.scala:124)
	at scala.reflect.internal.TreeGen.mkAttributedRef(TreeGen.scala:130)
	at scala.reflect.internal.TreeGen.mkAttributedStableRef(TreeGen.scala:162)
	at scala.tools.nsc.ast.TreeGen.mkWildcardImport(TreeGen.scala:39)
	at scala.tools.nsc.typechecker.Contexts$Context.makeNewImport(Contexts.scala:308)
	at scala.tools.nsc.typechecker.Contexts$class.rootContext(Contexts.scala:69)
	at scala.tools.nsc.Global$$anon$1.rootContext(Global.scala:492)
	at scala.tools.nsc.typechecker.Contexts$class.rootContext(Contexts.scala:64)
	at scala.tools.nsc.Global$$anon$1.rootContext(Global.scala:492)
	at scala.tools.nsc.typechecker.Analyzer$namerFactory$$anon$1.apply(Analyzer.scala:43)
	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:463)
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2$$anonfun$apply$1.apply(Global.scala:1682)
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2$$anonfun$apply$1.apply(Global.scala:1682)
	at scala.reflect.internal.SymbolTable.atPhase(SymbolTable.scala:207)
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2.apply(Global.scala:1682)
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2.apply(Global.scala:1681)
	at scala.collection.Iterator$class.foreach(Iterator.scala:727)
	at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
	at scala.tools.nsc.Global$Run.compileLate(Global.scala:1681)
	at scala.tools.nsc.Global$Run.compileLate(Global.scala:1671)
	at scala.tools.nsc.symtab.SymbolLoaders$SourcefileLoader.doComplete(SymbolLoaders.scala:284)
	at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:187)
	at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1229)
	at scala.reflect.internal.Symbols$Symbol.tpe(Symbols.scala:1200)
	at scala.reflect.internal.Symbols$Symbol.tpeHK(Symbols.scala:1201)
	at scala.reflect.internal.Types$Type.computeMemberType(Types.scala:784)
	at scala.reflect.internal.Types$Type.memberType(Types.scala:781)
	at scala.reflect.internal.TreeGen.mkAttributedSelect(TreeGen.scala:203)
	at scala.reflect.internal.TreeGen.mkAttributedRef(TreeGen.scala:124)
	at scala.reflect.internal.TreeGen.mkAttributedRef(TreeGen.scala:130)
	at scala.reflect.internal.TreeGen.mkAttributedStableRef(TreeGen.scala:162)
	at scala.tools.nsc.ast.TreeGen.mkWildcardImport(TreeGen.scala:39)
	at scala.tools.nsc.typechecker.Contexts$Context.makeNewImport(Contexts.scala:308)
	at scala.tools.nsc.typechecker.Contexts$class.rootContext(Contexts.scala:69)
	at scala.tools.nsc.Global$$anon$1.rootContext(Global.scala:492)
	at scala.tools.nsc.typechecker.Contexts$class.rootContext(Contexts.scala:64)
	at scala.tools.nsc.Global$$anon$1.rootContext(Global.scala:492)
	at scala.tools.nsc.typechecker.Analyzer$namerFactory$$anon$1.apply(Analyzer.scala:43)
	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:463)
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2$$anonfun$apply$1.apply(Global.scala:1682)
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2$$anonfun$apply$1.apply(Global.scala:1682)
	at scala.reflect.internal.SymbolTable.atPhase(SymbolTable.scala:207)
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2.apply(Global.scala:1682)
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2.apply(Global.scala:1681)
	at scala.collection.Iterator$class.foreach(Iterator.scala:727)
	at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
	at scala.tools.nsc.Global$Run.compileLate(Global.scala:1681)
	at scala.tools.nsc.Global$Run.compileLate(Global.scala:1671)
	at scala.tools.nsc.symtab.SymbolLoaders$SourcefileLoader.doComplete(SymbolLoaders.scala:284)
	at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:187)
	at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1229)
	at scala.reflect.internal.Symbols$Symbol.initialize(Symbols.scala:1365)
	at scala.tools.eclipse.javaelements.ScalaJavaMapper$$anonfun$initializeRequiredSymbols$1.apply(ScalaJavaMapper.scala:29)
	at scala.tools.eclipse.javaelements.ScalaJavaMapper$$anonfun$initializeRequiredSymbols$1.apply(ScalaJavaMapper.scala:29)
	at scala.collection.immutable.HashSet$HashSet1.foreach(HashSet.scala:153)
	at scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:306)
	at scala.tools.eclipse.javaelements.ScalaJavaMapper$class.initializeRequiredSymbols(ScalaJavaMapper.scala:29)
	at scala.tools.eclipse.ScalaPresentationCompiler.initializeRequiredSymbols(ScalaPresentationCompiler.scala:36)
	at scala.tools.eclipse.ScalaProject$$anon$1$$anonfun$create$1.apply$mcV$sp(ScalaProject.scala:104)
	at scala.tools.eclipse.ScalaProject$$anon$1$$anonfun$create$1.apply(ScalaProject.scala:104)
	at scala.tools.eclipse.ScalaProject$$anon$1$$anonfun$create$1.apply(ScalaProject.scala:104)
	at scala.tools.nsc.util.InterruptReq.execute(InterruptReq.scala:26)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:340)
	at scala.tools.nsc.interactive.PresentationCompilerThread.run(PresentationCompilerThread.scala:22)
@scabug
Copy link
Author

scabug commented Feb 10, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8258?orig=1
Reporter: @retronym
Affected Versions: 2.11.0-M8

@scabug
Copy link
Author

scabug commented Feb 10, 2014

@retronym said:
scala/scala#3502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants