JulianEberius / SublimePythonIDE

ST3 only: A rewrite of SublimeRope for ST3, uses the Rope library to add python completions and refactoring to ST3
GNU General Public License v2.0
267 stars 38 forks source link

Does not give suggestions for module paths while importing before the import statement #17

Closed codespresso closed 10 years ago

codespresso commented 11 years ago

I develop using django, and incase of any imports I am not getting any suggestions. Let me elaborate:

"from django.contrib.auth.models import User"

So while writing the above line I only got suggestions for classes in the models. Didnt get any suggestion on modules in django or in the entire path before the import word.

Same is the case with project paths, only contents of the final module are suggested after writing the import word

JulianEberius commented 10 years ago

Hi,

Yes, this is true. The library used at the moment for generating completions (Rope) can not easily cope with Django. If you're interested, I have just commited a new branch called jedi_completions that uses a different library (Jedi) to generate the completions. It seems to work a lot better. If you like, checkout this branch and test it.

Thanks, Julian

JulianEberius commented 10 years ago

This issue will be resolved when the plugin switches to Jedi for completions. This is tracked in issue #51, so I'll close this issue for now. Feel free to checkout the jedi_completions branch, or wait until it is merged.