Youcompleteme: Windows 7: YouCompleteMe unavailable: [Error 2]

Created on 23 Jul 2016  路  8Comments  路  Source: ycm-core/YouCompleteMe

software:
Windows 7 64bit
vim https://tuxproject.de/projects/vim/

I built YouCompleteMe with Visual Studio 2015, CMake 3.6.0, clang 3.8.1, python 2.7.12.

The vim shows error message: YouCompleteMe unavailable: [Error 2].
default

I didn't find anything about this error on google.
please help me.

Most helpful comment

@gwy1995 You can use \ but you have to escape them:

let g:ycm_path_to_python_interpreter = "C:\\Python27\\python.exe"

Also, the g:ycm_path_to_python_interpreter option is deprecated. You should use g:ycm_server_python_interpreter instead.

All 8 comments

Type the :messages command and paste the output.

Thank you very much, I made a mistake.

Is the issue resolved then?

I guess it is.

Yes, it's my mistake, I write a wrong path to variable g:ycm_path_to_python_interpreter,

in Windows, it should be something like 'C:/software/Python27/python',
not '/usr/bin/python'

@zhaochenyou
hi~
I have a error too.but i don't know how to solve it,can you help me?
the error messages :
image

maybe the path should be like 'let g:ycm_path_to_python_interpreter="C:/Python27/python.exe"',not 'let g:ycm_path_to_python_interpreter="C:\Python27\python.exe"',I used '/' instead of '\' and it worked

@gwy1995 You can use \ but you have to escape them:

let g:ycm_path_to_python_interpreter = "C:\\Python27\\python.exe"

Also, the g:ycm_path_to_python_interpreter option is deprecated. You should use g:ycm_server_python_interpreter instead.

Was this page helpful?
0 / 5 - 0 ratings