Open Rubonnek opened 7 years ago
Can you reproduce this with the Clementine project? It's possible that there's something odd about your project that waits for input from stdin, etc.
Yeah, I'm able to reproduce the problem with that project too.
Similar issue observed caused by ccache, here's the env_config
{'YCM_CONFIG_GEN_CC_PASSTHROUGH': '/usr/lib/ccache/clang', 'CXX': 'clang++', 'YCM_CONFIG_GEN_CC_LOG': '/tmp/tmpWpiUjT', 'YCM_CONFIG_GEN_CXX_PASSTHROUGH': '/usr/lib/ccache/clang++', 'YCM_CONFIG_GEN_CXX_LOG': '/tmp/tmp5da3BG', 'HOME': '/home/ly', 'CC': 'clang', 'PATH': '/usr/local/etc/vim/plugged/YCM-Generator/fake-toolchain/Unix:/usr/local/etc/vim/plugged/fzf/bin:/usr/local/opt/android-sdk/platform-tools:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin'}
@liyinsg That was it! I just uninstalled ccache
and now ycm_generator
works!
@Rubonnek No need to uninstall ccache, currently my workaround is create a wrapper script calling $YCMGENPATH/config_gen.py -v -c /usr/bin/clang++
Ahhh, that explains it. During the configure phase, we invoke the underlying compiler (CC
/CXX
) since cmake will compile some test files to determine the compiler's behaviour/functionality. Since ccache
was also installed, it was getting invoked instead, and blocking for some reason.
@liyinsg Thanks a lot! That works too.
Hello.
Currently when I run
I get the following:
And that's it. It stays there for more than half an hour and nothing happens until I cancel it.
I'm currently using the AUR package at: https://aur.archlinux.org/packages/ycm-generator-git