ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.44k stars 2.81k forks source link

About the error for opencv-python #3833

Closed Decodetalkers closed 3 years ago

Decodetalkers commented 3 years ago

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside the brackets) before filing your issue:

Thank 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

Provide a clear description of the problem, including the following key questions: It can help me auto-complete the opencv, but it still reports error

  • What did you do?

Include steps to reproduce here.

https://user-images.githubusercontent.com/60290287/103172393-116f6100-488e-11eb-847f-6a10d1594e01.mov

  1. vim -Nu /path/to/YCM/ycm_vimrc_minimal
  2. :edit test.py
  3. Enter insert mode and type .....

Include description of a minimal test case, including any actual code required to reproduce the issue.

If you made changes to vimrc_ycm_minimal, pase them here:

<contents of ycm_vimrc_minimal>

Include description of the expected behaviour.

Diagnostic data

Output of vim --version

LuaJIT 2.0.5
Compilation: /usr/local/clang-7.0.0/bin/clang -O2 -g -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/home/travis/build/neovim/bot-ci/build/neovim/build/config -I/home/travis/build/neovim/bot-ci/build/neovim/src -I/home/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/home/travis/build/neovim/bot-ci/build/neovim/build/src/nvim/auto -I/home/travis/build/neovim/bot-ci/build/neovim/build/include
Compiled by travis@travis-job-d8a0d531-236d-4d4c-9703-9d6e27bee65f

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/home/travis/build/neovim/bot-ci/build/neovim/build/nvim.AppDir/usr/share/nvim
"

Run :checkhealth for more info

Output of YcmDebugInfo

Printing YouCompleteMe debug information...                                                                                     
-- Resolve completions: Up front
-- Client logfile: /tmp/ycm_e9d2lu9z.log
-- Server Python interpreter: /usr/bin/python3
-- Server Python version: 3.7.3
-- Server has Clang support compiled in: True
-- Clang version: clang version 11.0.0 (git@github.com:ycm-core/llvm ff1d9b2bb8f62c1924db137b544598b8e974ada8)
-- Extra configuration file found and loaded
-- Extra configuration path: /home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd/.ycm_extra_conf.py
-- Python completer debug information:
--   Python interpreter: /usr/bin/python3
--   Python root: /home/cht/PycharmProjects/Spider
--   Python path: ['/home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd', '/home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd/third_p
arty/bottle', '/home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build', '/home/cht/.vim/bundle/YouCompleteMe/third
_party/ycmd/third_party/frozendict', '/home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi', '/home/cht/.vim/
bundle/YouCompleteMe/third_party/ycmd/third_party/jedi_deps/parso', '/home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/re
quests_deps/requests', '/home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/requests_deps/urllib3/src', '/home/cht/.vim/bun
dle/YouCompleteMe/third_party/ycmd/third_party/requests_deps/chardet', '/home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party
/requests_deps/certifi', '/home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/requests_deps/idna', '/home/cht/.vim/bundle/Y
ouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3', '/home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd/thir
d_party/watchdog_deps/pathtools', '/home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/waitress', '/usr/lib/python37.zip',
'/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/cht/.local/lib/python3.7/site-packages', '/usr/local/lib/python3.7/dist-p
ackages', '/usr/lib/python3/dist-packages', '/usr/lib/python3.7/dist-packages', '/home/cht/.vim/bundle/YouCompleteMe/third_party/ycmd/th
ird_party/jedi_deps/numpydoc']
--   Python version: 3.7.3
--   Jedi version: 0.17.2
--   Parso version: 0.7.1
-- Server running at: http://127.0.0.1:54089
-- Server process ID: 8981
-- Server logfiles:
--   /tmp/ycmd_54089_stdout_4nkg73ol.log

Output of YcmDiags

no warning or error

Output of git rev-parse HEAD in YouCompleteMe installation directory

paste output here

Contents of YCM, ycmd and completion engine logfiles

Reproduce the issue with vim -Nu /path/to/YCM/vimrc_ycm_minimal, which enabled debug logging and other useful diagnostics. Include a link to a gist containing all of the log files listed by :YcmToggleLogs.

OS version, distribution, etc.

Include system information here. deepin V20

Output of build/install commands

Include link to a gist containing the invocation and entire output of install.py if reporting an installation issue.

bstaletic commented 3 years ago

YCM does not provide diagnostics for python files. The ones you see are coming from some other plugin.