abingham / emacs-ycmd

Emacs client for ycmd, the code completion system.
MIT License
384 stars 46 forks source link

eldoc for Python includes 'self' argument #476

Open piojanu opened 6 years ago

piojanu commented 6 years ago

Hi!

I've just started using ycmd and I see that ycmd eldoc for python includes 'self' argument in its print to echo area while hovering over class method. It's unwanted as indication in bold of which argument we are currently typing is shifter to left by one (as you all know, you don't pass self argument explicitly).

You can see it in here:

screen shot 2018-07-16 at 18 21 59

Is it a bug or "expected behaviour"? Can I change it somehow to not to include it? anaconda-mode-eldoc was showing it just fine, but I moved from it as I need something with multi-language support.

Thanks for your time!

abingham commented 6 years ago

I'm fairly sure that we're just showing the information provided us by the ycmd server. You might check with the ycmd project to see what they have to say.

I'll leave this open for now. If they can't/won't do anything about it, then we can consider what to do in the client. It could be they have a configuration parameter we can work with or something.

piojanu commented 6 years ago

Yea, that seems reasonable, I will get in touch with them. Thanks!

EDIT: Issue on ycmd side https://github.com/Valloric/ycmd/issues/1066