-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eldoc for Python includes 'self' argument #1066
Comments
I'm not sure what "eldoc" is, but it's not a part of ycmd. Ycmd doesn't echo a function's signature to the command line. What YouCompleteMe does do is open a preview buffer in order to display such information. |
I suspect you need to raise this with emacs-ycmd |
@puremourning That's what I did (see reference two positions above), they told me that they print function signature they get from server, so it might be a fix on server-side. If you deny that, I'll come back to them. |
Alright, this is actually what I've ran into when I tried to hack snippet epansion of function signatures in YCM. What ycmd is doing is:
So ycmd isn't doing any processing of what jedi sends, rather ycmd just repacks the data into its own format. |
And do you think this kind of processing could/should be done on ycmd side or rather client side? Where is it easier and fits better? |
That's an interesting question, because it depends on the use case.
The server has no idea about the intended use case, but parsing a string that contains the full signature and maybe the docs is hard. Instead we should definitely make a better API. |
Closing in favor of #121. |
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:
It feels like it's a bug. 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!
The text was updated successfully, but these errors were encountered: