srusskih / SublimeJEDI

awesome Python autocompletion with SublimeText
MIT License
938 stars 109 forks source link

Function doesn't fill all parameters #158

Closed 1st closed 9 years ago

1st commented 9 years ago

Hello.

I have fresh install of SublimeJedi (named Jedi in Sublime Package Control). I added this code to Sublime Text -> Preferences -> Package Settings -> Jedi -> Settings - User

{
    "auto_complete_function_params": "all"
}

But when I create this code I see that only required parameter filled, and all not required parameters isn't present:

def xxx(a, b=1, c=True):
    pass

xxx(a)

Can you please provide me help in this? Because it isn't work as expected.

fawques commented 9 years ago

Happened to me too, but restarting Sublime it worked

1st commented 9 years ago

@fawques I agree with you. After restart Sublime worked as expected. Maybe this plugin should reload settings when we change settings without reloading, like other plugins do. Thanks.

srusskih commented 9 years ago

To allow change that settings on the fly, we have to pass this settings on each completion request. On stop passing this option to daemon at all and work with complation options on the client-side.

169 created for the feature