How do I get Pydev to recalculate imports (remove red x's)?

pydev

Solution

One way is to go into your PYTHON Path within your project settings and hit apply, this forces a refresh.

Problem

I often create a Pydev (say, Google App Engine) Eclipse project with the wrong PYTHONPATH. It's missing "lib", say. The project is filled with red x's meaning errors. Fine. I update the project PYTHONPATH to what I know will fix the problem, and the problem remains. Now, if I visit (i.e. double-click into the editor) any individual file, Pydev excitedly reparses, and the red x's disappear. So I could get rid of them all by visiting each file! That is terrible. Refreshing or opening and closing the project, even closing and reopening Eclipse do not seem to work. Ideas? I'm using Galileo (build 20100218-1602 of Eclipse) and 1.5.5.2010030420 of Pydev.

Original source