ycm-core / YouCompleteMe

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

Configuring incomplete, errors occurred! Error: the build failed. #3914

Closed aziztovbaev closed 3 years ago

aziztovbaev 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:

Include steps to reproduce here.

  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.

Include description of the observed behaviour, including actual output, screenshots, etc.


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

-- The C compiler identification is MSVC 19.29.30038.1 -- The CXX compiler identification is MSVC 19.29.30038.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Python3: C:\Users\theUser\AppData\Local\Programs\Python\Python38\python.exe (found suitable version "3.8.6", required range is "3.6...3.10") found components: Interpreter Development Development.Module Development.Embed -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE
-- Downloading libclang 12.0.0 from https://github.com/ycm-core/llvm/releases/download/12.0.0/libclang-12.0.0-win64.tar.bz2 -- Configuring incomplete, errors occurred! See also "C:/Users/theUser/AppData/Local/Temp/ycm_build_0oeyjobn/CMakeFiles/CMakeOutput.log". See also "C:/Users/theUser/AppData/Local/Temp/ycm_build_0oeyjobn/CMakeFiles/CMakeError.log". Searching Python 3.8 libraries... Found Python library: C:\Users\theUser\AppData\Local\Programs\Python\Python38\libs\python38.lib Found Python headers folder: C:\Users\theUser\AppData\Local\Programs\Python\Python38\Include

CMake Error at ycm/CMakeLists.txt:107 (file): file DOWNLOAD HASH mismatch

 for file: [C:/Users/theUser/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/../clang_archives/libclang-12.0.0-win64.tar.bz2]
   expected hash: [encrypted numbers and letter here.....]
   actual hash: [another enctrypted numbers and letters here...]
         status: [35; "SSL connect error]

CMake error at ycm/CMakeLists.txt:123 (message): Cannot find path to libclang in prebuilt binaries

ERROR: the build failed. Note: it is highly ..... you konw the rest......

# Diagnostic data

## Output of `vim --version`

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec 12 2019 13:19:27) MS-Windows 32-bit console version Compiled by mool@tororo Huge version without GUI. Features included (+) or not (-): +acl +eval +multi_byte -tag_old_static +arabic +ex_extra +multi_lang -tag_any_white +autocmd +extra_search -mzscheme -tcl +autochdir -farsi -netbeans_intg +termguicolors +autoservername +file_in_path +num64 +terminal -balloon_eval +find_in_path +packages -termresponse +balloon_eval_term +float +path_extra +textobjects -browse +folding -perl +textprop ++builtin_terms -footer +persistent_undo -tgetent +byte_offset +gettext/dyn +popupwin +timers +channel -hangul_input -postscript +title +cindent +iconv/dyn +printer -toolbar +clientserver +insert_expand +profile +user_commands +clipboard +job -python +vartabs +cmdline_compl +jumplist -python3 +vertsplit +cmdline_hist +keymap +quickfix +virtualedit +cmdline_info +lambda +reltime +visual +comments +langmap +rightleft +visualextra +conceal +libcall -ruby +viminfo +cryptv +linebreak +scrollbind +vreplace +cscope +lispindent +signs +vtp +cursorbind +listcmds +smartindent +wildignore +cursorshape +localmap +sound +wildmenu +dialog_con -lua +spell +windows +diff +menu +startuptime +writebackup +digraphs +mksession +statusline -xfontset -dnd +modify_fname -sun_workshop -xim -ebcdic +mouse +syntax -xpm_w32 +emacs_tags -mouseshape +tag_binary -xterm_save system vimrc file: "$VIM\vimrc" user vimrc file: "$HOME_vimrc" 2nd user vimrc file: "$HOME\vimfiles\vimrc" 3rd user vimrc file: "$VIM_vimrc" user exrc file: "$HOME_exrc" 2nd user exrc file: "$VIM_exrc" defaults file: "$VIMRUNTIME\defaults.vim" Compilation: cl -c /W3 /nologo -I. -Iproto -DHAVE_PATHDEF -DWIN32 -DFEAT_CSCOPE -DFEAT_TERMINAL -DFEAT_SOUND -DFEAT_JOB_CHANNEL -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 /MP -DHAVE_STDINT_H /Ox /GL -DNDEBUG /arch:IA32 /Zl /MT -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DFEAT_HUGE /Fd.\ObjCi386/ /Zi Linking: link /nologo /opt:ref /LTCG:STATUS oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib comdlg32.lib ole32.lib netapi32.lib uuid.lib /machine:i386 libcmt.lib user32.lib winmm.lib WSock32.lib /PDB:vim.pdb -debug


## Output of `YcmDebugInfo`

Couldn't give the command, sorry


## Output of `YcmDiags`

## Output of `git rev-parse HEAD` in YouCompleteMe installation directory

4df6f35f0c9f9aec21a3f567397496b5dee6acc7


## 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.

## Output of build/install commands

Installations were complete, no errors.


[cont]: https://github.com/ycm-core/YouCompleteMe/blob/master/CONTRIBUTING.md
[code]: https://github.com/ycm-core/YouCompleteMe/blob/master/CODE_OF_CONDUCT.md
[readme]: https://github.com/ycm-core/YouCompleteMe/blob/master/README.md
[faq]: https://github.com/ycm-core/YouCompleteMe/wiki/FAQ
[search]: https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fgithub.com%2Fycm-core%2FYouCompleteMe%2Fissues%20python%20mac
[gist]: https://gist.github.com/
bstaletic commented 3 years ago

You're having trouble downloading from https://github.com/ycm-core/llvm/releases/tag/12.0.0

Specifically, this file: https://github.com/ycm-core/llvm/releases/download/12.0.0/libclang-12.0.0-win64.tar.bz2

Can you download it? If so, can you confirm that its sha256 matches this one: https://github.com/ycm-core/ycmd/blob/master/cpp/ycm/CMakeLists.txt#L43

puremourning commented 3 years ago

CMake Error at ycm/CMakeLists.txt:107 (file): file DOWNLOAD HASH mismatch

for file: [C:/Users/theUser/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/../clang_archives/libclang-12.0.0-win64.tar.bz2] expected hash: [encrypted numbers and letter here.....] actual hash: [another enctrypted numbers and letters here...] status: [35; "SSL connect error]

This is clearly a problem with your environment, either you're behind a firewall which is tampering with the download, or you have connectivity problems.

As Boris says, if you manually can download it and verify it, you can put it in the location listed above and the installer will continue. There's not a lot we can do about flaky, or tampered downloads.