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 · 23 comments
Open

Unable to load oh-my-zsh plugin #583

aserrallerios opened this issue Jul 17, 2017 · 23 comments
Assignees
Labels
Milestone

Comments

@aserrallerios
Copy link

aserrallerios 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
Copy link
Member

desyncr 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
Copy link
Member

desyncr commented Jul 17, 2017

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

@inakiarroyo
Copy link

inakiarroyo 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
Copy link
Member

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

eloo commented Sep 9, 2017

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

@BrendanBall
Copy link

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

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

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

@aserrallerios
Copy link
Author

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

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

@eloo
Copy link

eloo commented Oct 25, 2017

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

@aserrallerios
Copy link
Author

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

@desyncr
Copy link
Member

desyncr commented Jan 26, 2018

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

@seagle0128
Copy link

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

lwshang 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 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 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 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 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 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 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 the Antigen version to the 2.0.2 release.

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

eloo commented Aug 21, 2018

looks like helm plugin is also not working :(

@hujianxin
Copy link

tmuxinator not working...

@nmaupu
Copy link

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

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

@seagle0128
Copy link

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

@jjhidalgar
Copy link

jjhidalgar commented Jun 10, 2020

Not working in 2.2.2, and as @nmaupu says, workaround does not work either if run from .zshrc or .antigenrc, it only works manually executing it once logged-in

@libsamek
Copy link

libsamek commented Jun 18, 2020

I have the same issue as @jaimehrubiks with aws and gcloud oh-my-zsh plugin.
I'm running this on OSX (zsh 5.7.1, Antigen v2.2.2).

EDIT: Upgrade to v.2.2.3 and zsh 5.8 does not help.

@pPrecel
Copy link

pPrecel commented Dec 11, 2020

Same issue here. Any conclusions?

uname -a: [...]Darwin Kernel Version 19.6.0[...]
antigen version: Antigen v2.2.3 (ff391b5)
zsh --version: zsh 5.7.1

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

No branches or pull requests