提示錯誤ValueError: Still no compile flags, no completions yet
ValueError: Still no compile flags, no completions yet
光阴似箭催人老,日月如移越少年。
你是在什麼編輯器上安裝vim插件?
在vimrc裡面配置下Extra conf試試。 如果你用vundle,那就是:let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
如果你用Vim-Plug,那就是:let g:ycm_global_ycm_extra_conf = '~/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
let g:ycm_global_ycm_extra_conf = '~/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
將 .ycm_extra_conf.py 文件放到 ~/ 目錄下即可,當然 @S1ngS1ng 的方法也是可以的。
.ycm_extra_conf.py
~/
用YCM-Generator產生.ycm_extra_conf.py檔放到你開啟vim的目錄或是在vimrc裡面製定預設路徑
你是在什麼編輯器上安裝vim插件?
在vimrc裡面配置下Extra conf試試。
如果你用vundle,那就是:
let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
如果你用Vim-Plug,那就是:
let g:ycm_global_ycm_extra_conf = '~/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
將
.ycm_extra_conf.py
文件放到~/
目錄下即可,當然 @S1ngS1ng 的方法也是可以的。用YCM-Generator產生.ycm_extra_conf.py檔放到你開啟vim的目錄或是在vimrc裡面製定預設路徑