You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preview shows up fine for normal python classes / functions. But if the classes are imported in __init__.py and used elsewhere, YCM will mark these classes as m instead of c and will not show completion for them.
YCM version
Latest version (9dee2b)
Steps to reproduce:
importtorch.nnasnnimporttorcha=nn.Linear(...) # does't show previewa=torch.functional.argmax(...) # preview shows fine
Also, :YcmCompleter GetDoc command works fine on nn.Linear().
In that case, YCM returns WeakModule as a module because when a symbol is not found, Jedi (the completion engine used by YCM for Python) assumes that it's a module.
While the code is running under Python 2, Jedi still returns WeakModule as a module so you could consider this as a Jedi bug on Python 2. Feel free to report the issue on the Jedi tracker.
Issue Details
Preview shows up fine for normal python classes / functions. But if the classes are imported in
__init__.py
and used elsewhere, YCM will mark these classes asm
instead ofc
and will not show completion for them.YCM version
Latest version (9dee2b)
Steps to reproduce:
Also,
:YcmCompleter GetDoc
command works fine onnn.Linear()
.A simpler reproduction which narrows things down
make a miniproject like this:
in
TestClass.py
:in
__init__.py
:in
foo.py
The text was updated successfully, but these errors were encountered: