Youcompleteme: cregex did not contain cc538bb6d0fcf0a6411537a5522d13cc9b86789d

Created on 2 Sep 2019  路  5Comments  路  Source: ycm-core/YouCompleteMe

after i run the following command

git submodule sync
git submodule update --init --recursive

it show me the error information

error: Server does not allow request for unadvertised object cc538bb6d0fcf0a6411537a5522d13cc9b86789d
Fetched in submodule path 'third_party/cregex', but it did not contain cc538bb6d0fcf0a6411537a5522d13cc9b86789d. Direct fetching of that commit failed.

it looks like that the git repository

https://github.com/ycm-core/regex.git

has not a commit id cc538bb6d0fcf0a6411537a5522d13cc9b86789d

_Originally posted by @jinzk in https://github.com/ycm-core/YouCompleteMe/issues/3476#issuecomment-527009353_

Most helpful comment

Some .gitmodules or .git/config is still targeting the old URL. Doing git submodule sync --recursive in YouCompleteMe directory should fix the URL.

All 5 comments

https://github.com/ycm-core/regex/commits/master

The requested commit is the latest one. At worst, nuke the YouCompleteMe/third_party/ycmd/third_party/cregex and clone the repo there manually.

Just to provide another feedback, I'm also hitting the same problem w/ Vundle.

[2019-09-02 16:04:38] Plugin Valloric/YouCompleteMe
[2019-09-02 16:04:38] $ cd '/****/.vim/bundle/YouCompleteMe' && git pull && git submodule update --init --recursive
[2019-09-02 16:04:38] > From https://github.com/Valloric/YouCompleteMe
[2019-09-02 16:04:38] >    fa92f40d..5274b73f  master     -> origin/master
[2019-09-02 16:04:38] >    c2849f65..c963ec11  gh-pages   -> origin/gh-pages
[2019-09-02 16:04:38] > Fetching submodule third_party/ycmd
[2019-09-02 16:04:38] > From https://github.com/Valloric/ycmd
[2019-09-02 16:04:38] >    be84d443..3365e2d4  master     -> origin/master
[2019-09-02 16:04:38] > Fetching submodule third_party/ycmd/third_party/cregex
[2019-09-02 16:04:38] > Updating fa92f40d..5274b73f
[2019-09-02 16:04:38] > Fast-forward
[2019-09-02 16:04:38] >  README.md             | 17 +++++++++++------
[2019-09-02 16:04:38] >  doc/youcompleteme.txt | 14 +++++++++-----
[2019-09-02 16:04:38] >  third_party/ycmd      |  2 +-
[2019-09-02 16:04:38] >  3 files changed, 21 insertions(+), 12 deletions(-)
[2019-09-02 16:04:38] > Submodule path 'third_party/ycmd': checked out '3365e2d44817d127596f59f70a6240507eb4b0bc'
[2019-09-02 16:04:38] > error: Server does not allow request for unadvertised object cc538bb6d0fcf0a6411537a5522d13cc9b86789d

Some .gitmodules or .git/config is still targeting the old URL. Doing git submodule sync --recursive in YouCompleteMe directory should fix the URL.

Ok! Thanks @bstaletic!

Thanks @bstaletic, work for me

Was this page helpful?
0 / 5 - 0 ratings