Closed RivenSkaye closed 1 year ago
Sorry, mingw is not an officially supported platform. Per the instructions on README, for windows, we assume you are using cmd.exe. This works fine. Mingw can be made to work, and there is some community-supported info here: https://github.com/ycm-core/YouCompleteMe/wiki/Windows-Installation-Guide-for-Unix%E2%80%90like-Environments
As an aside, you provably shouldn't be using libclang completer nowadays (it's considered legacy); we officially recommend using clangd completer instead. To do that use install.py
without --clang-completer
and specify g:ycm_clangd_binary_path
to a clangd that works on your mingw environment.
but I don't consider it a bug that YCM's installer/prebuilt binaries don't support mingw, so closing.
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.vim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what I expected to happen and what actually happened.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.
You're very much welcome! Proper reports save
livesa lot of precious developer timeIssue Details
Attempted installation through
vim-plug
and subsequent CLI steps to build YCM. The build subsequently fails in one of two ways.It fails on account of not being able to find the
libclang
it downloaded itself, and halts.It fails when using
--system-libclang
PlugInstall 'ycm-core/YouCompleteMe'
Add
Plug 'ycm-core/YouCompleteMe'
to.vimrc
:wq
cd ~/.vim/plugged/YouCompleteMe
python3.11 install.py --clang-completer --rust-completer --verbose
(fails to find thelibclang
it downloads) orpython3.11 install.py --clang-completer --rust-completer --verbose --system-libclang
(errors in compilation)> ~/ycmd_build[-sys].log 2>&1
to the commands to produce the attached log filesSuccessful compilation and use of YCM
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Output of
YcmDiags
Output of
git rev-parse HEAD
in YouCompleteMe installation directoryContents of YCM, ycmd and completion engine logfiles
N/A
OS version, distribution, etc.
From the Windows info itself:
Output of build/install commands
See log files provided earlier, gist doesn't like the 46MB one either
If any additional info is desired, please do let me know and I'll provide it ASAP. I was busy migrating my office workflow to vim, and as such I haven't uninstalled my alternative options yet. It does, however, mean I can only collect info during my office hours.