Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

pydev

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.

like image 440
dfrankow Avatar asked Mar 19 '10 14:03

dfrankow


People also ask

How do you get PyDev?

Go to Eclipse Marketplace. Help > Eclipse Marketplace and search for PyDev in the searchbar. On the next screen, select the PyDev and PyDev Mylyn Integration checkbox. Click Finish.

How do I get out of PyDev eclipse?

pydev* from eclipse/plugins and eclipse/features or you can go to help > software updates > manage configuration, choose the PyDev plugin and disable it (after that, to completely remove it, you must restart Eclipse and only then select it for uninstall).

Does PyDev support python3?

PyDev requires Java 11 and Eclipse 4.6 (Neon) in order to run and only supports Python 2.6 onwards. I.e.: Python (2.6 or newer) Jython (2.6 or newer)


1 Answers

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

like image 162
tlow Avatar answered Sep 22 '22 15:09

tlow