Closed Bothari closed 7 years ago
I realise that this isn't the most insightful bug report, ("it crashes!!"), but perhaps there's something in the logs that I am missing, or perhaps I have configured things incorrectly. YCMD has been working fine for me for months, but I updated, rebuilt and suddenly it started crashing.
Adding my vimrc YCM specific configuration info too, in case it's helpful.
" you complete me
:let g:ycm_server_python_interpreter = "C:/Users/mdyckhoff/AppData/Local/Programs/Python/Python35/python.exe"
:let g:ycm_confirm_extra_conf = 0
:let g:ycm_autoclose_preview_window_after_insertion = 1
:let g:ycm_key_list_select_completion = ['<TAB>', '<Down>']
:let g:ycm_server_keep_logfiles = 1
:let g:ycm_server_log_level = 'debug'
Thanks for the report!
I can see from the debug info that you're using clang 4.0. I wonder if this might be related to the clang 4 upgrade we just did.
However, I notice that the clang 4.0 change (https://github.com/Valloric/ycmd/commit/ca5d9f842f182c91d7e44fdc69b996521b9c9d16) has not been updated into YCM, did you either:
As such, could you try checking out the commit prior to the above PR being merged, say https://github.com/Valloric/ycmd/commit/de3e92aadd421e3a23412101a84d1abbe56afb4d and seeing if you get the same result (after a rebuild)?
Thanks for the speedy reply! I hadn't considered the Clang version being an issue. Concerning your two questions:
Thing is, we don't actually use clang 4.0, we are doing PS4 development and using a branched version of clang 3.8. I was only building against clang 4.0 because that's what I downloaded.
To try and remedy the situation, I instead downloaded llvm 3.9.1 installer, extracted the libraries and put them somewhere, pointed my cmake command at that instead, and it now works! My updated command line is now this.
cmake -G "Visual Studio 12 Win64" -DPATH_TO_LLVM_ROOT="c:\Users\mdyckhoff\Projects\llvm-3.9.1" -DUSE_PYTHON2=0 -DPYTHON_INCLUDE_DIR="C:\Users\mdyckhoff\appdata\local\Programs\Python\Python35\include" -DPYTHON_LIBRARY="C:\Users\mdyckhoff\appdata\local\Programs\Python\Python35\libs\python35.lib" . "c:\Program Files\Vim\vimfiles\plugged\youcompleteme\third_party\ycmd\cpp"
Let me know if there's anything else I can do to help, otherwise it seems like this is a closed issue!
Glad it is resolved. Technically, we only support using the version of libclang that install.py
downloads. Closing this as i think the issue is resolved.
Thanks again for your advice. I'll admit I've never had any luck with getting install.py to work, hence why I build it manually. Perhaps I'll try digging around with that and see what my issues are.
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:vim --version
.:YcmDebugInfo
.:YcmToggleLogs
command.install.py
(orcmake
/make
/ninja
) including its invocationThank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.
Issue Details
Load a .cpp file from a reasonably large project (the ycmd source in my test case). YCMD crashes almost immediately.
I'm unable to generate a suitably large test project, but simply using the latest install of ycmd from GitHub repros the crash. Using a smaller test project (a few dozen cpp and h files) does not reproduce the problem, ycmd runs successfully without crashing.
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Contents of YCM, ycmd and completion engine logfiles
ycm_zfetpv.log.txt ycmd_65006_stderr_n021oy.log.txt ycmd_65006_stdout__r2tvn.log.txt
OS version, distribution, etc.
Windows 7 Professional SP1. I built ycmd myself from latest source using these steps: