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

Unable to load oh-my-zsh plugin #583

Open
aserrallerios opened this issue Jul 17, 2017 · 20 comments

Comments

@aserrallerios
Copy link

commented Jul 17, 2017

I cannot load the kubectl plugin since latest update (either of antigen or oh-my-zsh). I'm using antigen 2.2.1. It worked on the first 2.X versions, but recently it stopped working. I guess it has something to do with how the plugin itself is loaded:

.zshrc:

source antigen.zsh
antigen init .antigenrc

.antigenrc:

antigen use oh-my-zsh

antigen bundles <<EOBUNDLES
    kubectl
EOBUNDLES

antigen apply

Then try the kubectl completion, it doesn't work for me. I also tested removing ~/.zcompdump* files. antigen list shows:

robbyrussell/oh-my-zsh ~ lib @ master
robbyrussell/oh-my-zsh ~ plugins/kubectl @ master

If I remove the plugin from the bundles list and instead load it later with antigen bundle kubectl it works.

@desyncr desyncr added the Bug label Jul 17, 2017

@desyncr desyncr self-assigned this Jul 17, 2017

@desyncr

This comment has been minimized.

Copy link
Member

commented Jul 17, 2017

@aserrallerios Thanks for reporting. I'm taking a look at this.

It seems it has to do how the plugin loads it completions (dynamically sourcing them) and how Antigen handles DOCBLOCKS blocks.

@desyncr

This comment has been minimized.

Copy link
Member

commented Jul 17, 2017

It seem the issue is introduced in v2.1.0 , previous version v2.0.2 works as expected.

@iarroyo5

This comment has been minimized.

Copy link

commented Jul 22, 2017

  • antigen v2.0.2
  • zsh 5.3.1 (x86_64-apple-darwin16.6.0)

I'm having the same issue with v2.0.2, none of the plugins inside my .antigenrc file works, but if
I run directly on the shell: antigen bundle plugin then it works.

I tried removing the .zcompdump* file/s and antigen reset but I'm still having the same issue.

I tried moving all the content from .antigenrc to .zshrc and nothing either.

This is my configuration
.antigenrc

# Load the oh-my-zsh's library
antigen use oh-my-zsh

antigen bundle <<EOBUNDLES
    # Bundles from the default repo (robbyrussell's oh-my-zsh)
    git
    brew
    heroku

    zsh-users/zsh-syntax-highlighting # Syntax highlighting bundle
    zsh-users/zsh-autosuggestions # Fish-like auto suggestions
    zsh-users/zsh-completions # Extra zsh completions
    lukechilds/zsh-nvm # NVM suggestions
EOBUNDLES

# Load the theme
antigen theme robbyrussell

# Tell antigen that you're done
antigen apply

.zshrc

source $HOME/antigen.zsh
antigen init $HOME/.antigenrc
@desyncr

This comment has been minimized.

Copy link
Member

commented Jul 22, 2017

Maybe related to a different issue, as in this one we're taking about completions only.

You may try:

  • remove ~/.antigen/init.zsh
  • source antigenrc rather than using antigen-init

Hope that helps.

@eloo

This comment has been minimized.

Copy link

commented Sep 9, 2017

i can confirm this issue in combination with the ubuntu oh-my-zsh plugin

@BrendanBall

This comment has been minimized.

Copy link

commented Sep 10, 2017

I have the same problem with kubectl as aserrallerios, except for me I can't even run antigen bundle kubectl manually in a shell to fix this. When I do this it just says Seems robbyrussell/oh-my-zsh is already installed! and kubectl completions don't work. I have to actually do source <(kubectl completion zsh) to get kubectl completions to work. I've tried antigen reset but it does nothing. I don't seem to have any zcompdump files. I would really like to get this working so if we can give you any more information please let me know.

EDIT:
It seems that I can't even put source <(kubectl completion zsh) in my zshrc as a workaround. it does nothing.

@aserrallerios

This comment has been minimized.

Copy link
Author

commented Sep 10, 2017

@BrendanBall try this:

antigen use oh-my-zsh

antigen bundles <<EOBUNDLES
    ... # other plugins
EOBUNDLES

antigen apply

antigen bundle kubectl

@desyncr is the next antigen version fixing it? Thanks!

@BrendanBall

This comment has been minimized.

Copy link

commented Sep 11, 2017

@aserrallerios I did that and did antigen reset but it didn't do anything

@aserrallerios

This comment has been minimized.

Copy link
Author

commented Oct 16, 2017

My ugly workaround:

In your .zshrc, after antigen apply or antigen init:

source $HOME/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/kubectl/kubectl.plugin.zsh
@aserrallerios

This comment has been minimized.

Copy link
Author

commented Oct 25, 2017

This bug also affects aws plugin of oh-my-zsh.

@eloo

This comment has been minimized.

Copy link

commented Oct 25, 2017

@aserrallerios
tested your workaround for the ubuntu plugin and it seems to works .
Thanks

@aserrallerios

This comment has been minimized.

Copy link
Author

commented Jan 26, 2018

Any estimation on when a fix will be available?
Thanks!

@desyncr

This comment has been minimized.

Copy link
Member

commented Jan 26, 2018

I'm on vacations right now but in a week I can work on the issue.

@seagle0128

This comment has been minimized.

Copy link

commented Mar 13, 2018

golang of oh-my-zsh plugin doesn't work with antigen on Ubuntu 16.04 LTS.

seagle0128 added a commit to seagle0128/dotfiles that referenced this issue Mar 13, 2018
seagle0128 added a commit to seagle0128/dotfiles that referenced this issue Mar 13, 2018
@lwshang

This comment has been minimized.

Copy link

commented Jun 12, 2018

I came into a similar issue that settings in .antigenrc doesn't work while if I move all stuffs into .zshrc then everything works fine. I assume that it is a bug with the antigen init command since it is the function which tells antigen to find .antigenrc and use the settings there.

freemanjp added a commit to gantsign/ansible_role_antigen that referenced this issue Aug 15, 2018
Pinned Antigen version
Pinned the Antigen version to the 2.0.2 release.

Later versions suffer from the following bug: zsh-users/antigen#583
freemanjp added a commit to gantsign/ansible_role_antigen that referenced this issue Aug 15, 2018
Pinned Antigen version
Pinned the Antigen version to the 2.0.2 release.

Later versions suffer from the following bug: zsh-users/antigen#583
freemanjp added a commit to gantsign/ansible_role_antigen that referenced this issue Aug 15, 2018
Pinned Antigen version
Pinned the Antigen version to the 2.0.2 release.

Later versions suffer from the following bug: zsh-users/antigen#583
freemanjp added a commit to gantsign/ansible_role_antigen that referenced this issue Aug 15, 2018
Pinned Antigen version
Pinned the Antigen version to the 2.0.2 release.

Later versions suffer from the following bug: zsh-users/antigen#583
freemanjp added a commit to gantsign/ansible_role_antigen that referenced this issue Aug 15, 2018
Pinned Antigen version
Pinned the Antigen version to the 2.0.2 release.

Later versions suffer from the following bug: zsh-users/antigen#583
freemanjp added a commit to gantsign/ansible_role_antigen that referenced this issue Aug 15, 2018
Pinned Antigen version
Pinned the Antigen version to the 2.0.2 release.

Later versions suffer from the following bug: zsh-users/antigen#583
freemanjp added a commit to gantsign/ansible_role_antigen that referenced this issue Aug 15, 2018
Pinned Antigen version (#6)
Pinned the Antigen version to the 2.0.2 release.

Later versions suffer from the following bug: zsh-users/antigen#583
@eloo

This comment has been minimized.

Copy link

commented Aug 21, 2018

looks like helm plugin is also not working :(

@hujianxin

This comment has been minimized.

Copy link

commented Oct 12, 2018

tmuxinator not working...

@nmaupu

This comment has been minimized.

Copy link

commented Jan 31, 2019

My ugly workaround:

In your .zshrc, after antigen apply or antigen init:

source $HOME/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/kubectl/kubectl.plugin.zsh

It's fixing the issue if I source the file while in a zsh shell. If I source it from the ~/.zshrc file, it doesn't do anything... I can't figure out why ...

@soullivaneuh

This comment has been minimized.

Copy link

commented Feb 17, 2019

I confirm as run into the issue with helm plugin. Works correctly under v2.0.2.

@seagle0128

This comment has been minimized.

Copy link

commented Feb 17, 2019

Still not working in 2.2.3. I guess it may be related to cache mechanism.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.