Found /Users/username/dev/understanding-unix-programming/08/.ycm_extra_conf.py. Load?
(Question can be turned off with options, see YCM docs)
[O]k, (C)ancel
but i set let g:ycm_global_ycm_extra_conf = "~/.vim/bundle/.ycm_extra_conf.py" on my vimrc,
the file I copied from https://github.com/Valloric/ycmd/blob/master/cpp/ycm/.ycm_extra_conf.py
Any suggestions?
I don't think vim understands ~. Try $HOME instead?
Take a look at g:ycm_confirm_extra_conf
You got a global ycm conf set (you can use ~), but the directory in which you're editing the file contains another ycm conf, so ycm asks if you want to load it. Note: setting the option above just loads the _local_ ycm conf.
Finally, you shouldn't copy and paste that configuration file, at least you should change the flags for your usecase and system.
thanks @cHoco
Since @cHoco answered your question, I am closing the issue.
This issue needs to be reopened since the answer provided by choco is not an acceptable solution to the problem.
According to the documentation, "When this option is set to 1 YCM will ask once per .ycm_extra_conf.py file if it is safe to be loaded."
However, YCM asks every single time for the same files. This is really annoying.
Completely disabling this check is not acceptable since I don't want any malicious code to be executed.
Even when putting the path to file, the path to the directory or something else into the let g:ycm_extra_conf_globlist option, YCM still asks everytime.
@philippludwig I'm interested to know if you ever found a solution to this problem? I do not have a global configuration set, and yet I am prompted every time I open the same file. I have resorted to turning off the confirmation globally.
@dmhenry I am now using a global .ycm_extra_conf.py as described in this article by Jonas Devlieghere: https://jonasdevlieghere.com/a-better-youcompleteme-config/
This eliminates the need for per-project .ycm_extra_conf.py files; it works based on the file compile_commands.json generated by CMake and behaves exactly as I want it to.
I'm using YCM only for C++ and Java (together with eclim), so depending on the languages for which you are using it ymmv.
Note YCM now natives supports compile commands database without any extra conf file. See the README for details.
thnx guys! ITS WOOOOORKSSSSSSSSSS
let g:ycm_global_ycm_extra_conf = '~/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/.ycm_extra_conf.py'
can solve this problem.
No it can鈥檛. You should read the readme.
Locking.
Most helpful comment
This issue needs to be reopened since the answer provided by choco is not an acceptable solution to the problem.
According to the documentation, "When this option is set to 1 YCM will ask once per .ycm_extra_conf.py file if it is safe to be loaded."
However, YCM asks every single time for the same files. This is really annoying.
Completely disabling this check is not acceptable since I don't want any malicious code to be executed.
Even when putting the path to file, the path to the directory or something else into the let g:ycm_extra_conf_globlist option, YCM still asks everytime.