-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
YouCompleteMe failes to install or update #75
Comments
Some additional info, from what I can tell, vim-plug is installing YouCompleteMe incorrectly,
After deleting the folder and reinstalling manually.
now it works. No issues with updating as well, so something odd is going on. Now might be worth noting that I'm using /bin/bash as my shell for compatibility reasons with the vim-go plugin. |
Removed old repo, tried again, worked this time! Difference between this installation and the last one was the last one was done in parallel with all the other plugins, on the first run of vim-plug. Is this a concurrency issue? I don't envy you. Yup, parrallel issue, if I remove all my plugins and install again I get this:
and a follow up git submodule update --init --recursive in the YouCompleteMe repository... actually works, wtf? Something is screwy here. |
Strange. There shouldn't be any concurrency issue. I know there are people already using vim-plug to install/update YCM. I'll try it myself and let you know of the result. |
Ah, a similar thing happened to me, although not exactly the same. What happened is that the installation process timed out while doing |
I just succeeded to install YCM in parallel with a really large |
If installation process is terminated during `git submodule ...`, the directory ends up in an inconsistent directory. This commit ensures that the directory is removed on failure.
If installation process is terminated during `git submodule ...`, the directory ends up in an inconsistent state. This commit ensures that the directory is removed on failure. Fixed Ruby 1.8.7 compatibility.
Hey, I've just updated vim-plug to remove the plugin directory when timeout occurs (the process is silent for |
I see, yah that submodule call does take some time. OK, I'll test it again with an empty directory, to verify that the automatically increasing timeout does it's job. Then bump it up. |
The default number of retries is 2 (if
This scenario might eventually work for YCM unless that submodule call is unresponsive for 180 seconds. However, each failure will start from scratch, cloning the entire repository again, which can be very wasteful. So if you know in advance that YCM might take long to install, it's better to just start with a higher |
It works! +1 developer points. I'm not very familiar with vimscript, so I don't know how feasible it is to add some kind of spinner for these long running operations, but It would be worth vim-plugs time. Thanks for the work! |
"if you know in advance that YCM might take long to install, it's better to just start with a higher g:plug_timeout value" @junegunn what timeout value do you recommend for YCM? |
@leebrooks0 Well, I don't know I don't use it. But if I were frequently running into timeouts, I would simply set it to a very large value, like 1000, and stop worrying about it. |
Update is erroring with
The following is my .vimrc file:
The text was updated successfully, but these errors were encountered: