maralla / completor.vim

Async completion framework made ease.
MIT License
1.27k stars 63 forks source link

fix signature bug "CallSignature object has no attribute call_name" #241

Closed fx-kirin closed 5 years ago

fx-kirin commented 5 years ago

With jedi, signature doesn't work correctly with latest version because call_name does not set. I just set call_name as None to avoid the bug.

on_signature <CallSignature: arange index=0 params=[start, stop, step, , dtype]>
error 'CallSignature' object has no attribute 'call_name'
(<class 'AttributeError'>, AttributeError("'CallSignature' object has no attribute 'call_name'"), <traceback object at 0x7fd0969deac8>)Traceback (most recent call last):
  File "/home/zenbook/.cache/dein/.cache/.vimrc/.dein/pythonx/completers/python/python_jedi.py", line 129, in run
    ret = processor.process(args)
  File "/home/zenbook/.cache/dein/.cache/.vimrc/.dein/pythonx/completers/python/python_jedi.py", line 63, in process
    return list(func())
  File "/home/zenbook/.cache/dein/.cache/.vimrc/.dein/pythonx/completers/python/python_jedi.py", line 99, in on_signature
    'func': s.call_name,
fx-kirin commented 5 years ago

close because I made a lot of changes.