srusskih / SublimeJEDI

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

Param completion not working #318

Closed johnsturgeon closed 3 years ago

johnsturgeon commented 3 years ago

Expected Behaviour

When I hit a left paren '(' I expect the param completion to pop up, but it does not.

Actual Behaviour

Nothing

Steps to Reproduce

type object.method(

ST3 Version

ST 3 build 3211

ST3 Console Logs

I turned on debug logging and got this:

14:29:16 DEBUG Jedi - Python autocompletion.sublime_jedi.completion:92    _insert_characters() Following text: False
14:29:16 INFO  Jedi - Python autocompletion.sublime_jedi.daemon:141              request() Sending request to daemon for "funcargs"
14:29:16 DEBUG Jedi - Python autocompletion.sublime_jedi.daemon:142              request() ('funcargs', {}, '/Users/johnsturgeon/Code/footballpool/footballpool/bin/tgfp_update_scores.py', 28, 28)
14:29:16 DEBUG Jedi - Python autocompletion.sublime_jedi.facade:44  get_function_parameters() Parameter: (<class 'jedi.inference.names.AnonymousParamName'>, <_ParameterKind: 'POSITIONAL_OR_KEYWORD'>, '_id', 'param _id=None')
14:29:16 DEBUG Jedi - Python autocompletion.sublime_jedi.facade:44  get_function_parameters() Parameter: (<class 'jedi.inference.names.AnonymousParamName'>, <_ParameterKind: 'POSITIONAL_OR_KEYWORD'>, 'week_no', 'param week_no=None')
14:29:16 DEBUG Jedi - Python autocompletion.sublime_jedi.facade:44  get_function_parameters() Parameter: (<class 'jedi.inference.names.AnonymousParamName'>, <_ParameterKind: 'POSITIONAL_OR_KEYWORD'>, 'season', 'param season=None')
14:29:16 DEBUG Jedi - Python autocompletion.sublime_jedi.facade:44  get_function_parameters() Parameter: (<class 'jedi.inference.names.AnonymousParamName'>, <_ParameterKind: 'POSITIONAL_OR_KEYWORD'>, 'player_id', 'param player_id=None')
14:29:16 DEBUG Jedi - Python autocompletion.sublime_jedi.daemon:155              request() Answer: 

Which tells me that the parameters are being found / and parsed, but there is just no UI

johnsturgeon commented 3 years ago

For the record, I think I figured it out. I needed to restart Sublime Text to make the setting "auto_complete_function_params": "required" take effect.