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

Infinite loop in ContextTrees.locateContextTree #8239

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

Infinite loop in ContextTrees.locateContextTree #8239

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

Comments

@scabug
Copy link

scabug commented Feb 5, 2014

It might be due to type errors in the source I'm looking at, but it seems that locateTree can loop forever.

"Scala Presentation Compiler [org.scala-ide.sdt.core]" daemon prio=5 tid=0x00000001022dd800 nid=0xc40f runnable [0x0000000112bff000]
   java.lang.Thread.State: RUNNABLE
	at scala.tools.nsc.interactive.ContextTrees$class.loop$1(ContextTrees.scala:81)
	at scala.tools.nsc.interactive.ContextTrees$class.locateContextTree(ContextTrees.scala:84)
	at scala.tools.nsc.interactive.Global.locateContextTree(Global.scala:28)
	at scala.tools.nsc.interactive.ContextTrees$class.locateFinestContextTree$1(ContextTrees.scala:48)
	at scala.tools.nsc.interactive.ContextTrees$class.locateContext(ContextTrees.scala:58)
	- locked <0x000000078a481db8> (a scala.tools.eclipse.ScalaPresentationCompiler)
	at scala.tools.nsc.interactive.Global.locateContext(Global.scala:28)
	at scala.tools.nsc.interactive.CompilerControl$class.locateContext(CompilerControl.scala:102)
	at scala.tools.nsc.interactive.Global.locateContext(Global.scala:28)
	at scala.tools.nsc.interactive.CompilerControl$class.doLocateContext(CompilerControl.scala:106)
	at scala.tools.nsc.interactive.Global.doLocateContext(Global.scala:28)
	at scala.tools.eclipse.quickfix.createmethod.CreateMethodProposal$$anonfun$scala$tools$eclipse$quickfix$createmethod$CreateMethodProposal$$typeAtRange$1$$anonfun$apply$1.apply(CreateMethodProposal.scala:33)
	at scala.tools.eclipse.quickfix.createmethod.CreateMethodProposal$$anonfun$scala$tools$eclipse$quickfix$createmethod$CreateMethodProposal$$typeAtRange$1$$anonfun$apply$1.apply(CreateMethodProposal.scala:31)
	at scala.tools.nsc.util.InterruptReq.execute(InterruptReq.scala:26)
	- locked <0x000000075d573608> (a scala.tools.nsc.util.WorkScheduler$$anon$1)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:346)
	at scala.tools.nsc.interactive.PresentationCompilerThread.run(PresentationCompilerThread.scala:22)
@scabug
Copy link
Author

scabug commented Feb 5, 2014

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

@scabug
Copy link
Author

scabug commented Feb 5, 2014

@adriaanm said:
scala/scala#3469

@scabug scabug closed this as completed Feb 6, 2014
@scabug scabug added this to the 2.11.0-RC1 milestone Apr 7, 2017
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