Closed chrishaig14 closed 5 years ago
Thanks for the report. This behavior is due to a Jedi workaround to improve responsiveness when completing modules like tensorflow. I am not a fan of this workaround and expressed my opinion about it in https://github.com/davidhalter/jedi/issues/1116#issuecomment-426285565. Anyway, there is not much we can do except maybe convincing Jedi's author to revert this.
Since this is a Jedi "feature" and not a YCM bug, I'm going to close this.
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:vim --version
.:YcmDebugInfo
.:YcmToggleLogs
command.install.py
(orcmake
/make
/ninja
) including its invocationThank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.
Issue Details
test.py:
main.py:
Should suggest:
Instead, I get "module" and not "class":
I don't get the
__init__
documentation in the scratch window. But it still works OK for any other completion besides the constructor, e.g. if I typet = Test7()
and thent.#<C-Space>
it actually shows 'a'.It works fine with less than 11 imports
Diagnostic data
Output of
vim --version
gist
Output of
YcmDebugInfo
Printing YouCompleteMe debug information... -- Client logfile: /tmp/ycm_MQWL3B.log -- Server Python interpreter: /usr/bin/python3 -- Server Python version: 3.6.6 -- Server has Clang support compiled in: False -- Clang version: None -- No extra configuration file found -- Python completer debug information: -- Python interpreter: /usr/bin/python3 -- Python path: ['/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dyn load', '/home/chris/.local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/dist-packa ges', '/usr/lib/python3/dist-packages'] -- Python version: 3.6.6 -- Jedi version: 0.13.1 -- Parso version: 0.3.1 -- Server running at: http://127.0.0.1:51799 -- Server process ID: 13866 -- Server logfiles: -- /tmp/ycmd_51799_stdout_FSzsak.log -- /tmp/ycmd_51799_stderr_L3i_1G.log
Contents of YCM, ycmd and completion engine logfiles
I triggered completion just before this point
I see nothing relevant in the other logs listed.
OS version, distribution, etc.
Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic