-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation failed with error: failed to initialized index git repository #3317
Comments
The installation is choking when trying to install the go completer and if I understand correctly, there's nothing YCM can do about this, but let's make sure. Try the following:
|
@bstaletic I tried both Could it actually be related to Rust completer? Which command I should run to test it? |
After go completer it installs the javascript one:
Then it installs the rust completer:
Then java completer, which is a bit more involved, but it comes down to downloading a file and extracting it in a specific place. And finally TypeScript completer:
|
I can reproduce with your cargo init in some new folder so this looks like a Cargo issue, not a YCM one. In fact, it's probably the same issue as rust-lang/cargo#4777. Closing. |
Interestingly enough, the following git alias works:
|
@bstaletic Great find, mate! Actually keeping the whole command in a single line also works. I guess there's probably some sort of limitation on number of lines for a single alias in the gitconfig parser of cargo. Since rust-lang/cargo#4777 doesn't seem to have a high priority this should be the workaround for now. |
I don't think so. Cargo was complaining about the |
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
insidethe brackets) before filing your issue:
Frequently Asked Questions section.
about to report and couldn't find an answer to my problem. (Example Google
search.)
vim --version
.:YcmDebugInfo
.the
:YcmToggleLogs
command.version) I am using.
my issue, including what I expected to happen and what actually happened.
of
install.py
(orcmake
/make
/ninja
) including its invocationthat any help I receive is a selfless, heartfelt gift of their free time. I
know I am not entitled to anything and will be polite and courteous.
actually perform all of these steps.
Thank 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
I've got some crazy settings in my global
.gitconfig
, e.g.It causes errors when I try to build YCM:
I can currently work around this by commenting out those configurations before I build YCM so it's definitely not something crucial.
Diagnostic data
Output of
vim --version
OS version, distribution, etc.
Output of build/install commands
https://gist.github.com/Frederick888/995b0ffab3d19e2a68b31bd5e511c298
The text was updated successfully, but these errors were encountered: