2016-07-20 46 views
0

我试图为vim安装YCM,并且已经安装了vundle。所以我使用:PluginInstall来安装YCM。现在我正在关注这一步。试图为vim安装YouCompleteMe

编译YCM与C家族语言的语义支持:

cd ~/.vim/bundle/YouCompleteMe 
./install.py --clang-completer 

当我到了目录,然后进行第二个命令我得到错误:

Some folders in /home/shubham/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party are empty; you probably forgot to run: 
    git submodule update --init --recursive 


Traceback (most recent call last): 
    File "./install.py", line 44, in <module> 
    Main() 
    File "./install.py", line 33, in Main 
    subprocess.check_call([ python_binary, build_file ] + sys.argv[1:]) 
    File "/home/shubham/anaconda3/lib/python3.5/subprocess.py", line 581, in check_call 
    raise CalledProcessError(retcode, cmd) 
subprocess.CalledProcessError: Command '['/home/shubham/anaconda3/bin/python', '/home/shubham/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py', '--clang-completer']' returned non-zero exit status 1 

当我做蟒蛇-V我得到

Python 3.5.2 :: Anaconda 4.1.1 (64-bit) 

我安装YCM加入

Plugin 'valloric/YouCompleteMe' 

了〜./。vimrc文件

我使用Ubuntu 15.04它通过defalut过的Python 2.7和我明确安装anaconda3和python3。

请帮忙。

+0

YCM问题跟踪器是[这种方式](https://github.com/Valloric/YouCompleteMe/issues)。 –

回答

0

我不知道,如果你已经进行了,因为它是不是在这个问题中,但你运行git submodule update --init --recursive

Some folders in 
/home/shubham/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party 
are empty; you probably forgot to run: 
git submodule update --init --recursive 

如果有,请更新您的结果问题,我将编辑我的答案,看看我们能否得出这个结论。