Tuesday, January 1, 2013

PyDev autocomplete for PySide on Python 3

I have a project which uses PySide with Python 3. Unfortunately for some reason PyDev doesn't recognize PySide libs, marking the imports as errors, autocomplete not working.

Looking for a solution I stumbled on this question which helped me to find an interesting feature in Pydev: Forced Builtins
The Forced builtin libs are the libraries that are built-in the interpreter, such as _builtin_, sha, etc or libraries that should forcefully analyzed through a shell (i.e.: to analyze modules in this list, PyDev will spawn a shell and do a dir() on the module to get the available tokens for completions and code-analysis)
After the following changes i have no more errors and autocomplete works fine:

No comments:

Post a Comment