Prezto: submodule update fails

Created on 29 Nov 2017  ·  4Comments  ·  Source: sorin-ionescu/prezto

Description

Following the update procedure of the README, I'm executing
git submodule update --init --recursive in $ZPREZTODIR, after a successful git pull.

Expected behavior

Execute the submodule update

Actual behavior

(stable) └─❱❱❱ git submodule update --init --recursive                    +7147 18:26 ❰─┘
Submodule 'modules/fasd/external' (https://github.com/clvv/fasd.git) registered for path 'modules/fasd/external'
Submodule 'modules/prompt/external/async' (https://github.com/mafredri/zsh-async.git) registered for path 'modules/prompt/external/async'
Submodule 'modules/prompt/external/powerlevel9k' (https://github.com/bhilburn/powerlevel9k.git) registered for path 'modules/prompt/external/powerlevel9k'
Cloning into '/Users/klay6683/.zprezto/modules/fasd/external'...
Cloning into '/Users/klay6683/.zprezto/modules/prompt/external/async'...
Cloning into '/Users/klay6683/.zprezto/modules/prompt/external/powerlevel9k'...
Submodule path 'modules/autosuggestions/external': checked out '9f9237ab8a530eeff389161202bbc7283ad6af3e'
Submodule path 'modules/completion/external': checked out '2a30b05a5cf724a2d1c4c140c302dbf93f6aa6f6'
Submodule path 'modules/fasd/external': checked out '90b531a5daaa545c74c7d98974b54cbdb92659fc'
Submodule path 'modules/history-substring-search/external': checked out 'aae3388491c2312c4efb2e86bcb999927bb2900e'
error: Server does not allow request for unadvertised object 3ad94b659910c775a6560c45b1524d23d8c83b09
Fetched in submodule path 'modules/prompt/external/agnoster', but it did not contain 3ad94b659910c775a6560c45b1524d23d8c83b09. Direct fetching of that commit failed.

A further symptom now is getting this message after opening a new terminal:

Couldn't read file /Users/klay6683/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup containing theme powerlevel9k.
prompt_sorin_setup:9: async: function definition file not found
Couldn't read file /Users/klay6683/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup containing theme powerlevel9k

Steps to Reproduce

  1. cd $ZPREZTODIR
  2. git pull
  3. 3.

Versions

  • Prezto commit: 043d09bbfe0c22656aa68819640d7fc323c8ba79
  • ZSH version: 5.4.2 (homebrew)
  • OS information: macOS 10.12.6

Most helpful comment

Updating submodules can be a massive pain. :(

That commit definitely exists in agnoster: https://github.com/agnoster/agnoster-zsh-theme/commit/3ad94b659910c775a6560c45b1524d23d8c83b09

It also looks like the submodule updating may have failed partway through, so you're missing async (which is why the second error started popping up).

Can you try running git submodule sync before the git submodule update --init --recursive?

All 4 comments

Updating submodules can be a massive pain. :(

That commit definitely exists in agnoster: https://github.com/agnoster/agnoster-zsh-theme/commit/3ad94b659910c775a6560c45b1524d23d8c83b09

It also looks like the submodule updating may have failed partway through, so you're missing async (which is why the second error started popping up).

Can you try running git submodule sync before the git submodule update --init --recursive?

thx, that worked!

(stable) └─❱❱❱ git submodule update --init --recursive                    +7117 18:47 ❰─┘
remote: Counting objects: 14, done.
remote: Total 14 (delta 1), reused 1 (delta 1), pack-reused 13
Unpacking objects: 100% (14/14), done.
From https://github.com/agnoster/agnoster-zsh-theme
   43cb371..3ad94b6  master     -> origin/master
Submodule path 'modules/prompt/external/agnoster': checked out '3ad94b659910c775a6560c45b1524d23d8c83b09'
Submodule path 'modules/prompt/external/async': checked out 'b001fa529a874fbe8bd22a9d4526153138645289'
Submodule path 'modules/prompt/external/powerlevel9k': checked out '17c069d25ac7b24af6b5dc7ecb9597cef881f582'
Submodule 'shunit2' (https://github.com/kward/shunit2.git) registered for path 'modules/prompt/external/powerlevel9k/shunit2'
Cloning into '/Users/klay6683/.zprezto/modules/prompt/external/powerlevel9k/shunit2'...
Submodule path 'modules/prompt/external/powerlevel9k/shunit2': checked out '60dd60bcd1573befe38465010263ab242e55811d'
Submodule path 'modules/prompt/external/powerline': checked out 'c48e4c69ef5c368ea7cda961ed9d0e298a5ae1fc'
Submodule path 'modules/prompt/external/pure': checked out 'a95d55cc7d3a73fc562ac11e23c26113ed6d58cf'
Submodule path 'modules/syntax-highlighting/external': checked out '434af7b11dd33641231f1b48b8432e68eb472e46'

Glad to hear it! Thanks for following up. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EllieRagone picture EllieRagone  ·  4Comments

daiyanze picture daiyanze  ·  4Comments

jeffwidman picture jeffwidman  ·  3Comments

voanhduy1512 picture voanhduy1512  ·  3Comments

belak picture belak  ·  4Comments