zplug icon indicating copy to clipboard operation
zplug copied to clipboard

zplug cannot load package containing pmodload from prezto

Open Vonfry opened this issue 6 years ago • 2 comments

Describe the bug In prezto, some modules contain dependencies when loading by using pmodload, such as module/git. For these modules, zlug only load the first one with pmodload and then stop load remaining code in init.zsh.

~~Of course, this problem can be fixed with use tag to load other files by myself, but I think this should be done by zplug automatically.~~ I try to add use tag to load scripts by myself, but nothing happended.

To Reproduce

source $ZPLUG_HOME/init.zsh
zplug "module/git",  from:prezto
zplug load --verbose

I get Load "$ZPLUG_HOME/repos/sorin-ionescu/prezto/modules/helper/init.zsh" (module/git), but the alias.zsh in modules/git is not loaded which run in modules/git/init.zsh by source "${0:h}/alias.zsh".

And other modules like spectrum have the same problem.

Expected behavior Load all dependencies and the module.

Env (please complete the following information):

  • zplug version: 2.4.2
  • zsh --version: zsh 5.7.1 (x86_64-pc-linux-gnu)
  • uname -a: Linux nixos 4.19.78 #1-NixOS SMP Mon Oct 7 16:57:29 UTC 2019 x86_64 GNU/Linux

Minimal zshrc (with less than 30 lines)

See To Reproduce

Vonfry avatar Oct 12 '19 09:10 Vonfry

Now I deal with this problem by loading whole prezto and use prezto to manage its modules.

Vonfry avatar Oct 12 '19 10:10 Vonfry

If I'm not mistaken, same thing happens with plugins from OMZ - I had to remove them all after it started to take up to 30-40 seconds for zplug to load.

yumitsu avatar Feb 08 '20 23:02 yumitsu