JulianEberius/SublimeRope — Issue #16: Bug: Import Assist for modules out site the project root don't work. 
Author: gfxcomplex
Created: 2012-02-26 20:17:20+00:00
State: open

The Import Assist only imports modules that are with in the sublime's project root, but for modules outside the root path of the project ("even the ones that are seen in the python path") this does not work.

For example I have been trying to import assist the django.contrib.auth.models.User class.

I can type in "from django." and code completion will show all the modules seen in the python path which in short I can introspect paths with ease if I want to write out all my imports manually. Thus so it will show User (global class) when writing my import manually but this is the only time SublimeRope sees any of the django modules/classes etc... Also once I have imported the User Class then I will get a User (import class) code completion option but still that's only I have already imported that class.

What I'm looking for is that User (global class) is shown as a code completion option before I even import it and when selected as an option in the code completion that it then imports the class. Many other IDE's preforms in this way such as eclipse

Even then when I type User the select Import Assist I would expect that django.contrib.auth.models.User is shown as a option since its in the python path.

As it is now I am forced to do all my import manually for all modules outside the root of the project even though the modules are seen in the python path.