Skip to content
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

zplug cannot load package containing pmodload from prezto #532

Open
Vonfry opened this issue Oct 12, 2019 · 2 comments
Open

zplug cannot load package containing pmodload from prezto #532

Vonfry opened this issue Oct 12, 2019 · 2 comments

Comments

@Vonfry
Copy link

Vonfry commented Oct 12, 2019

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
Copy link
Author

Vonfry commented Oct 12, 2019

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

@Vonfry Vonfry changed the title Do not load package containing pmodload from prezto zplug cannot load package containing pmodload from prezto Oct 22, 2019
@yumitsu
Copy link

yumitsu commented Feb 8, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants