Just updated to the new Eclipse Juno, and along with that pyDev. The problem I believe is when running pyDev it does not parse the entire app directory when the files are local to the project. It is presuming you have done the imports for the file you're working on.
I looked around and gave this a shot. - Get a clean install of web2py and stash it somewhere no where near your actual active web2py structure you're working on. - Go into Eclipse Preferences -> PyDev -> Editor -> Auto Imports - Turn of Do auto import? - Turn off Do auto import or organize imports - Go to Interpretor - Python - Add a new folder to your libraries. Make sure the folder you choose is not the top most folder, but one level down. For example when I unzip I get /web2py/web2py/web2pyfiles. What you want to choose is web2py/web2py/. Anything else I don't get it has trouble finding the right __init__.py files. - With this I get code code completion with every variable: request/response/db/auth etc. Hope this helps! Cheers, Rhys On Wednesday, April 4, 2012 12:54:06 PM UTC+10, Rod Watkins wrote: > > I know this has been asked before. I don't mean to be an annoyance. I've > done the searches are read numerous posts about how to handle this. But the > advice conflicts and I've yet to actually fix the problem. > > What is the best way to handle imports for eclipse to get autocomplete to > work properly (as well as rid eclipse of all the incorrect error messages? > > I rather like having autocomplete functioning since, as a beginner, it > helps me discover functionality that I might otherwise miss (besides saving > some typing). > > Please accept my thanks in advance for any help on this. > > Cordially, > Rod Watkins > --

