davidhalter / jedi-vim

Using the jedi autocompletion library for VIM.
MIT License
5.28k stars 370 forks source link

auto-competion item become half when the function paramenter hide a of of definition of that item #923

Closed evan0greenup closed 3 years ago

evan0greenup commented 5 years ago

Issue

Steps to reproduce

Expected

func=lamda x: x*3

hello_today_and_tomorrow="hello"
#* |   (x)   |
func(hello_today_and_tomorrow)
                           |  hello_today_and_tomorrow  |

Actual

func=lambda x:x*3

hel#*|  (x)  | ...
func(hel
#*     | hel  |

NOTE: the area commented by #* is ui component.

Output of “:verbose JediDebugInfo”

#### Jedi-vim debug information
Using Python version: 3
 - sys.version: `3.7.2 (default, Jan 10 2019, 23:51:51), [GCC 8.2.1 20181127]`
 - site module: `/usr/lib/python3.7/site.py`
Jedi path: `/usr/lib/python3.7/site-packages/jedi/__init__.py`
 - version: 0.13.3
 - sys_path:
Error detected while processing function jedi#debug_info:
line   28:
Traceback (most recent call last):
  File "/usr/share/vim/vimfiles/pythonx/jedi_vim_debug.py", line 37, in display_debug_info
    sys_path = script_evaluator.project.sys_path
AttributeError: 'Project' object has no attribute 'sys_path'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/share/vim/vimfiles/pythonx/jedi_vim_debug.py", line 39, in display_debug_info
    sys_path = script_evaluator.sys_path
AttributeError: 'Evaluator' object has no attribute 'sys_path'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/share/vim/vimfiles/pythonx/jedi_vim_debug.py", line 44, in display_debug_info
    "{0!r})".format(e))
  File "/usr/share/vim/vimfiles/pythonx/jedi_vim_debug.py", line 8, in echo
    vim.command('echo {0}'.format(msg))
vim.error: Vim(echo):E117: Unknown function: AttributeError
E171: Missing :endif
davidhalter commented 5 years ago

Please fill out the form to have enough information to debug your issue. You have intentionally ignored it, by deleting the form when creating a new issue. I'm just pointing it out, because the form is there for a reason. It saves us a lot of time and questions if we have it.

We are happy to reopen this issue if you add the necessary information.

evan0greenup commented 5 years ago

@davidhalter , the debug info added, hope to reopen the issue.

davidhalter commented 5 years ago

Can you upgrade jedi-vim to latest master? I feel like at least the debugging info would work then.