scala-ide / scala-search

Next Scala Search Engine
6 stars 10 forks source link

File not found errors #40

Open dragos opened 11 years ago

dragos commented 11 years ago

I noticed the following names in the Error Log:

They all seem to be matching the wrong project with the source file, with some string manipulation gone wrong. The stack trace is usually the same:

org.eclipse.core.internal.resources.ResourceException: Resource '/org.scala-ide.play2/src/rc/scala/tools/eclipse/interpreter/InterpreterTabGroup.scala' does not exist.
    at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)
    at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)
    at org.eclipse.core.internal.resources.File.getContents(File.java:287)
    at org.eclipse.jdt.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:1187)
    at org.eclipse.jdt.internal.core.CompilationUnit.getContents(CompilationUnit.java:649)
    at scala.tools.eclipse.javaelements.ScalaSourceFile.getContents(ScalaSourceFile.scala:127)
    at scala.tools.eclipse.InteractiveCompilationUnit$class.sourceFile$default$1(InteractiveCompilationUnit.scala:37)
    at scala.tools.eclipse.javaelements.ScalaSourceFile.sourceFile$default$1(ScalaSourceFile.scala:50)
    at scala.tools.eclipse.ScalaPresentationCompiler$$anon$1.default(ScalaPresentationCompiler.scala:58)
    at scala.tools.eclipse.ScalaPresentationCompiler$$anon$1.default(ScalaPresentationCompiler.scala:56)
    at scala.collection.mutable.HashMap.apply(HashMap.scala:64)
    at scala.tools.eclipse.ScalaPresentationCompiler.withSourceFile(ScalaPresentationCompiler.scala:98)
    at scala.tools.eclipse.ScalaProject$$anonfun$withSourceFile$1.apply(ScalaProject.scala:594)
    at scala.tools.eclipse.ScalaProject$$anonfun$withSourceFile$1.apply(ScalaProject.scala:593)
    at scala.tools.eclipse.ScalaProject$$anonfun$withPresentationCompiler$1.apply(ScalaProject.scala:587)
    at scala.tools.eclipse.ScalaProject$$anonfun$withPresentationCompiler$1.apply(ScalaProject.scala:586)
    at scala.tools.eclipse.util.Cached$class.apply(Cached.scala:41)
    at scala.tools.eclipse.ScalaProject$$anon$1.apply(ScalaProject.scala:95)
    at scala.tools.eclipse.ScalaProject.withPresentationCompiler(ScalaProject.scala:586)
    at scala.tools.eclipse.ScalaProject.withSourceFile(ScalaProject.scala:595)
    at scala.tools.eclipse.InteractiveCompilationUnit$class.withSourceFile(InteractiveCompilationUnit.scala:66)
    at scala.tools.eclipse.javaelements.ScalaSourceFile.withSourceFile(ScalaSourceFile.scala:50)
    at org.scala.tools.eclipse.search.searching.Finder$$anonfun$occurrencesOfEntityAt$2$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$7.apply(Finder.scala:56)
    at org.scala.tools.eclipse.search.searching.Finder$$anonfun$occurrencesOfEntityAt$2$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$7.apply(Finder.scala:48)
    at scala.collection.immutable.List.foreach(List.scala:318)
    at org.scala.tools.eclipse.search.searching.Finder$$anonfun$occurrencesOfEntityAt$2$$anonfun$apply$4$$anonfun$apply$5.apply(Finder.scala:48)
    at org.scala.tools.eclipse.search.searching.Finder$$anonfun$occurrencesOfEntityAt$2$$anonfun$apply$4$$anonfun$apply$5.apply(Finder.scala:43)
    at scala.Option.foreach(Option.scala:236)
    at org.scala.tools.eclipse.search.searching.Finder$$anonfun$occurrencesOfEntityAt$2$$anonfun$apply$4.apply(Finder.scala:43)
    at org.scala.tools.eclipse.search.searching.Finder$$anonfun$occurrencesOfEntityAt$2$$anonfun$apply$4.apply(Finder.scala:42)
    at scala.Option.foreach(Option.scala:236)
    at org.scala.tools.eclipse.search.searching.Finder$$anonfun$occurrencesOfEntityAt$2.apply(Finder.scala:42)
    at org.scala.tools.eclipse.search.searching.Finder$$anonfun$occurrencesOfEntityAt$2.apply(Finder.scala:39)
    at scala.tools.eclipse.ScalaPresentationCompiler.withSourceFile(ScalaPresentationCompiler.scala:98)
    at scala.tools.eclipse.ScalaProject$$anonfun$withSourceFile$1.apply(ScalaProject.scala:594)
    at scala.tools.eclipse.ScalaProject$$anonfun$withSourceFile$1.apply(ScalaProject.scala:593)
    at scala.tools.eclipse.ScalaProject$$anonfun$withPresentationCompiler$1.apply(ScalaProject.scala:587)
    at scala.tools.eclipse.ScalaProject$$anonfun$withPresentationCompiler$1.apply(ScalaProject.scala:586)
    at scala.tools.eclipse.util.Cached$class.apply(Cached.scala:41)
    at scala.tools.eclipse.ScalaProject$$anon$1.apply(ScalaProject.scala:95)
    at scala.tools.eclipse.ScalaProject.withPresentationCompiler(ScalaProject.scala:586)
    at scala.tools.eclipse.ScalaProject.withSourceFile(ScalaProject.scala:595)
    at scala.tools.eclipse.InteractiveCompilationUnit$class.withSourceFile(InteractiveCompilationUnit.scala:66)
    at scala.tools.eclipse.javaelements.ScalaSourceFile.withSourceFile(ScalaSourceFile.scala:50)
    at org.scala.tools.eclipse.search.searching.Finder$class.occurrencesOfEntityAt(Finder.scala:59)
    at org.scala.tools.eclipse.search.SearchPlugin$$anon$1.occurrencesOfEntityAt(SearchPlugin.scala:32)
    at org.scala.tools.eclipse.search.handlers.FindOccurrencesOfMethod$$anonfun$execute$2$$anonfun$apply$3$$anonfun$apply$4$$anon$1.run(FindOccurrencesOfMethod.scala:54)
    at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:91)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
mads-hartmann commented 11 years ago

When does this happen?

dragos commented 11 years ago

I searched for askOption starting from the definition. I don't think I had any other open files.