Youcompleteme: Python completion does not show function signature

Created on 30 Jan 2017  路  10Comments  路  Source: ycm-core/YouCompleteMe

I want YCM to show the function signature the same way jedi-vim does. I know that YCM uses jedi-vim for Python, but I'm getting different results:

jedi-vim:

image

YouCompleteMe:

image

Most helpful comment

Hm. My vim don't even show function signatures for python(using default config). Anyway to fix it?

All 10 comments

I know that YCM uses jedi-vim for Python

That is actually not true: YCM (ycmd actually uses JediHTTP which is a simple wrapper around jedi that is the same library that jedi-vim uses. The "show signature" feature comes from jedi-vim.

Duplicate of #234

Hm. My vim don't even show function signatures for python(using default config). Anyway to fix it?

I know this issue is already closed, but I'm having the same issue with a python completion:
image
Has there been some change in python's semantic completion since then. I using python3. I was apple to get the argument information by installing jedi-vim, but I really don't want to have more plugins that I already do.

YCM has never provided argument hints for python. You should however have function signature and docstring in the preview window.

I see, the I guess @fabioperez must have been running some additional module or function.

That's actually a change in jedi behaviour. That's a change we didn't really like, but also were not responsible for.

python needs the signatures hint like jedi-vim.

there're far more cases but I just post two:
simple usage:

import request
requests.get(

this is a very usual case which can work. but YCM has no signature hint nor preview window pop-out.

antoher usage:

with open('a.b', enco

YCM also doesn't help on this situation.

completion help ppl type less?

Check out #3412, it's very usable and needs perhaps a bit of polishing. Merge the PR locally and use it.

thanks.
and python without this makes ppl feel like a typer.

@NewUserHa please carefully search and read the issues/faq and contributing guide before contributing. Please also consider the tone of your contributions.

Was this page helpful?
0 / 5 - 0 ratings