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

error when install YMC and clangd #3987

Closed be4zad closed 2 years ago

be4zad commented 2 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:

Installing YCM and clangd

CMake Error at /usr/share/cmake-3.22/Modules/ExternalProject.cmake:1756 (message): dir '/home/behzad/YouCompleteMe/third_party/ycmd/cpp/absl' does not exist after file(MAKE_DIRECTORY) Call Stack (most recent call first): /usr/share/cmake-3.22/Modules/ExternalProject.cmake:3668 (_ep_set_directories) CMakeLists.txt:23 (ExternalProject_Add)

-- Configuring incomplete, errors occurred! See also "/tmp/ycm_build_6kwz7s8r/_deps/absl-subbuild/CMakeFiles/CMakeOutput.log".

CMake Error at /usr/share/cmake-3.22/Modules/FetchContent.cmake:1075 (message): CMake step for absl failed: 1 Call Stack (most recent call first): /usr/share/cmake-3.22/Modules/FetchContent.cmake:1216:EVAL:2 (__FetchContent_directPopulate) /usr/share/cmake-3.22/Modules/FetchContent.cmake:1216 (cmake_language) CMakeLists.txt:252 (FetchContent_Populate)

-- Configuring incomplete, errors occurred! See also "/tmp/ycm_build_6kwz7s8r/CMakeFiles/CMakeOutput.log".

ERROR: the build failed.

NOTE: it is highly unlikely that this is a bug but rather that this is a problem with the configuration of your system or a missing dependency. Please carefully read CONTRIBUTING.md and if you're sure that it is a bug, please raise an issue on the issue tracker, including the entire output of this script (with --verbose) and the invocation line used to run it.


# Diagnostic data

## Output of `vim --version`

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Nov 09 2021 19:35:34) Included patches: 1-3582 Compiled by Arch Linux Huge version without GUI. Features included (+) or not (-): +acl +file_in_path +mouse_urxvt -tag_any_white +arabic +find_in_path +mouse_xterm +tcl/dyn +autocmd +float +multi_byte +termguicolors +autochdir +folding +multi_lang +terminal -autoservername -footer -mzscheme +terminfo -balloon_eval +fork() +netbeans_intg +termresponse +balloon_eval_term +gettext +num64 +textobjects -browse -hangul_input +packages +textprop ++builtin_terms +iconv +path_extra +timers +byte_offset +insert_expand +perl/dyn +title +channel +ipv6 +persistent_undo -toolbar +cindent +job +popupwin +user_commands -clientserver +jumplist +postscript +vartabs -clipboard +keymap +printer +vertsplit +cmdline_compl +lambda +profile +virtualedit +cmdline_hist +langmap +python/dyn +visual +cmdline_info +libcall +python3/dyn +visualextra +comments +linebreak +quickfix +viminfo +conceal +lispindent +reltime +vreplace +cryptv +listcmds +rightleft +wildignore +cscope +localmap +ruby/dyn +wildmenu +cursorbind +lua/dyn +scrollbind +windows +cursorshape +menu +signs +writebackup +dialog_con +mksession +smartindent -X11 +diff +modify_fname -sodium -xfontset +digraphs +mouse -sound -xim -dnd -mouseshape +spell -xpm -ebcdic +mouse_dec +startuptime -xsmp +emacs_tags +mouse_gpm +statusline -xterm_clipboard +eval -mouse_jsbterm -sun_workshop -xterm_save +ex_extra +mouse_netterm +syntax
+extra_search +mouse_sgr +tag_binary
-farsi -mouse_sysmouse -tag_old_static
system vimrc file: "/etc/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" defaults file: "$VIMRUNTIME/defaults.vim" fall-back for $VIM: "/usr/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.34/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/local/lib -o vim -lm -ltinfo -lelf -lacl -lattr -lgpm -ldl -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.34/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -L/usr/local/lib -L/usr/lib/perl5/5.34/core_perl/CORE -lperl -lpthread -ldl -lm -lcrypt -lutil -lc -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lm


## Output of `YcmDebugInfo`

E492: Not an editor command: YcmDebugInfo


## Output of `YcmDiags`

E492: Not an editor command: YcmDiags


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

3c5a06301ed0f68d798c9df5aafa9a15bff1940f



## OS version, distribution, etc.

> Linux 5.15.5-arch1-1 #1 SMP PREEMPT Thu, 25 Nov 2021 22:09:33 +0000 x86_64 GNU/Linux

[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/
puremourning commented 2 years ago

It wasn’t able to create this directory

file problem creating directory: /home/behzad/YouCompleteMe/third_party/ycmd/cpp/absl

Check your filesystem permissions etc. this is clearly an issue in your environment.

be4zad commented 2 years ago

I changed the permissions but it gives the same error. There is no absl directory or file in /home/behzad/YouCompleteMe/third_party/ycmd/cpp.

puremourning commented 2 years ago

I'm confident that this is a problem with your system. cmake is failing to fetch the content and put it in the appropriate place.

as this is highly unlikely to be a bug, I'm going to close it. If you need further interactive support, reach out on gitter/matrix. It's verry difficult to diagnose these sorts of things via GitHub issues (which are not for technical support)