Browse files

Don't report nonexistent projects in `directDependencies`. The JDT ha…

…s a very annoying habit of

caching dependent projects, and there's no way to clear that cache. I've seen the build fail because it
thought it depends on a nonexistent project. Neither closing, refreshing or restarting Eclipse helped,
so we filter it explicitly here.
  • Loading branch information...
dragos committed Jul 11, 2012
1 parent 013e5eb commit 86058fb7a5790616b81d891954c8c428916624e3
Showing with 2 additions and 2 deletions.
  1. +2 −2 org.scala-ide.sdt.core/src/scala/tools/eclipse/ScalaProject.scala
@@ -145,9 +145,9 @@ class ScalaProject private (val underlying: IProject) extends ClasspathManagemen
- /** The direct dependencies of this project. */
+ /** The direct dependencies of this project. It only returns existing projects. */
def directDependencies: Seq[IProject] =
- underlying.getReferencedProjects
+ underlying.getReferencedProjects.filter(_.exists)
/** All direct and indirect dependencies of this project.

0 comments on commit 86058fb

Please sign in to comment.