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

File not found errors #40

Open
dragos opened this issue May 22, 2013 · 2 comments
Open

File not found errors #40

dragos opened this issue May 22, 2013 · 2 comments
Labels

Comments

@dragos
Copy link
Member

dragos commented May 22, 2013

I noticed the following names in the Error Log:

  • /org.scala-ide.sdt.core.tests/src/scala/tools/eclipse/refactoring/ui/MoveClassRefactoringConfigurationPage.scala
  • /org.scala-ide.sdt.core.tests/src/tools/eclipse/javaelements/ScalaJavaMapper.scala
  • /org.scala-ide.sdt.debug/src/scala/tools/eclipse/semantichighlighting/SemanticHighlightingReconciliation.scala
  • /org.scala-ide.sdt.core/src/s/src/scala/tools/eclipse/classpath/ClasspathTests.scala
  • /org.scala-ide.play2/src/rc/scala/tools/eclipse/interpreter/InterpreterTabGroup.scala

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
Copy link
Contributor

When does this happen?

@dragos
Copy link
Member Author

dragos commented May 23, 2013

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

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

No branches or pull requests

2 participants