SublimeJEDI icon indicating copy to clipboard operation
SublimeJEDI copied to clipboard

Autocompletion of parameters of Class instance

Open bitcity opened this issue 10 years ago • 2 comments

My config : Sublime Text 2 + SublimeJEDI + Django 1.6

I've just started using SublimeJEDI with ST2 after finding PyCharm to be very heavy & slow. While declaring database models in Django, when I type the field names, the code completion suggests the name correctly. But when it comes to arguments for the constructor, it doesn't suggest the appropriate entries mentioned here : https://docs.djangoproject.com/en/dev/ref/models/fields/

I've shown an example where I want to declare name = models.CharField(unique=True). As I start typing uni..., I expect it to show the argument unique, but instead it shows some other classes that start with uni..

image

bitcity avatar Feb 05 '14 18:02 bitcity

Looks like Jedi searches parameters only for actual class and does not fetches arguments from the class parents, when *args and **kwargs provided. I shall work with this question

srusskih avatar Feb 17 '14 09:02 srusskih

Great. Thank you for the support.

bitcity avatar Feb 17 '14 11:02 bitcity