Closed mavericks013 closed 1 year ago
I have gone through this page and performed all actions but still the issue is not resolved.
You'll have to provide more details than that. What actually happened when you manually started ycmd?
Yep and the full output of install.py.
BYW my expectation is that you used the 'full' guide (for some reason), and it failed:
CMake Error at ycm/CMakeLists.txt:350 (message):
Using Clang completer, but no libclang found. Try setting
EXTERNAL_LIBCLANG_PATH or revise your configuration
And you just ignored the error, along with the instruction that you should not use the 'full' guide at all.
use the script and it should be fine. As the page I linked says. Or if not, tell us why.
libclang is also deprecated. Consider using clangd instead. See the docs for how/why.
In case it wasn't obvious we no longer support users using the full installation guide
Here is what I did:
brew install llvm
Also download clangd from https://github.com/clangd/clangd/releases/tag/16.0.2 to this folder on my mac /Users/andy/Downloads/Compressed/clangd_16.0.2/
Added below lines to my .vimrc
" Let clangd fully control code completion
let g:ycm_clangd_uses_ycmd_caching = 0
" Use installed clangd, not YCM-bundled clangd which doesn't get updates.
let g:ycm_clangd_binary_path = '/Users/andy/Downloads/Compressed/clangd_16.0.2/bin'
Here is the output of install.py (Is this what you meant?)
~/.vim/bundle/YouCompleteMe ❯❯❯ ./install.py
Generating ycmd build configuration...OK
Compiling ycmd target: ycm_core...OK
Building regex module...OK
Building watchdog module...OK
And below is the error after running ./install.py
" Use installed clangd, not YCM-bundled clangd which doesn't get updates.
this is nonesense. We literally have a PR open to update to clangd 17.0.1 which was released this week. But whatever, use whatever version of clangd you like.
Please can you teset with the minimal vimrc, as described in CONTRIBUTING.md, and post the full output of the following:
./install.py --verbose
:scriptnames
Please also post logs of your going through the steps in the troubleshooting guide. You say you did them, but we still don't know what happened, or at what point it failed, or why.
Regarding this " Use installed clangd, not YCM-bundled clangd which doesn't get updates.
I just followed what's written on official clangd page (https://clangd.llvm.org/installation)
minimal vimrc run throws below error (screenshot is also attached):
The ycmd server SHUT DOWN (restart with 1 :YcmRestartServer'). Unexpected exit code 1. Type 1 :YcmToggleLogs ycmd_56949_stderr_yr5totr_.log1 to check the logs.
Ran below command
./install.py --verbose
~/.vim/bundle/YouCompleteMe ❯❯❯ ./install.py --verbose master ✱ ◼
Searching Python 3.11 libraries...
Found Python library: /usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/lib/python3.11/config-3.11-darwin/libpython3.11.dylib
Found Python headers folder: /usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python3: /usr/local/opt/python@3.11/bin/python3.11 (found suitable version "3.11.3", minimum required is "3.6") found components: Interpreter Development Development.Module Development.Embed
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Not using libclang for C/C++/ObjC.
-- Using Abseil hash tables
-- Configuring done (9.4s)
-- Generating done (0.6s)
-- Build files have been written to: /private/var/folders/fp/gptg952j3fq0kr3hz8rbgngm0000gn/T/ycm_build_ikahh8nb
[ 0%] Building CXX object absl/absl/base/CMakeFiles/absl_log_severity.dir/log_severity.cc.o
[ 1%] Building CXX object absl/absl/base/CMakeFiles/absl_spinlock_wait.dir/internal/spinlock_wait.cc.o
[ 1%] Building CXX object absl/absl/numeric/CMakeFiles/absl_int128.dir/int128.cc.o
[ 3%] Building CXX object absl/absl/time/CMakeFiles/absl_civil_time.dir/internal/cctz/src/civil_time_detail.cc.o
[ 3%] Building CXX object absl/absl/base/CMakeFiles/absl_exponential_biased.dir/internal/exponential_biased.cc.o
[ 5%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_fixed.cc.o
[ 6%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_format.cc.o
[ 6%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_if.cc.o
[ 6%] Linking CXX static library libabsl_spinlock_wait.a
[ 6%] Built target absl_spinlock_wait
[ 8%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_impl.cc.o
[ 10%] Linking CXX static library libabsl_exponential_biased.a
[ 10%] Built target absl_exponential_biased
[ 10%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_info.cc.o
[ 11%] Linking CXX static library libabsl_log_severity.a
[ 13%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_libc.cc.o
[ 13%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_lookup.cc.o
[ 13%] Built target absl_log_severity
[ 15%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_posix.cc.o
[ 15%] Linking CXX static library libabsl_civil_time.a
[ 15%] Built target absl_civil_time
[ 15%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/zone_info_source.cc.o
[ 16%] Linking CXX static library libabsl_int128.a
[ 16%] Built target absl_int128
[ 18%] Building CXX object absl/absl/base/CMakeFiles/absl_raw_logging_internal.dir/internal/raw_logging.cc.o
[ 18%] Linking CXX static library libabsl_raw_logging_internal.a
[ 18%] Built target absl_raw_logging_internal
[ 20%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/sysinfo.cc.o
[ 20%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/cycleclock.cc.o
[ 20%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/spinlock.cc.o
[ 20%] Building CXX object absl/absl/types/CMakeFiles/absl_bad_optional_access.dir/bad_optional_access.cc.o
[ 20%] Building CXX object absl/absl/types/CMakeFiles/absl_bad_variant_access.dir/bad_variant_access.cc.o
[ 22%] Building CXX object absl/absl/base/CMakeFiles/absl_throw_delegate.dir/internal/throw_delegate.cc.o
[ 23%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/address_is_readable.cc.o
[ 23%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/elf_mem_image.cc.o
[ 25%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/vdso_support.cc.o
[ 27%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/thread_identity.cc.o
[ 27%] Linking CXX static library libabsl_debugging_internal.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libabsl_debugging_internal.a(elf_mem_image.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libabsl_debugging_internal.a(vdso_support.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libabsl_debugging_internal.a(elf_mem_image.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libabsl_debugging_internal.a(vdso_support.cc.o) has no symbols
[ 27%] Built target absl_debugging_internal
[ 28%] Linking CXX static library libabsl_bad_optional_access.a
[ 30%] Building CXX object absl/absl/debugging/CMakeFiles/absl_stacktrace.dir/stacktrace.cc.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libabsl_bad_optional_access.a(bad_optional_access.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libabsl_bad_optional_access.a(bad_optional_access.cc.o) has no symbols
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: libabsl_bad_optional_access.a the table of contents is empty (no object file members in the library define global symbols)
[ 32%] Linking CXX static library libabsl_bad_variant_access.a
[ 32%] Built target absl_bad_optional_access
[ 32%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/unscaledcycleclock.cc.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libabsl_bad_variant_access.a(bad_variant_access.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libabsl_bad_variant_access.a(bad_variant_access.cc.o) has no symbols
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: libabsl_bad_variant_access.a the table of contents is empty (no object file members in the library define global symbols)
[ 32%] Built target absl_bad_variant_access
[ 33%] Linking CXX static library libabsl_time_zone.a
[ 33%] Linking CXX static library libabsl_stacktrace.a
[ 33%] Built target absl_time_zone
[ 33%] Linking CXX static library libabsl_throw_delegate.a
[ 33%] Built target absl_stacktrace
[ 33%] Built target absl_throw_delegate
[ 35%] Linking CXX static library libabsl_base.a
[ 35%] Built target absl_base
[ 35%] Building CXX object absl/absl/hash/CMakeFiles/absl_wyhash.dir/internal/wyhash.cc.o
[ 37%] Building CXX object absl/absl/hash/CMakeFiles/absl_city.dir/internal/city.cc.o
[ 37%] Building CXX object absl/absl/base/CMakeFiles/absl_malloc_internal.dir/internal/low_level_alloc.cc.o
[ 38%] Building CXX object absl/absl/debugging/CMakeFiles/absl_demangle_internal.dir/internal/demangle.cc.o
[ 40%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/escaping.cc.o
[ 40%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/utf8.cc.o
[ 40%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/ostringstream.cc.o
[ 42%] Linking CXX static library libabsl_wyhash.a
[ 42%] Built target absl_wyhash
[ 42%] Linking CXX static library libabsl_city.a
[ 42%] Built target absl_city
[ 44%] Linking CXX static library libabsl_strings_internal.a
[ 44%] Built target absl_strings_internal
[ 44%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/charconv.cc.o
[ 45%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/ascii.cc.o
[ 45%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/charconv_bigint.cc.o
[ 49%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/charconv_parse.cc.o
[ 49%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/escaping.cc.o
[ 49%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/memutil.cc.o
[ 50%] Linking CXX static library libabsl_demangle_internal.a
[ 50%] Built target absl_demangle_internal
[ 52%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/match.cc.o
[ 54%] Linking CXX static library libabsl_malloc_internal.a
[ 54%] Built target absl_malloc_internal
[ 54%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/internal/graphcycles.cc.o
[ 54%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/numbers.cc.o
[ 55%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_cat.cc.o
[ 57%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_replace.cc.o
[ 57%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_split.cc.o
[ 57%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/string_view.cc.o
[ 59%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/substitute.cc.o
[ 61%] Linking CXX static library libabsl_graphcycles_internal.a
[ 61%] Built target absl_graphcycles_internal
[ 62%] Linking CXX static library libabsl_strings.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libabsl_strings.a(string_view.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libabsl_strings.a(string_view.cc.o) has no symbols
[ 62%] Built target absl_strings
[ 62%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/clock.cc.o
[ 62%] Building CXX object absl/absl/debugging/CMakeFiles/absl_symbolize.dir/symbolize.cc.o
[ 66%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/cord.cc.o
[ 66%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/internal/cord_rep_ring.cc.o
[ 66%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/internal/cord_internal.cc.o
[ 66%] Building CXX object absl/absl/hash/CMakeFiles/absl_hash.dir/internal/hash.cc.o
[ 67%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/duration.cc.o
[ 69%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/civil_time.cc.o
[ 71%] Linking CXX static library libabsl_hash.a
[ 71%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/format.cc.o
[ 72%] Linking CXX static library libabsl_symbolize.a
[ 72%] Built target absl_hash
[ 74%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/time.cc.o
[ 74%] Built target absl_symbolize
[ 74%] Linking CXX static library libabsl_time.a
[ 74%] Built target absl_time
[ 74%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/barrier.cc.o
[ 76%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/create_thread_identity.cc.o
[ 76%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/blocking_counter.cc.o
[ 76%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/notification.cc.o
[ 77%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/per_thread_sem.cc.o
[ 81%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/mutex.cc.o
[ 81%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/waiter.cc.o
[ 81%] Linking CXX static library libabsl_cord.a
[ 81%] Built target absl_cord
[ 81%] Linking CXX static library libabsl_synchronization.a
[ 81%] Built target absl_synchronization
[ 83%] Building CXX object absl/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler.cc.o
[ 83%] Building CXX object absl/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler_force_weak_definition.cc.o
[ 84%] Linking CXX static library libabsl_hashtablez_sampler.a
[ 84%] Built target absl_hashtablez_sampler
[ 86%] Building CXX object absl/absl/container/CMakeFiles/absl_raw_hash_set.dir/internal/raw_hash_set.cc.o
[ 86%] Linking CXX static library libabsl_raw_hash_set.a
[ 86%] Built target absl_raw_hash_set
[ 89%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Candidate.cpp.o
[ 89%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierCompleter.cpp.o
[ 89%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Character.cpp.o
[ 89%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CodePoint.cpp.o
[ 89%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierUtils.cpp.o
[ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierDatabase.cpp.o
[ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/PythonSupport.cpp.o
[ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Repository.cpp.o
[ 94%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Result.cpp.o
[ 94%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Utils.cpp.o
[ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Word.cpp.o
[ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/versioning.cpp.o
[ 98%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o
[100%] Linking CXX shared library /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.cpython-311-darwin.so
[100%] Built target ycm_core
running build
running build_py
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
copying regex_3/__init__.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
copying regex_3/regex.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
copying regex_3/_regex_core.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
copying regex_3/test_regex.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
running build_ext
building 'regex._regex' extension
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-11-x86_64-cpython-311
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-11-x86_64-cpython-311/regex_3
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c regex_3/_regex.c -o /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-11-x86_64-cpython-311/regex_3/_regex.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c regex_3/_regex_unicode.c -o /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-11-x86_64-cpython-311/regex_3/_regex_unicode.o
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-11-x86_64-cpython-311/regex_3/_regex.o /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-11-x86_64-cpython-311/regex_3/_regex_unicode.o -o /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex/_regex.cpython-311-darwin.so
running build
running build_py
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
copying src/watchdog/watchmedo.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
copying src/watchdog/version.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
copying src/watchdog/events.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
copying src/watchdog/__init__.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/patterns.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/__init__.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/dirsnapshot.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/delayed_queue.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/platform.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/bricks.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/echo.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/fsevents.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/inotify.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/__init__.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/api.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/inotify_buffer.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/winapi.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/read_directory_changes.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/kqueue.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/inotify_c.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/polling.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/fsevents2.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/tricks
copying src/watchdog/tricks/__init__.py -> /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/tricks
running egg_info
writing src/watchdog.egg-info/PKG-INFO
writing dependency_links to src/watchdog.egg-info/dependency_links.txt
writing entry points to src/watchdog.egg-info/entry_points.txt
writing requirements to src/watchdog.egg-info/requires.txt
writing top-level names to src/watchdog.egg-info/top_level.txt
reading manifest file 'src/watchdog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.h' under directory 'src'
adding license file 'LICENSE'
adding license file 'COPYING'
adding license file 'AUTHORS'
writing manifest file 'src/watchdog.egg-info/SOURCES.txt'
running build_ext
building '_watchdog_fsevents' extension
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-11-x86_64-cpython-311
creating /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-11-x86_64-cpython-311/src
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -DWATCHDOG_VERSION_STRING=\"2.0.1\" -DWATCHDOG_VERSION_MAJOR=2 -DWATCHDOG_VERSION_MINOR=0 -DWATCHDOG_VERSION_BUILD=1 -I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/watchdog_fsevents.c -o /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-11-x86_64-cpython-311/src/watchdog_fsevents.o -std=c99 -pedantic -Wall -Wextra -fPIC -Wno-nullability-completeness -Wno-nullability-extension -Wno-newline-eof -Wno-error=unused-command-line-argument
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-11-x86_64-cpython-311/src/watchdog_fsevents.o -lm -o /Users/andy/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/_watchdog_fsevents.cpython-311-darwin.so -framework CoreFoundation -framework CoreServices
:scriptnames
1: ~/.vimrc
2: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/ftoff.vim
3: ~/.vim/bundle/Vundle.vim/autoload/vundle.vim
4: ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim
5: ~/.vim/plugged/vim-polyglot/filetype.vim
6: ~/.vim/plugged/vim-polyglot/autoload/polyglot/init.vim
7: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/filetype.vim
8: ~/.vim/plugged/vim-polyglot/ftdetect/polyglot.vim
9: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/ftplugin.vim
10: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/indent.vim
11: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/syntax/syntax.vim
12: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/syntax/synload.vim
13: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/syntax/syncolor.vim
14: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/colors/lists/default.vim
15: ~/.vim/plugged/vim-scheakur/colors/scheakur.vim
16: ~/.vim/plugged/auto-pairs/plugin/auto-pairs.vim
17: ~/.vim/plugged/nerdtree/plugin/NERD_tree.vim
18: ~/.vim/plugged/nerdtree/autoload/nerdtree.vim
19: ~/.vim/plugged/nerdtree/lib/nerdtree/path.vim
20: ~/.vim/plugged/nerdtree/lib/nerdtree/menu_controller.vim
21: ~/.vim/plugged/nerdtree/lib/nerdtree/menu_item.vim
22: ~/.vim/plugged/nerdtree/lib/nerdtree/key_map.vim
23: ~/.vim/plugged/nerdtree/lib/nerdtree/bookmark.vim
24: ~/.vim/plugged/nerdtree/lib/nerdtree/tree_file_node.vim
25: ~/.vim/plugged/nerdtree/lib/nerdtree/tree_dir_node.vim
26: ~/.vim/plugged/nerdtree/lib/nerdtree/opener.vim
27: ~/.vim/plugged/nerdtree/lib/nerdtree/creator.vim
28: ~/.vim/plugged/nerdtree/lib/nerdtree/flag_set.vim
29: ~/.vim/plugged/nerdtree/lib/nerdtree/nerdtree.vim
30: ~/.vim/plugged/nerdtree/lib/nerdtree/ui.vim
31: ~/.vim/plugged/nerdtree/lib/nerdtree/event.vim
32: ~/.vim/plugged/nerdtree/lib/nerdtree/notifier.vim
33: ~/.vim/plugged/nerdtree/autoload/nerdtree/ui_glue.vim
34: ~/.vim/plugged/nerdtree/nerdtree_plugin/exec_menuitem.vim
35: ~/.vim/plugged/nerdtree/nerdtree_plugin/fs_menu.vim
36: ~/.vim/plugged/nerdtree/nerdtree_plugin/vcs.vim
37: ~/.vim/plugged/tagbar/plugin/tagbar.vim
38: ~/.vim/plugged/ctrlsf.vim/plugin/ctrlsf.vim
39: ~/.vim/plugged/vim-fswitch/plugin/fswitch.vim
40: ~/.vim/plugged/vim-protodef/plugin/protodef.vim
41: ~/.vim/plugged/YouCompleteMe/plugin/youcompleteme.vim
42: ~/.vim/plugged/vim-polyglot/plugin/polyglot.vim
43: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/macros/matchit.vim
44: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/pack/dist/opt/matchit/plugin/matchit.vim
45: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/getscriptPlugin.vim
46: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/gzip.vim
47: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/logiPat.vim
48: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/manpager.vim
49: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/matchparen.vim
50: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/netrwPlugin.vim
51: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/rrhelper.vim
52: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/spellfile.vim
53: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/tarPlugin.vim
54: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/tohtml.vim
55: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/vimballPlugin.vim
56: /usr/local/Cellar/vim/9.0.1550/share/vim/vim90/plugin/zipPlugin.vim
57: ~/.vim/plugged/ctrlsf.vim/after/plugin/ctrlsf.vim
58: ~/.vim/plugged/YouCompleteMe/autoload/youcompleteme.vim
59: ~/.vim/plugged/YouCompleteMe/autoload/youcompleteme/filetypes.vim
Press ENTER or type command to continue
FYI - I am using fish shell in terminal on my mac, I hope thats not an issue
You have YCM loaded from : 58: ~/.vim/plugged/YouCompleteMe/ But you randinstall.py in : /Users/andy/.vim/bundle/YouCompleteMe
So that's the problem.
This is literally in the troubleshooting instructions: https://github.com/ycm-core/YouCompleteMe/wiki/Troubleshooting-steps-for-ycmd-server-SHUT-DOWN#check-ycm-installation
Its resolved ! Thank you.
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.vim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what I expected to happen and what actually happened.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 tried to install YCM following Full Installation Guide. I installed Vim 9, cmake, llvm via Homebrew. Downloaded libclang via pip install libclang. Successfully performed ./install.py --clang-completer
But whenever I open Vim, it prompted me that The ycmd server SHUT DOWN .
I tried vim -Nu vimrc_ycm_minimal but same issues
Diagnostic data
Output of
vim --version
Printing YouCompleteMe debug information... -- Resolve completions: Up front -- Client logfile: /var/folders/fp/gptg952j3fq0kr3hz8rbgngm0000gn/T/ycm_tkh95ijm.log -- Server errored, no debug info from server -- Server running at: http://127.0.0.1:65015 -- Server process ID: 95317 -- Server logfiles: -- /var/folders/fp/gptg952j3fq0kr3hz8rbgngm0000gn/T/ycmd_65015_stdout_e1m0ec7d.log -- /var/folders/fp/gptg952j3fq0kr3hz8rbgngm0000gn/T/ycmd_65015_stderr_k2ccxj_1.log -- Semantic highlighting supported: True -- Virtual text supported: True -- Popup windows supported: True
Native filetype completion not supported for current file, cannot force recompilation.
d4343e8384ffb25d70a9ebc966bbf1277735567c
2023-09-22 02:12:02,349 - ERROR - <urlopen error [Errno 61] Connection refused> 2023-09-22 02:12:02,454 - ERROR - The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). YCM core library not detected; you need to compile YCM before using it. Follow the instructions in the documentation. 2023-09-22 02:12:07,317 - ERROR - <urlopen error [Errno 61] Connection refused> 2023-09-22 02:12:12,907 - ERROR - <urlopen error [Errno 61] Connection refused>
2023-09-22 02:13:33,473 - ERROR - ycm_core library not detected; you need to compile it by running the build.py script. See the documentation for more details. Traceback (most recent call last): File "/Users/andy/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/utils.py", line 502, in ImportAndCheckCore ycm_core = ImportCore() ^^^^^^^^^^^^ File "/Users/andy/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/utils.py", line 493, in ImportCore import ycm_core as ycm_core ModuleNotFoundError: No module named 'ycm_core'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/andy/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/utils.py", line 505, in ImportAndCheckCore ycm_core = ImportCore() ^^^^^^^^^^^^ File "/Users/andy/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/utils.py", line 493, in ImportCore import ycm_core as ycm_core ModuleNotFoundError: No module named 'ycm_core'
-- Using libclang to provide semantic completion for C/C++/ObjC -- Using Abseil hash tables CMake Error at ycm/CMakeLists.txt:350 (message): Using Clang completer, but no libclang found. Try setting EXTERNAL_LIBCLANG_PATH or revise your configuration