Closed andrejlevkovitch closed 5 years ago
I couldn't reproduce this with python 3.7.
Your cursor wasn't in a python file when you executed :YcmDebugInfo
, so please post that again.
Your cursor wasn't in a python file when you executed :YcmDebugInfo, so please post that again.
Yes it is my mistake, thank. I already fix that.
I couldn't reproduce this with python 3.7.
Autocomplete for cv2
working on you machine? I also uses python3.7
, but it not work for cv2
module (but work with others, like numpy
).
Autocomplete for cv2 working on you machine? I also uses python3.7, but it not work for cv2 module (but work with others, like numpy).
Yes, for example, cv2.wkex
leaves only waitKeyEx
as the suggestion.
Here's my debug info, I think there might be something wrong with your python path:
Printing YouCompleteMe debug information...
-- Client logfile: /tmp/ycm_6tno5vtd.log
-- Server Python interpreter: /usr/sbin/python
-- Server Python version: 3.7.3
-- Server has Clang support compiled in: False
-- Clang version: None
-- Extra configuration file found and loaded
-- Extra configuration path: /home/bstaletic/.ycm_extra_conf.py
-- Python completer debug information:
-- Python interpreter: /usr/sbin/python
-- Python path: ['/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/bstaletic/.local/lib/python3.7/site-packages', '/usr/lib/python3.7/site-packages']
-- Python version: 3.7.3
-- Jedi version: 0.13.3
-- Parso version: 0.3.4
-- Server running at: http://127.0.0.1:59553
-- Server process ID: 19388
-- Server logfiles:
-- /tmp/ycmd_59553_stdout_0bi7rp8h.log
-- /tmp/ycmd_59553_stderr_fokq8af6.log
I think there might be something wrong with your python path
I think it is not. Paths is right, cv2
module is there. What about .ycm_extra_conf.py
? I see you have this, can I look it?
Sure, but there's nothing python related in it.
def Settings( **kwargs ):
return { 'flags': [
'-std=c++17',
'-I/home/bstaletic/Temp/test/whereami/src',
'-Wunused-macros'
] }
This is c++
settings, right?
Right, like I said, nothing python related.
I found how fix problem: need install opencv-python
from pip3
. Previous, I uses cv2
module, compiled and installed with opencv
.
Great. In that case, we can 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
I install
opencv-4.1.0
with python support (python3.7) and use it in some scripts, but autocomplete is wrong for modulecv2
For example:When I set
cv2.
then all possible variants it is:I expect that I see all complition variants for
cv2
likeimshew
,waitKey
,imwrite
and other.Unfortunately, for
cv2
I see some not valid functions. But for other modules, likenumpy
,sys
oros
all works fine.Diagnostic data
Output of
YcmDebugInfo
Contents of YCM, ycmd and completion engine logfiles
OS version, distribution, etc.
Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster
Output of build/install commands