Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 86058fb7a5790616b81d891954c8c428916624e3 1 parent 013e5eb
Iulian Dragos authored July 11, 2012
4  org.scala-ide.sdt.core/src/scala/tools/eclipse/ScalaProject.scala
@@ -145,9 +145,9 @@ class ScalaProject private (val underlying: IProject) extends ClasspathManagemen
145 145
     }
146 146
 
147 147
   
148  
-  /** The direct dependencies of this project. */
  148
+  /** The direct dependencies of this project. It only returns existing projects. */
149 149
   def directDependencies: Seq[IProject] = 
150  
-    underlying.getReferencedProjects
  150
+    underlying.getReferencedProjects.filter(_.exists)
151 151
 
152 152
   /** All direct and indirect dependencies of this project.
153 153
    * 

0 notes on commit 86058fb

Please sign in to comment.
Something went wrong with that request. Please try again.