deprecated plugins

ycm-core/YouCompleteMe

[!NOTE|label:references:]

install

[!TIP|label:references:]

OPTION LANGUAGE TOOL DEPENDENCIES
--clang-completer C, C++, Objective-C Clang(libclang) Clang
--clangd-completer C, C++, Objective-C clang-tools-extra
(clangd)
clang-tools-extra
--cs-completer C# Mono Runtime Mono Runtime
--rust-completer Rust RustToolChains RustToolChains
--go-completer golang GoToolchain GoToolchain
--js-completer JavaScript Tern node.js、npm
--ts-completer JavaScript, TypeScript tsserver node.js、npm
--java-completer Java eclipse.jdt.ls JDK8
--all all - -
  • environment setup

    • macOS

      [!NOTE|label:references:]

      $ brew install cmake python go nodejs
      $ pip install urllib3
      $ pip install --user cmake
      $ sudo xcode-select -switch /Applications/Xcode.app
      $ brew install java
      $ sudo ln -sfn $(brew --prefix java)/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
      
      # optioinal for C#
      $ brew install mono
      # optional
      $ brew install jdtls
      
      ## check
      # cmake
      $ ~/Library/Python/3.12/bin/cmake --version
      cmake version 3.28.1
      CMake suite maintained and supported by Kitware (kitware.com/cmake).
      $ /usr/local/bin/cmake --version
      cmake version 3.28.1
      CMake suite maintained and supported by Kitware (kitware.com/cmake).
      # java
      $ java -version
      openjdk version "20.0.1" 2023-04-18
      OpenJDK Runtime Environment Homebrew (build 20.0.1)
      OpenJDK 64-Bit Server VM Homebrew (build 20.0.1, mixed mode, sharing)
      
      # c/c++
      $ xbuild --version
      >>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<
      XBuild Engine Version 14.0
      Mono, Version 6.12.0.182
      Copyright (C) 2005-2013 Various Mono authors
      MSBUILD: error MSBUILD0000: Project file '--version' not found.
      $ msbuild --version
      Microsoft (R) Build Engine version 16.10.1 for Mono
      Copyright (C) Microsoft Corporation. All rights reserved.
      16.10.1.6601
      $ gcc --version
      Apple clang version 15.0.0 (clang-1500.1.0.2.5)
      Target: x86_64-apple-darwin23.2.0
      Thread model: posix
      InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
      
      # node
      $ node --version
      v20.10.0
      
      # python
      $ python --version
      Python 3.11.4
      $ pip --version
      pip 23.2.1 from /usr/local/lib/python3.11/site-packages/pip (python 3.11)
      
    • wsl/ubuntu install

      [!NOTE|label:references:]

      $ sudo mkdir -p /etc/apt/keyrings
      $ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
      $ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_current.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
      
      $ sudo apt install build-essential cmake vim-nox python3-dev
      $ sudo apt install mono-complete golang openjdk-17-jdk openjdk-17-jre npm
      
      # environment
      # - nodejs/golang using snap instead of $ sudo apt isntall nodejs
      $ go version
      go version go1.18.1 linux/amd64
      $ node --version
      v20.10.0
      $ cmake --version
      cmake version 3.22.1
      CMake suite maintained and supported by Kitware (kitware.com/cmake).
      $ java --version
      openjdk 19.0.2 2023-01-17
      OpenJDK Runtime Environment (build 19.0.2+7-Ubuntu-0ubuntu322.04)
      OpenJDK 64-Bit Server VM (build 19.0.2+7-Ubuntu-0ubuntu322.04, mixed mode, sharing)
      
      • offline ( only allows apt and git )

        [!NOTE|label:references:]

        • Ubuntu setup
        • Full Installation Guide
          • C# support: install Mono on non-Windows platforms. Navigate to YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn. Download an Omnisharp-Roslyn release archive and extract the archive to YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn.
          • Java support: install JDK8 (version 8 required). Download a binary release of eclipse.jdt.ls and extract it to YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/repository
        # c/c++
        $ sudo apt install build-essential cmake vim-nox
        $ sudo apt install python3.11-dev python3-pip
        $ python3 -m pip install --upgrade pip
        
        # java
        $ sudo apt install openjdk-21-doc openjdk-21-jdk
        $ export JAVA_HOME='/usr/lib/jvm/java-21-openjdk-amd64'
        
        # go
        $ curl -LO https://go.dev/dl/go1.21.5.linux-amd64.tar.gz
        # or
        $ sudo apt install golang-1.21 golang-1.21-go golang-1.21-doc
        $ sudo update-alternatives --install /usr/bin/go go /usr/lib/go-1.21/bin/go 99
        $ sudo update-alternatives --install /usr/bin/gofmt gofmt /usr/lib/go-1.21/bin/gofmt 99
        $ sudo update-alternatives --auto go
        $ sudo update-alternatives --auto gofmt
        
        # node/npm
        $ npm config set registry https://artifactory.sample.com/artifactory/api/npm/npm-remote/
        $ sudo mkdir -p /usr/local/n && sudo chwon -R $(whoami) /usr/local/n
        $ sudo n latest
        $ npm i -g npm-completion --verbose
        
        # gradle
        $ curl -O https://services.gradle.org/distributions/gradle-7.6.1-bin.zip    # download somewhere and sync to server
        $ unzip gradle-7.6.1-bin.zip -d /opt/gradle
        $ ln -sf /opt/gradle/gradle-7.6.1 /opt/gradle/latest
        $ sudo update-alternatives --install /usr/local/bin/gralde gradle /opt/gradle/latest/bin/gradle 99
        $ sudo update-alternatives --auto gradle
        
    • centos

      [!NOTE]

      > - `dnf install gcc-c++`
      

    • windows

      [!NOTE|label:references:]

  • install with install.py

    # full install
    $ cd ~/.vim/plugged/YouCompleteMe
    $ python3 install.py --all --verbose
    
    • with --system-libclang

      $ brew install llvm
      $ cd ~/.vim/plugged/YouCompleteMe
      $ python3 install.py --system-libclang --all --verbose
      
      $ cat ~/.vimrc
      ...
      let g:ycm_clangd_binary_path = trim(system('brew --prefix llvm')).'/bin/clangd'
      ...
      
  • install with install.sh

    $ cd ~/.vim/plugged/YouCompleteMe
    $ ./install.py --all --verbose
    
    # or
    $ ./install.py --clangd-completer --verbose
    
    # or
    ./install.py --verbose
    

tips

extra

  • .ycm_extra_conf.py

    [!NOTE|label:references]

    # create simple file for sample.cpp
    $ g++ -v test.cpp
    #include “…” search starts here:
    #include <…> search starts here:
    /usr/include/c++/11
    /usr/include/x86_64-linux-gnu/c++/11
    /usr/include/c++/11/backward
    /usr/lib/gcc/x86_64-linux-gnu/11/include
    /usr/local/include
    /usr/include/x86_64-linux-gnu
    /usr/include
    
    $ cat >> ~/.ycm_extra_conf.py << EOF
    flags = [
    '-Wall',
    '-Wextra',
    #'-Werror',
    #'-Wc++98-compat',
    '-Wno-long-long',
    '-Wno-variadic-macros',
    '-fexceptions',
    '-stdlib=libc++',
    # THIS IS IMPORTANT! Without a "-std=<something>" flag, clang won't know which
    # language to use when compiling headers. So it will guess. Badly. So C++
    # headers will be compiled as C headers. You don't want that so ALWAYS specify
    # a "-std=<something>".
    # For a C project, you would set this to something like 'c99' instead of
    # 'c++11'.
    '-std=c++11',
    # ...and the same thing goes for the magic -x option which specifies the
    # language that the files to be compiled are written in. This is mostly
    # relevant for c++ headers.
    # For a C project, you would set this to 'c' instead of 'c++'.
    '-x', 'c++',
    '-I', '.',
    '-isystem', '/usr/include/c++/11',
    '-isystem', '/usr/include/x86_64-linux-gnu/c++/11',
    '-isystem', '/usr/include/c++/11/backward',
    '-isystem', '/usr/lib/gcc/x86_64-linux-gnu/11/include',
    '-isystem', '/usr/local/include',
    '-isystem', '/usr/include/x86_64-linux-gnu',
    '-isystem', '/usr/include',
    ]
    EOF
    
  • vimrc

    [!NOTE|label:references:]

    Plug 'ycm-core/YouCompleteMe', { 'do': 'python3 install.py --all' }
    Plug 'ycm-core/lsp-examples',  { 'do': 'python3 install.py --all' }
    
    " ycm-core/YouCompleteMe
    nnoremap <leader>gc :YcmCompleter GoToDeclaration<CR>
    nnoremap <leader>gf :YcmCompleter GoToDefinition<CR>
    nnoremap <leader>go :YcmCompleter GoToInclude<cr>
    nnoremap <leader>gg :YcmCompleter GoToDefinitionElseDeclaration<CR>
    nnoremap <leader>gd :YcmDiags<CR>
    let g:ycm_extra_conf_globlist                      = ['~/.marslo/ycm/*', '~/.vim/plugged/YouCompleteMe/*']
    let g:ycm_key_invoke_completion                    = '<C-\>'
    let g:ycm_echo_current_diagnostic                  = 'virtual-text'
    let g:ycm_error_symbol                             = '✗'
    let g:ycm_warning_symbol                           = '✹'
    let g:ycm_seed_identifiers_with_syntax             = 1
    let g:ycm_complete_in_comments                     = 1
    let g:ycm_complete_in_strings                      = 1
    let g:ycm_collect_identifiers_from_tags_files      = 1
    let g:ycm_keep_logfiles                            = 1
    let g:ycm_log_level                                = 'debug'
    let g:ycm_show_detailed_diag_in_popup              = 1
    let g:ycm_filepath_completion_use_working_dir      = 1
    let g:ycm_min_num_of_chars_for_completion          = 1
    let g:ycm_complete_in_comments                     = 1
    let g:ycm_autoclose_preview_window_after_insertion = 1
    let g:ycm_filetype_whitelist                       = { '*': 1, 'ycm_nofiletype': 1 }
    let g:ycm_filetype_specific_completion_to_disable  = { 'gitcommit': 1, 'vim': 1 }
    let g:ycm_filetype_blacklist                       = {
      \   'tagbar'  : 1,
      \   'notes'   : 1,
      \   'netrw'   : 1,
      \   'unite'   : 1,
      \   'vimwiki' : 1,
      \   'infolog' : 1,
      \   'leaderf' : 1,
      \   'mail'    : 1,
      \   'help'    : 1,
      \   'undo'    : 1
      \ }
    let g:ycm_semantic_triggers                        =  {
      \   'c'         : [ '->', '.'],
      \   'objc'      : [ '->', '.', 're!\[[_a-zA-Z]+\w*\s', 're!^\s*[^\W\d]\w*\s', 're!\[.*\]\s'],
      \   'ocaml'     : [ '.', '#'],
      \   'cpp,cuda,objcpp' : [ '->', '.', '::'],
      \   'perl'      : [ '->'],
      \   'php'       : [ '->', '::'],
      \   'cs,d,elixir,go,groovy,java,javascript,julia,perl6,python,scala,typescript,vb': ['.'],
      \   'ruby,rust' : [ '.', '::'],
      \   'lua'       : [ '.', ':'],
      \   'erlang'    : [ ':'],
      \ }
    
    " ycm-core/lsp-examples
    let g:ycm_lsp_dir = expand( pluginHome . 'lsp-examples' )
    let s:pip_os_dir  = 'bin'
    if has( 'win32' ) | let s:pip_os_dir = 'Scripts' | end
    source $HOME/.vim/plugged/lsp-examples/vimrc.generated
    
    augroup YCMCustomized
      autocmd!
      autocmd Filetype vim let g:ycm_complete_in_strings = 3
      autocmd FileType c,cpp,sh,python,groovy,Jenkinsfile let b:ycm_hover = {
        \ 'command': 'GetDoc',
        \ 'syntax': &filetype,
        \ 'popup_params': {
        \     'maxwidth': 80,
        \     'border': [],
        \     'borderchars': ['─', '│', '─', '│', '┌', '┐', '┘', '└'],
        \   },
        \ }
    augroup END
    

ycm-core/lsp-examples

[!NOTE|label:references:]

  • vimrc

    $ cat ~/.vimrc
    Plug 'ycm-core/lsp-examples'
    
    vim +BundleInstall +qa
    
  • install

    $ cd ~/.vim/plugged/lsp-examples
    $ python3 install.py --all
    
    ## add into .vimrc
    source $HOME/.vim/plugged/lsp-examples/vimrc.generated
    
    deprecated
    $ cd ~/.vim/plugged/lsp-examples
    $ python install.py --enable-cmake \
                        --enable-python \
                        --enable-viml \
                        --enable-bash \
                        --enable-json \
                        --enable-yaml \
                        --enable-groovy \
                        --enable-docker
    $ cat /Users/marslo/.vim/bundle/lsp-examples/vimrc.generated | pbcopy
    # paste into .vimrc
    
    • sample vimrc
      """ ycm lsp
      let g:ycm_lsp_dir = '~/.vim/plugged/lsp-examples'
      let s:pip_os_dir  = 'bin'
      let g:ycm_language_server = [
        \   { 'name': 'docker',
        \     'filetypes': [ 'dockerfile' ],
        \     'cmdline': [ expand( g:ycm_lsp_dir . '/docker/node_modules/.bin/docker-langserver' ), '--stdio' ]
        \   },
        \   {
        \     'name': 'cmake',
        \     'cmdline': [ expand( g:ycm_lsp_dir . '/cmake/venv/' . s:pip_os_dir . '/cmake-language-server' )],
        \     'filetypes': [ 'cmake' ],
        \    },
        \   {
        \     'name': 'python',
        \     'cmdline': [ 'node', expand( g:ycm_lsp_dir . '/python/node_modules/.bin/pyright-langserver' ), '--stdio' ],
        \     'filetypes': [ 'python' ],
        \   },
        \   { 'name': 'vim',
        \     'filetypes': [ 'vim' ],
        \     'cmdline': [ expand( g:ycm_lsp_dir . '/viml/node_modules/.bin/vim-language-server' ), '--stdio' ]
        \   },
        \   {
        \     'name': 'bash',
        \     'cmdline': [ 'node', expand( g:ycm_lsp_dir . '/bash/node_modules/.bin/bash-language-server' ), 'start' ],
        \     'filetypes': [ 'sh', 'bash' ],
        \   },
        \   {
        \     'name': 'json',
        \     'cmdline': [ 'node', expand( g:ycm_lsp_dir . '/json/node_modules/.bin/vscode-json-languageserver' ), '--stdio' ],
        \     'filetypes': [ 'json' ],
        \     'capabilities': { 'textDocument': { 'completion': { 'completionItem': { 'snippetSupport': v:true } } } },
        \   },
        \   {
        \     'name': 'yaml',
        \     'cmdline': [ 'node', expand( g:ycm_lsp_dir . '/yaml/node_modules/.bin/yaml-language-server' ), '--stdio' ],
        \     'filetypes': [ 'yaml' ],
        \     'capabilities': {
        \       'workspace': { 'configuration': v:true },
        \       'textDocument': {
        \         'completion': {
        \           'completionItem': { 'snippetSupport': v:true },
        \         }
        \       }
        \     },
        \   },
        \   {
        \     'name': 'groovy',
        \     'cmdline': [ 'java', '-jar', expand( g:ycm_lsp_dir . '/groovy/groovy-language-server/build/libs/groovy-language-server-all.jar' ) ],
        \     'filetypes': [ 'groovy' ]
        \   }
        \ ]
      

dense-analysis/ale

[!NOTE|label:references:]

Plug 'stephpy/vim-yaml'
Plug 'pedrohdz/vim-yaml-folds'
Plug 'dense-analysis/ale'

" yamllint                                                          " brew install yamllint
" ale                                                               " :help g:ale_echo_msg_format
let g:ale_echo_msg_format                 = '[%linter%] %code%: %s [%severity%] '
let g:ale_virtualtext_prefix              = '%comment% %type% [%code%]: '
let g:ale_sign_error                      = '💢'                    " ✘ 👾 💣  🙅 🤦
let g:ale_sign_warning                    = 'ᑹᑹ'                    " ⚠ ⸮ ⸘ ☹
let g:ale_sign_info                       = 'ᓆ'                     " ⸚ ϔ 𐘿 𐰦
let g:ale_sign_style_error                = '⍥'                     " ᑹ
let g:ale_sign_style_warning              = 'ᓍ'                     " ᓏ
let g:ale_lint_on_text_changed            = 'never'
let g:ale_fix_on_save                     = 0
let g:ale_lint_on_save                    = 1
let g:ale_warn_about_trailing_blank_lines = 1
let g:ale_warn_about_trailing_whitespace  = 1
let g:ale_set_balloons                    = 1
let g:ale_hover_to_preview                = 1
let g:ale_floating_preview                = 1
let g:ale_close_preview_on_insert         = 1
ale error
1.3.4.2.1 -- ale error
ale warning
1.3.4.2.2 -- ale warning
ale info
1.3.4.2.3 -- ale info
  • linter/checker install

    $ brew install checkstyle stylelint prettier
    # shell
    $ brew install bashate shfmt
    # yaml
    $ brew install yamllint yamlfmt
    # java
    $ brew install google-java-format
    # groovy/Jenkinsfile
    $ npm i -g npm-groovy-lint
    
  • debug info

    :ALEInfo
    

kien/ctrlp.vim

Plug 'kien/ctrlp.vim'

let g:ctrlp_map                 = '<c-p>'                           " CtrlP
let g:ctrlp_working_path_mode   = 'ra'                              " search parents as well (stop searching safety)
let g:ctrlp_max_height          = 8
let g:ctrlp_max_depth           = 100
let g:ctrl_root_makers          = ['.ctrlp']                        " stop search if these files present
let g:ctrlp_use_caching         = 1
let g:ctrlp_clear_cache_on_exit = 0                                 " cross session caching
if has('win32') || has('win95') || has('win64')
  let g:ctrlp_cache_dir = $VIM . '/cache/ctrlp'
else
  let g:ctrlp_cache_dir = '$HOME/.vim/cache/ctrlp'
endif
let g:ctrlp_custom_ignore = {
    \ 'dir':  '\v[\/]\.(git|hg|svn)$',
    \ 'file': '\v\.(exe|so|dll|rpm|tar|gz|bz2|zip|ctags|tags)|tags|ctags$',
    \ 'link': 'some_bad_symbolic_links',
    \ }

tabnine-vim

[!DANGER|label:ERROR] not working for python3.9+, using codota/tabnine-nvim

" tabnine-vim
if index(['vim'], &filetype) == -1 | let g:loaded_youcompleteme = 1 | endif
if !(&filetype == 'vim')           | let g:loaded_youcompleteme = 1 | endif
if &filetype ==# 'vim'             | let g:loaded_youcompleteme = 0 | endif

let g:ycm_filetype_blacklist                      = { 'vim':0  }
let b:ycm_largefile                               = 1
let g:ycm_disable_for_files_larger_than_kb        = 1000
let g:ycm_python_binary_path                      = '/usr/local/opt/python/libexec/bin/python'
let g:ycm_min_num_of_chars_for_completion         = 2
let g:ycm_python_binary_path                      = '/usr/local/opt/python@3.9/libexec/bin/python'
let g:ycm_filetype_specific_completion_to_disable = { 'gitcommit': 1 }
let g:ycm_semantic_triggers                       = {
  \   'c': ['->', '.'],
  \   'objc': ['->', '.', 're!\[[_a-zA-Z]+\w*\s', 're!^\s*[^\W\d]\w*\s',
  \            're!\[.*\]\s'],
  \   'ocaml': ['.', '#'],
  \   'cpp,cuda,objcpp': ['->', '.', '::'],
  \   'perl': ['->'],
  \   'php': ['->', '::'],
  \   'cs,d,elixir,go,groovy,java,javascript,julia,perl6,python,scala,typescript,vb': ['.'],
  \   'ruby,rust': ['.', '::'],
  \   'lua': ['.', ':'],
  \   'erlang': [':'],
  \ }

function! TriggerYCM()
  if g:loaded_youcompleteme == 1
    let g:loaded_youcompleteme = 0
  else
    let g:loaded_youcompleteme = 1
  endif
endfunction
nmap <C-y> :call TriggerYCM()<CR>
  • disable tabnine for vim
    " tabnine-vim                                                        " Plug 'codota/tabnine-vim'
    if index(['vim'], &filetype) == -1 | let g:loaded_youcompleteme = 1 | endif
    if !( &filetype == 'vim' )         | let g:loaded_youcompleteme = 1 | endif
    

vim-scripts/EnhCommentify.vim

" EnhCommentify
let g:EnhCommentifyAlignRight      = 'Yes'
let g:EnhCommentifyRespectIndent   = 'yes'
let g:EnhCommentifyPretty          = 'Yes'
let g:EnhCommentifyMultiPartBlocks = 'Yes'
let g:EnhCommentifyUseSyntax       = 'Yes'

honza/vim-snippets

Plug 'honza/vim-snippets'

not been using

not been using
  • msanders/snipmate.vim

    Plug 'msanders/snipmate.vim'
    
    " Snippet
    imap <S-C-J> <Plug>snipMateNextOrTrigger
    smap <S-C-J> <Plug>snipMateNextOrTrigger
    imap <Tab>   <Plug>snipMateNextOrTrigger
    
  • jiangmiao/auto-pairs

    [!NOTE|label:references:]

    Plug 'jiangmiao/auto-pairs'
    " or
    Plug 'marslo/auto-pairs'
    
    " settings
    let g:AutoPairs = {'(':')', '[':']', '{':'}', '<':'>',"'":"'",'"':'"', '`':'`'}
    let g:AutoPairsParens = {'(':')', '[':']', '{':'}', '<':'>'}
    let g:AutoPairsFlyMode = 0
    let g:AutoPairsShortcutBackInsert = '<M-b>'
    
  • gabrielelana/vim-markdown

    Plug 'gabrielelana/vim-markdown'
    
    nnoremap <Leader>cc :let &cole=(&cole == 2) ? 0 : 2 <bar> echo 'conceallevel ' . &cole <CR>
    let g:vim_markdown_folding_style_pythonic = 1
    let g:vim_markdown_override_foldtext      = 0
    let g:vim_markdown_autowrite              = 1
    let g:vim_markdown_new_list_item_indent   = 4
    let g:vim_markdown_toc_autofit            = 1
    let g:vim_markdown_conceal                = 0
    set conceallevel                          = 2
    let g:vim_markdown_frontmatter            = 1
    let g:vim_markdown_json_frontmatter       = 1
    let g:markdown_enable_spell_checking      = 0
    let g:markdown_enable_input_abbreviations = 0
    let g:markdown_enable_conceal             = 0
    hi markdownItalic           guifg=gray25    gui=underline
    hi MarkdownHeadingDelimiter gui=bold        guifg=gray25
    hi htmlSpecialChar          guifg=black
    hi markdownBold             gui=bold        guifg=gray25
    hi markdownUrl              guifg=#2fb3a6
    hi markdownAutomaticLink    guifg=#2fb3a6
    hi markdownLinkText         guifg=#317849
    hi markdownUrlTitle         guifg=#317849
    hi markdownBlockquote       guifg=#317849   gui=bold
    hi markdownId               guifg=#2fb3a6
    hi markdownIdDeclaration    guifg=#317849   gui=bold
    hi markdownListMarker       guifg=#317849
    
  • tpope/vim-markdown

    Plug 'tpope/vim-markdown'
    
    " for tpope vim-markdown
    let g:markdown_fenced_languages = ['html', 'python', 'bash=sh']
    let g:markdown_syntax_conceal   = 0
    let g:markdown_minlines         = 100
    

troubleshooting

[!TIP|label:how to debug:]

  • :message
  • :YcmDebugInfo
  • :YcmDiags
  • :YcmToggleLogs
  • :py3 import sys; print( sys.version) : 3.12.1 (main, Dec 7 2023, 20:45:44) [Clang 15.0.0 (clang-1500.0.40.1)]

ycmd

c++/libclang.dylib cannot be found issue

[!NOTE]

$ ln -sf $(brew --prefix llvm)/lib/libclang.dylib $(brew --prefix llvm)/lib/c++/libclang.dylib

# or : https://github.com/ycm-core/YouCompleteMe/issues/1925#issuecomment-173184661
$ EXTRA_CMAKE_ARGS="-DCMAKE_CXX_FLAGS=-march=native" ./install.py --clang-completer --system-libclang

# for libclang
$ EXTRA_CMAKE_ARGS='-DPATH_TO_LLVM_ROOT=/path/to/your/llvm' ./install.py --clang-completer --system-libclang

Question can be turned off with options, see YCM docs

Found /path/to/.ycm_extra_conf.py. Load?
(Question can be turned off with options, see YCM docs)
  • solution
    let g:ycm_extra_conf_globlist = ['~/path/to/ycm_extra_conf/*', '~/.vim/plugged/YouCompleteMe/*']
    

ycm download failed

download failed for jdt-language-server-1.14.0-202207211651.tar.gz

[!NOTE|label:related issues:]

  1. solution 1: using ycm-core/YouCompleteMe instead of tabnine/YouCompleteMe ( details )

  2. solution 2:

    $ git diff -- build.py
    diff --git a/build.py b/build.py
    index 4f586f28..01c19315 100755
    --- a/build.py
    +++ b/build.py
    @@ -89,10 +89,10 @@ DYNAMIC_PYTHON_LIBRARY_REGEX = """
      )$
    """
    
    -JDTLS_MILESTONE = '1.14.0'
    -JDTLS_BUILD_STAMP = '202207211651'
    +JDTLS_MILESTONE = '1.19.0'
    +JDTLS_BUILD_STAMP = '202301090450'
    JDTLS_SHA256 = (
    -  '4978ee235049ecba9c65b180b69ef982eedd2f79dc4fd1781610f17939ecd159'
    +  'acfd91918c51770a2e63a5a4d72f3543611ad7e1610b917c28797548b84e8460'
    )
    
    RUST_TOOLCHAIN = 'nightly-2022-08-17'
    
  3. solution 3

    • download the tar.gz manually

    • copy/move clangd-16.0.1-x86_64-apple-darwin.tar.bz2 into YouCompleteme/third_party/ycmd/third_party/eclipse.jdt.ls/target/cache/

      $ mkdir -p YouCompleteme/third_party/ycmd/third_party/eclipse.jdt.ls/target/cache/ && cd !$
      $ wget https://github.com/ycm-core/llvm/releases/download/16.0.1/clangd-16.0.1-x86_64-apple-darwin.tar.bz2
      

download failed for clangd-17.0.1-x86_64-apple-darwin.tar.bz2 | clangd-17.0.1-x86_64-unknown-linux-gnu.tar.bz2

$ mkdir -p YouCompleteMe/third_party/ycmd/third_party/clangd/cache

# osx
$ curl -o YouCompleteMe/third_party/ycmd/third_party/clangd/cache/clangd-17.0.1-x86_64-apple-darwin.tar.bz2 \
       -fsSL https://github.com/ycm-core/llvm/releases/download/17.0.1/clangd-17.0.1-x86_64-apple-darwin.tar.bz2
# wsl (windows)
$ curl -o YouCompleteMe/third_party/ycmd/third_party/clangd/cache/clangd-17.0.1-x86_64-unknown-linux-gnu.tar.bz2
       -fsSL https://github.com/ycm-core/llvm/releases/download/17.0.1/clangd-17.0.1-x86_64-unknown-linux-gnu.tar.bz2

download failed for omnisharp.http-osx.tar.gz v1.37.11 | omnisharp.http-linux-x64.tar.gz

$ mkdir -p YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn/v1.37.11

# osx
$ curl -o YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn/v1.37.11/omnisharp.http-osx.tar.gz \
       -fsSL https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.37.11/omnisharp.http-osx.tar.gz
# wsl (ubuntu)
$ curl -o YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn/v1.37.11/omnisharp.http-linux-x64.tar.gz \
       -fsSL https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.37.11/omnisharp.http-linux-x64.tar.gz

scripts for download

# osx
$ curl -fsSL -o ~/Desktop/clangd-17.0.1-x86_64-apple-darwin.tar.bz2 https://github.com/ycm-core/llvm/releases/download/17.0.1/clangd-17.0.1-x86_64-apple-darwin.tar.bz2
$ curl -fsSL -o ~/Desktop/omnisharp.http-osx.tar.gz                 https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.37.11/omnisharp.http-osx.tar.gz
# wsl (windows)
$ curl -fsSL -o ~/Desktop/clangd-17.0.1-x86_64-unknown-linux-gnu.tar.bz2 https://github.com/ycm-core/llvm/releases/download/17.0.1/clangd-17.0.1-x86_64-unknown-linux-gnu.tar.bz2
$ curl -fsSL -o ~/Desktop/omnisharp.http-linux-x64.tar.gz                https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.37.11/omnisharp.http-linux-x64.tar.gz

$ for _d in YouCompleteMe/YouCompleteMe/third_party/ycmd/third_party/clangd/cache/ \
            YouCompleteMe/third_party/ycmd/third_party/clangd/cache \
            YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/cache \
            YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/cache/third_party/ycmd/third_party/eclipse.jdt.ls;
  do
    mkdir -p "${_d}"
    # osx
    cp ~/Desktop/clangd-17.0.1-x86_64-apple-darwin.tar.bz2 ${_d}
    # wsl ( windows )
    cp ~/Desktop/clangd-17.0.1-x86_64-unknown-linux-gnu.tar.bz2 "${_d}"
  done

# oxx
$ mkdir -p YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn/v1.37.11/ &&
  cp ~/Desktop/omnisharp.http-osx.tar.gz YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn/v1.37.11/
# wsl ( windows )
$ mkdir -p YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn/v1.37.11/ &&
  cp ~/Desktop/omnisharp.http-linux-x64.tar.gz YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn/v1.37.11/

all caches

$ find YouCompleteMe/ -name '*.zip' -o -name '*.tar.*'
YouCompleteMe/YouCompleteMe/third_party/ycmd/third_party/clangd/cache/clangd-17.0.1-x86_64-apple-darwin.tar.bz2
YouCompleteMe/third_party/ycmd/ycmd/tests/testdata/python-future/embedded_standard_library/python35.zip
YouCompleteMe/third_party/ycmd/clang_archives/libclang-17.0.1-x86_64-apple-darwin.tar.bz2
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/honnef.co/go/tools/@v/v0.4.2.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/mvdan.cc/gofumpt/@v/v0.4.0.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/mvdan.cc/xurls/v2/@v/v2.4.0.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/vuln/@v/v0.0.0-20230110180137-6ad3e3d07815.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/tools/gopls/@v/v0.13.2.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/tools/@v/v0.11.2-0.20230810185051-cc6b5804b8cf.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/sys/@v/v0.10.0.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/text/@v/v0.11.0.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/sync/@v/v0.3.0.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/exp/typeparams/@v/v0.0.0-20221212164502-fae10dda9338.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/exp/@v/v0.0.0-20220722155223-a9213eeb770e.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/mod/@v/v0.12.0.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/github.com/!burnt!sushi/toml/@v/v1.2.1.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/github.com/google/go-cmp/@v/v0.5.9.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/github.com/sergi/go-diff/@v/v1.1.0.zip
YouCompleteMe/third_party/ycmd/third_party/clangd/cache/clangd-17.0.1-x86_64-apple-darwin.tar.bz2
YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi/test/examples/zipped_imports/pkg.zip
YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi/test/examples/zipped_imports/not_pkg.zip
YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn/v1.37.11/omnisharp.http-osx.tar.gz
YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/cache/jdt-language-server-1.26.0-202307271613.tar.gz
YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/cache/third_party/ycmd/third_party/eclipse.jdt.ls/clangd-17.0.1-x86_64-apple-darwin.tar.bz2
YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/cache/clangd-17.0.1-x86_64-apple-darwin.tar.bz2
older version
$ find YouCompleteMe/ -name '*.zip' -o -name '*.tar.*'
YouCompleteMe/third_party/ycmd/ycmd/tests/testdata/python-future/embedded_standard_library/python35.zip
YouCompleteMe/third_party/ycmd/clang_archives/libclang-16.0.1-x86_64-apple-darwin.tar.bz2
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/honnef.co/go/tools/@v/v0.3.2.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/mvdan.cc/gofumpt/@v/v0.3.1.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/mvdan.cc/xurls/v2/@v/v2.4.0.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/vuln/@v/v0.0.0-20220725105440-4151a5aca1df.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/tools/gopls/@v/v0.9.4.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/tools/@v/v0.1.13-0.20220812184215-3f9b119300de.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/sys/@v/v0.0.0-20220722155257-8c9f86f7a55f.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/text/@v/v0.3.7.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/sync/@v/v0.0.0-20220722155255-886fb9371eb4.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/exp/typeparams/@v/v0.0.0-20220722155223-a9213eeb770e.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/golang.org/x/mod/@v/v0.6.0-dev.0.20220419223038-86c51ed26bb4.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/github.com/!burnt!sushi/toml/@v/v1.2.0.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/github.com/google/go-cmp/@v/v0.5.8.zip
YouCompleteMe/third_party/ycmd/third_party/go/pkg/mod/cache/download/github.com/sergi/go-diff/@v/v1.1.0.zip
YouCompleteMe/third_party/ycmd/third_party/clangd/cache/clangd-16.0.1-x86_64-apple-darwin.tar.bz2
YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi/test/examples/zipped_imports/pkg.zip
YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi/test/examples/zipped_imports/not_pkg.zip
YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn/v1.37.11/omnisharp.http-osx.tar.gz
YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/cache/jdt-language-server-1.14.0-202207211651.tar.gz
YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/cache/clangd-16.0.1-x86_64-apple-darwin.tar.bz2

tips

  • libclang download failure

    • error

      $ python install.py --all
      ...
      -- Downloading libclang 6.0.0 from https://dl.bintray.com/micbou/libclang/libclang-6.0.0-x86_64-apple-darwin.tar.bz2
      -- [download 0% complete]
      CMake Error at ycm/CMakeLists.txt:108 (file):
        file DOWNLOAD cannot compute hash on failed download
      
    • solution:

      1. ultimate solution: using YouCompleteMe/third_party/ycmd replace the tabnine-vim/third_party/ycmd

        $ cd ~/.vim/plugged
        $ mv tabnine-vim/third_party/ycmd{,.bak}
        $ cp -r YouCompleteMe/third_party/ycmd  tabnine-vim/third_party/
        
        $ python install.py --all
        
      2. replace the libclang 6.0.0 to 16.0.1

        • ./ycmd/cpp/ycm/CMakeLists.txt

          # https://github.com/ycm-core/llvm/releases/download/16.0.1/libclang-16.0.1-x86_64-apple-darwin.tar.bz2
          
          $ git diff -- third_party/ycmd/cpp/ycm/CMakeLists.txt
          diff --git a/third_party/ycmd/cpp/ycm/CMakeLists.txt b/third_party/ycmd/cpp/ycm/CMakeLists.txt
          index 047b118d..9d912c98 100644
          --- a/third_party/ycmd/cpp/ycm/CMakeLists.txt
          +++ b/third_party/ycmd/cpp/ycm/CMakeLists.txt
          @@ -30,12 +30,12 @@ if ( USE_CLANG_COMPLETER AND
               NOT PATH_TO_LLVM_ROOT AND
               NOT EXTERNAL_LIBCLANG_PATH )
          
          -  set( CLANG_VERSION 6.0.0 )
          +  set( CLANG_VERSION 16.0.1 )
          
            if ( APPLE )
              set( LIBCLANG_DIRNAME "libclang-${CLANG_VERSION}-x86_64-apple-darwin" )
              set( LIBCLANG_SHA256
          -         "fd12532e3eb7b67cfede097134fc0a5b478c63759bcbe144ae6897f412ce2fe6" )
          +         "43f7e4e72bc1d661eb01ee61666ee3a62a97d2993586c0b98efa6f46a96e768f" )
            elseif ( WIN32 )
              if( 64_BIT_PLATFORM )
                set( LIBCLANG_DIRNAME "libclang-${CLANG_VERSION}-win64" )
          @@ -84,7 +84,7 @@ if ( USE_CLANG_COMPLETER AND
          
            set( LIBCLANG_DOWNLOAD ON )
            set( LIBCLANG_URL
          -       "https://dl.bintray.com/micbou/libclang/${LIBCLANG_FILENAME}" )
          +       "https://github.com/ycm-core/llvm/releases/download/${CLANG_VERSION}/${LIBCLANG_FILENAME}" )
          
            # Check if the Clang archive is already downloaded and its checksum is
            # correct.  If this is not the case, remove it if needed and download it.
          
  • full logs

    full logs
    $ python install.py --all --verbose
    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 14.0.3.14030022
    -- The CXX compiler identification is AppleClang 14.0.3.14030022
    -- 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.6", 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
    -- Using libclang archive: /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/../clang_archives/libclang-17.0.1-x86_64-apple-darwin.tar.bz2
    -- Using libclang to provide semantic completion for C/C++/ObjC
    -- Using external libclang: /private/var/folders/s3/mg_f3cv54nn7y758j_t46zt40000gn/T/ycm_build_o7x3lu3s/lib/libclang.dylib
    -- Using Abseil hash tables
    -- Configuring done (13.9s)
    -- Generating done (0.6s)
    -- Build files have been written to: /private/var/folders/s3/mg_f3cv54nn7y758j_t46zt40000gn/T/ycm_build_o7x3lu3s
    [  0%] 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/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_format.cc.o
    [  3%] Building CXX object absl/absl/base/CMakeFiles/absl_log_severity.dir/log_severity.cc.o
    [  3%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_fixed.cc.o
    [  4%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_if.cc.o
    [  6%] Building CXX object absl/absl/base/CMakeFiles/absl_exponential_biased.dir/internal/exponential_biased.cc.o
    [  8%] Building CXX object absl/absl/numeric/CMakeFiles/absl_int128.dir/int128.cc.o
    [  8%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_impl.cc.o
    [  8%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_libc.cc.o
    [  8%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_lookup.cc.o
    [  8%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_info.cc.o
    [  8%] Building CXX object absl/absl/base/CMakeFiles/absl_spinlock_wait.dir/internal/spinlock_wait.cc.o
    [  9%] Linking CXX static library libabsl_spinlock_wait.a
    [  9%] Built target absl_spinlock_wait
    [ 11%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_posix.cc.o
    [ 13%] Linking CXX static library libabsl_exponential_biased.a
    [ 13%] Built target absl_exponential_biased
    [ 13%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/zone_info_source.cc.o
    [ 13%] Linking CXX static library libabsl_log_severity.a
    [ 13%] Built target absl_log_severity
    [ 14%] Linking CXX static library libabsl_civil_time.a
    [ 14%] Building CXX object absl/absl/base/CMakeFiles/absl_raw_logging_internal.dir/internal/raw_logging.cc.o
    [ 16%] Linking CXX static library libabsl_int128.a
    [ 16%] Built target absl_civil_time
    [ 16%] Built target absl_int128
    [ 18%] Linking CXX static library libabsl_time_zone.a
    [ 19%] Linking CXX static library libabsl_raw_logging_internal.a
    [ 19%] Built target absl_time_zone
    [ 19%] Built target absl_raw_logging_internal
    [ 19%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/address_is_readable.cc.o
    [ 21%] Building CXX object absl/absl/types/CMakeFiles/absl_bad_variant_access.dir/bad_variant_access.cc.o
    [ 21%] Building CXX object absl/absl/base/CMakeFiles/absl_throw_delegate.dir/internal/throw_delegate.cc.o
    [ 21%] Building CXX object absl/absl/types/CMakeFiles/absl_bad_optional_access.dir/bad_optional_access.cc.o
    [ 21%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/vdso_support.cc.o
    [ 21%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/sysinfo.cc.o
    [ 24%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/spinlock.cc.o
    [ 24%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/thread_identity.cc.o
    [ 26%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/elf_mem_image.cc.o
    [ 26%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/cycleclock.cc.o
    [ 26%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/unscaledcycleclock.cc.o
    [ 27%] Linking CXX static library libabsl_debugging_internal.a
    [ 29%] Linking CXX static library libabsl_bad_variant_access.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
    /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)
    [ 29%] Built target absl_debugging_internal
    [ 29%] Built target absl_bad_variant_access
    [ 29%] Building CXX object absl/absl/debugging/CMakeFiles/absl_stacktrace.dir/stacktrace.cc.o
    [ 31%] Linking CXX static library libabsl_bad_optional_access.a
    /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)
    [ 31%] Built target absl_bad_optional_access
    [ 32%] Linking CXX static library libabsl_stacktrace.a
    [ 32%] Built target absl_stacktrace
    [ 32%] Linking CXX static library libabsl_throw_delegate.a
    [ 32%] Built target absl_throw_delegate
    [ 34%] Linking CXX static library libabsl_base.a
    [ 34%] Built target absl_base
    [ 34%] Building CXX object absl/absl/debugging/CMakeFiles/absl_demangle_internal.dir/internal/demangle.cc.o
    [ 34%] Building CXX object absl/absl/hash/CMakeFiles/absl_city.dir/internal/city.cc.o
    [ 37%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/ostringstream.cc.o
    [ 37%] Building CXX object absl/absl/base/CMakeFiles/absl_malloc_internal.dir/internal/low_level_alloc.cc.o
    [ 37%] Building CXX object absl/absl/hash/CMakeFiles/absl_wyhash.dir/internal/wyhash.cc.o
    [ 39%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/escaping.cc.o
    [ 39%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/utf8.cc.o
    [ 40%] Linking CXX static library libabsl_wyhash.a
    [ 40%] Built target absl_wyhash
    [ 42%] Linking CXX static library libabsl_city.a
    [ 42%] Built target absl_city
    [ 42%] Linking CXX static library libabsl_strings_internal.a
    [ 42%] Built target absl_strings_internal
    [ 42%] Linking CXX static library libabsl_malloc_internal.a
    [ 42%] 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
    [ 45%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/escaping.cc.o
    [ 45%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/charconv.cc.o
    [ 47%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/charconv_parse.cc.o
    [ 47%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/memutil.cc.o
    [ 49%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/match.cc.o
    [ 50%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_cat.cc.o
    [ 50%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/numbers.cc.o
    [ 50%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_replace.cc.o
    [ 52%] Linking CXX static library libabsl_demangle_internal.a
    [ 52%] Built target absl_malloc_internal
    [ 54%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_split.cc.o
    [ 54%] Built target absl_demangle_internal
    [ 55%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/internal/graphcycles.cc.o
    [ 55%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/string_view.cc.o
    [ 57%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/substitute.cc.o
    [ 57%] Linking CXX static library libabsl_graphcycles_internal.a
    [ 57%] Built target absl_graphcycles_internal
    [ 57%] 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
    [ 57%] Built target absl_strings
    [ 57%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/format.cc.o
    [ 59%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/cord.cc.o
    [ 59%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/civil_time.cc.o
    [ 60%] Building CXX object absl/absl/debugging/CMakeFiles/absl_symbolize.dir/symbolize.cc.o
    [ 60%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/clock.cc.o
    [ 62%] Building CXX object absl/absl/hash/CMakeFiles/absl_hash.dir/internal/hash.cc.o
    [ 63%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/internal/cord_internal.cc.o
    [ 65%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/duration.cc.o
    [ 65%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/internal/cord_rep_ring.cc.o
    [ 67%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/time.cc.o
    In file included from /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/absl/absl/strings/cord.cc:15:
    In file included from /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/absl/absl/strings/cord.h:78:
    /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/absl/absl/functional/function_ref.h:124:16: warning: definition of implicit copy constructor for 'FunctionRef<void (std::string_view)>' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
      FunctionRef& operator=(const FunctionRef& rhs) = delete;
                   ^
    /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/absl/absl/strings/cord.h:1325:33: note: in implicit copy constructor for 'absl::FunctionRef<void (std::string_view)>' first required here
        return ForEachChunkAux(rep, callback);
                                    ^
    [ 67%] Linking CXX static library libabsl_hash.a
    [ 67%] Linking CXX static library libabsl_symbolize.a
    [ 67%] Built target absl_hash
    [ 67%] Built target absl_symbolize
    [ 67%] Linking CXX static library libabsl_time.a
    [ 67%] Built target absl_time
    [ 67%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/blocking_counter.cc.o
    [ 68%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/create_thread_identity.cc.o
    [ 70%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/barrier.cc.o
    [ 70%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/per_thread_sem.cc.o
    [ 70%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/notification.cc.o
    [ 72%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/waiter.cc.o
    [ 73%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/mutex.cc.o
    1 warning generated.
    [ 75%] Linking CXX static library libabsl_cord.a
    [ 75%] Built target absl_cord
    [ 75%] Linking CXX static library libabsl_synchronization.a
    [ 75%] Built target absl_synchronization
    [ 77%] Building CXX object absl/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler_force_weak_definition.cc.o
    [ 77%] Building CXX object absl/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler.cc.o
    [ 78%] Linking CXX static library libabsl_hashtablez_sampler.a
    [ 78%] Built target absl_hashtablez_sampler
    [ 78%] Building CXX object absl/absl/container/CMakeFiles/absl_raw_hash_set.dir/internal/raw_hash_set.cc.o
    [ 80%] Linking CXX static library libabsl_raw_hash_set.a
    [ 80%] Built target absl_raw_hash_set
    [ 81%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Character.cpp.o
    [ 81%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Candidate.cpp.o
    [ 83%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierUtils.cpp.o
    [ 83%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CodePoint.cpp.o
    [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Repository.cpp.o
    [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Result.cpp.o
    [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierCompleter.cpp.o
    [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Word.cpp.o
    [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/PythonSupport.cpp.o
    [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierDatabase.cpp.o
    [ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/versioning.cpp.o
    [ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Utils.cpp.o
    [ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o
    [ 91%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangCompleter.cpp.o
    [ 91%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangHelpers.cpp.o
    [ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangUtils.cpp.o
    [ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompilationDatabase.cpp.o
    [ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompletionData.cpp.o
    [ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Documentation.cpp.o
    [ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Range.cpp.o
    [ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnit.cpp.o
    [ 98%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnitStore.cpp.o
    [100%] Linking CXX shared library /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.cpython-311-darwin.so
    ld: warning: directory not found for option '-L/usr/local/Cellar/node/20.8.0/lib'
    ld: warning: dylib (/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/lib/python3.11/config-3.11-darwin/libpython3.11.dylib) was built for newer macOS version (14.0) than being linked (13.3)
    ld: warning: dylib (/usr/local/opt/llvm/lib/libunwind.dylib) was built for newer macOS version (14.0) than being linked (13.3)
    ld: warning: dylib (/usr/local/opt/llvm/lib/libunwind.dylib) was built for newer macOS version (14.0) than being linked (13.3)
    [100%] Built target ycm_core
    running build
    running build_py
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
    copying regex_3/__init__.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
    copying regex_3/regex.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
    copying regex_3/_regex_core.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
    copying regex_3/test_regex.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
    running build_ext
    building 'regex._regex' extension
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-14-x86_64-cpython-311
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-14-x86_64-cpython-311/regex_3
    clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/openjdk@17/include -I/usr/local/opt/openldap/include -I/usr/local/opt/curl/include -I/usr/local/opt/binutils/include -I/usr/local/opt/sqlite/include -I/usr/local/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/Cellar/node/20.8.0/include -I/usr/local/opt/libressl/include -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/ruby/include -I/usr/local/Cellar/icu4c@71.1/71.1/include -I/usr/local/opt/llvm/include -I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c regex_3/_regex.c -o /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-14-x86_64-cpython-311/regex_3/_regex.o
    regex_3/_regex.c:24940:23: warning: unused function 'contains_repeat' [-Wunused-function]
     24940 | Py_LOCAL_INLINE(BOOL) contains_repeat(RE_CODE* code, RE_CODE* end_code) {
           |                       ^~~~~~~~~~~~~~~
    1 warning generated.
    clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/openjdk@17/include -I/usr/local/opt/openldap/include -I/usr/local/opt/curl/include -I/usr/local/opt/binutils/include -I/usr/local/opt/sqlite/include -I/usr/local/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/Cellar/node/20.8.0/include -I/usr/local/opt/libressl/include -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/ruby/include -I/usr/local/Cellar/icu4c@71.1/71.1/include -I/usr/local/opt/llvm/include -I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c regex_3/_regex_unicode.c -o /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-14-x86_64-cpython-311/regex_3/_regex_unicode.o
    clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -L/usr/local/opt/openldap/lib -L/usr/local/opt/curl/lib -L/usr/local/opt/binutils/lib -L/usr/local/opt/python@3.11/lib -L/usr/local/opt/ruby/lib -L/usr/local/opt/tcl-tk/lib -L/usr/local/opt/sqlite/lib -L/usr/local/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/Cellar/node/20.8.0/lib -L/usr/local/opt/libressl/lib -L/usr/local/Cellar/icu4c@71.1/71.1/lib -L/usr/local/opt/llvm/lib -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/openjdk@17/include -I/usr/local/opt/openldap/include -I/usr/local/opt/curl/include -I/usr/local/opt/binutils/include -I/usr/local/opt/sqlite/include -I/usr/local/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/Cellar/node/20.8.0/include -I/usr/local/opt/libressl/include -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/ruby/include -I/usr/local/Cellar/icu4c@71.1/71.1/include -I/usr/local/opt/llvm/include /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-14-x86_64-cpython-311/regex_3/_regex.o /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-14-x86_64-cpython-311/regex_3/_regex_unicode.o -o /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex/_regex.cpython-311-darwin.so
    ld: warning: directory not found for option '-L/usr/local/Cellar/node/20.8.0/lib'
    running build
    running build_py
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
    copying src/watchdog/watchmedo.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
    copying src/watchdog/version.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
    copying src/watchdog/events.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
    copying src/watchdog/__init__.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
    copying src/watchdog/utils/patterns.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
    copying src/watchdog/utils/__init__.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
    copying src/watchdog/utils/event_debouncer.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
    copying src/watchdog/utils/dirsnapshot.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
    copying src/watchdog/utils/delayed_queue.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
    copying src/watchdog/utils/platform.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
    copying src/watchdog/utils/process_watcher.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
    copying src/watchdog/utils/bricks.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
    copying src/watchdog/utils/echo.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    copying src/watchdog/observers/fsevents.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    copying src/watchdog/observers/inotify.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    copying src/watchdog/observers/__init__.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    copying src/watchdog/observers/api.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    copying src/watchdog/observers/inotify_buffer.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    copying src/watchdog/observers/winapi.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    copying src/watchdog/observers/read_directory_changes.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    copying src/watchdog/observers/kqueue.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    copying src/watchdog/observers/inotify_c.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    copying src/watchdog/observers/polling.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    copying src/watchdog/observers/fsevents2.py -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/tricks
    copying src/watchdog/tricks/__init__.py -> /Users/marslo/.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'
    warning: no files found matching 'docs/*.txt'
    adding license file 'LICENSE'
    adding license file 'COPYING'
    adding license file 'AUTHORS'
    writing manifest file 'src/watchdog.egg-info/SOURCES.txt'
    copying src/watchdog/py.typed -> /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
    running build_ext
    building '_watchdog_fsevents' extension
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-14-x86_64-cpython-311
    creating /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-14-x86_64-cpython-311/src
    clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/openjdk@17/include -I/usr/local/opt/openldap/include -I/usr/local/opt/curl/include -I/usr/local/opt/binutils/include -I/usr/local/opt/sqlite/include -I/usr/local/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/Cellar/node/20.8.0/include -I/usr/local/opt/libressl/include -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/ruby/include -I/usr/local/Cellar/icu4c@71.1/71.1/include -I/usr/local/opt/llvm/include -DWATCHDOG_VERSION_STRING=\"3.0.0\" -DWATCHDOG_VERSION_MAJOR=3 -DWATCHDOG_VERSION_MINOR=0 -DWATCHDOG_VERSION_BUILD=0 -I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/watchdog_fsevents.c -o /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-14-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
    src/watchdog_fsevents.c:681:5: warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0 - Use FSEventStreamSetDispatchQueue instead. [-Wdeprecated-declarations]
      681 |     FSEventStreamScheduleWithRunLoop(stream_ref, run_loop_ref, kCFRunLoopDefaultMode);
          |     ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:1153:1: note: 'FSEventStreamScheduleWithRunLoop' has been explicitly marked deprecated here
     1153 | FSEventStreamScheduleWithRunLoop(
          | ^
    1 warning generated.
    clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -L/usr/local/opt/openldap/lib -L/usr/local/opt/curl/lib -L/usr/local/opt/binutils/lib -L/usr/local/opt/python@3.11/lib -L/usr/local/opt/ruby/lib -L/usr/local/opt/tcl-tk/lib -L/usr/local/opt/sqlite/lib -L/usr/local/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/Cellar/node/20.8.0/lib -L/usr/local/opt/libressl/lib -L/usr/local/Cellar/icu4c@71.1/71.1/lib -L/usr/local/opt/llvm/lib -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/openjdk@17/include -I/usr/local/opt/openldap/include -I/usr/local/opt/curl/include -I/usr/local/opt/binutils/include -I/usr/local/opt/sqlite/include -I/usr/local/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/Cellar/node/20.8.0/include -I/usr/local/opt/libressl/include -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/ruby/include -I/usr/local/Cellar/icu4c@71.1/71.1/include -I/usr/local/opt/llvm/include /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-14-x86_64-cpython-311/src/watchdog_fsevents.o -lm -o /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/_watchdog_fsevents.cpython-311-darwin.so -framework CoreFoundation -framework CoreServices
    ld: warning: directory not found for option '-L/usr/local/Cellar/node/20.8.0/lib'
    Installing Omnisharp v1.37.11
    Using cached Omnisharp: omnisharp.http-osx.tar.gz
    Extracting Omnisharp to /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/omnisharp-roslyn...DONE
    Done installing Omnisharp
    go: downloading golang.org/x/tools/gopls v0.13.2
    go: downloading golang.org/x/tools v0.11.2-0.20230810185051-cc6b5804b8cf
    go: downloading honnef.co/go/tools v0.4.2
    go: downloading github.com/sergi/go-diff v1.1.0
    go: downloading mvdan.cc/gofumpt v0.4.0
    go: downloading mvdan.cc/xurls/v2 v2.4.0
    go: downloading golang.org/x/mod v0.12.0
    go: downloading golang.org/x/sync v0.3.0
    go: downloading golang.org/x/text v0.11.0
    go: downloading golang.org/x/sys v0.10.0
    go: downloading golang.org/x/vuln v0.0.0-20230110180137-6ad3e3d07815
    go: downloading github.com/google/go-cmp v0.5.9
    go: downloading golang.org/x/exp/typeparams v0.0.0-20221212164502-fae10dda9338
    go: downloading github.com/BurntSushi/toml v1.2.1
    go: downloading golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN tern_runtime No repository field.
    npm WARN tern_runtime No license field.
    
    added 30 packages from 125 contributors in 7.411s
    
    1 package is looking for funding
      run `npm fund` for details
    
    info: downloading installer
    info: profile set to 'default'
    info: default host triple is x86_64-apple-darwin
    info: skipping toolchain installation
    
    Rust is installed now. Great!
    
    To get started you need Cargo's bin directory
    (/var/folders/s3/mg_f3cv54nn7y758j_t46zt40000gn/T/rust_install_b3bomd59/bin) in
    your PATH
    environment variable. This has not been done automatically.
    
    To configure your current shell, run:
    source
    "/var/folders/s3/mg_f3cv54nn7y758j_t46zt40000gn/T/rust_install_b3bomd59/env"
    info: syncing channel updates for 'nightly-2023-08-18-x86_64-apple-darwin'
    info: latest update on 2023-08-18, rust version 1.73.0-nightly (076887268 2023-08-17)
    info: downloading component 'cargo'
    info: downloading component 'clippy'
    info: downloading component 'rust-docs'
    info: downloading component 'rust-std'
    info: downloading component 'rustc'
     56.1 MiB /  56.1 MiB (100 %)  38.3 MiB/s in  1s ETA:  0s
    info: downloading component 'rustfmt'
    info: installing component 'cargo'
    info: installing component 'clippy'
    info: installing component 'rust-docs'
     13.8 MiB /  13.8 MiB (100 %)   4.0 MiB/s in  3s ETA:  0s
    info: installing component 'rust-std'
     25.0 MiB /  25.0 MiB (100 %)  11.8 MiB/s in  2s ETA:  0s
    info: installing component 'rustc'
     56.1 MiB /  56.1 MiB (100 %)  12.8 MiB/s in  4s ETA:  0s
    info: installing component 'rustfmt'
    
      nightly-2023-08-18-x86_64-apple-darwin installed - rustc 1.73.0-nightly (076887268 2023-08-17)
    
    info: default toolchain set to 'nightly-2023-08-18-x86_64-apple-darwin'
    info: checking for self-update
    info: downloading component 'rust-src'
    info: installing component 'rust-src'
    info: downloading component 'rust-analyzer'
    info: installing component 'rust-analyzer'
    info: component 'rustfmt' for target 'x86_64-apple-darwin' is up to date
    info: component 'clippy' for target 'x86_64-apple-darwin' is up to date
    Downloading jdt.ls from https://download.eclipse.org/jdtls/milestones/1.26.0/jdt-language-server-1.26.0-202307271613.tar.gz...
    Extracting jdt.ls to /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/repository...
    Done installing jdt.ls
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN tsserver No repository field.
    npm WARN tsserver No license field.
    
    added 1 package from 1 contributor in 1.09s
    Using cached Clangd: /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/clangd/cache/clangd-17.0.1-x86_64-apple-darwin.tar.bz2
    Extracting Clangd to /Users/marslo/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/clangd/output...
    Done installing Clangd
    Clangd completer enabled. If you are using .ycm_extra_conf.py files, make sure they use Settings() instead of the old and deprecated FlagsForFile().
    

ycm no hints

[!NOTE|label:references:]

$ cd ~/.vim/plugged/YouCompleteMe/third_party/ycmd/
$ cp ycmd/default_settings.json .
$ python ycmd --options_file default_settings.json
2023-10-13 01:42:34,337 - INFO - Completion config: 50, detailing -1 candiates
2023-10-13 01:42:34,337 - INFO - Completion config: 50, detailing -1 candiates
2023-10-13 01:42:34,337 - INFO - Completion config: 50, detailing -1 candiates
2023-10-13 01:42:34,338 - INFO - Completion config: 50, detailing -1 candiates
serving on http://1.0.0.127.in-addr.arpa:63691

tabnine

  • YouCompleteMe unavailable: module 'collections' has no attribute 'Mapping'

    [!TIP]

    • solution

      # optional
      $ brew install cmake go
      
      # mandatory
      $ cd ~/.vim/plugged/tabnine-vim
      $ git checkout python3
      $ find . -name "*.pyc" -delete
      $ python3 install.py
      Searching Python 3.10 libraries...
      Found Python library: /usr/local/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/lib/python3.10/config-3.10-darwin/libpython3.10.dylib
      Found Python headers folder: /usr/local/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10
      -- The C compiler identification is AppleClang 12.0.0.12000032
      -- The CXX compiler identification is AppleClang 12.0.0.12000032
      ...
      
  • Killed: 9

    • caused by enabled --enable-cscope
    • $ sudo make uninstall && sudo make install
Copyright © marslo 2020-2023 all right reserved,powered by GitbookLast Modified: 2024-03-12 15:01:30

results matching ""

    No results matching ""