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

Antigen inconsistent using 'bundles' #628

Closed
jyaworski opened this issue Dec 1, 2017 · 8 comments
Closed

Antigen inconsistent using 'bundles' #628

jyaworski opened this issue Dec 1, 2017 · 8 comments
Assignees
Labels
Milestone

Comments

@jyaworski
Copy link

jyaworski commented Dec 1, 2017

Trying to run antigen bundles ... after antigen use oh-my-zsh on the develop branch, I get inconsistent behavior:

Installing robbyrussell/oh-my-zsh!...
(eval):1: bad pattern: plugins/^[[01
Installing the8/terminal-app.zsh!...
Installing unixorn/tumult.plugin.zsh!...
(eval):1: bad pattern: plugins/^[[01
Installing unixorn/tumult.plugin.zsh!...
(eval):1: bad pattern: plugins/^[[01
Installing unixorn/tumult.plugin.zsh!...
(eval):1: bad pattern: plugins/^[[01
Installing unixorn/tumult.plugin.zsh!...
(eval):1: bad pattern: plugins/^[[01
Installing unixorn/tumult.plugin.zsh!...
(eval):1: bad pattern: plugins/^[[01
Installing unixorn/tumult.plugin.zsh!...
(eval):1: bad pattern: plugins/^[[01
Installing unixorn/tumult.plugin.zsh!...
(eval):1: bad pattern: plugins/^[[01
Installing unixorn/tumult.plugin.zsh!...
(eval):1: bad pattern: plugins/^[[01
Installing unixorn/tumult.plugin.zsh!...
(eval):1: bad pattern: plugins/^[[01
Installing unixorn/tumult.plugin.zsh!...
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
(eval):1: bad pattern: plugins/^[[01
Installing Tarrasch/zsh-autoenv!...
Installing zsh-users/zsh-autosuggestions!...
Installing zsh-users/zsh-completions!...
Installing zsh-users/zsh-syntax-highlighting!...
Installing zsh-users/zsh-history-substring-search!...
Installing tylerreckart/odin!...
Installing wesbos/Cobalt2-iterm.git!...
Installing wesbos/Cobalt2-iterm!...
(eval):1: bad pattern: plugins/^[[01
Installing ... Done. Took 0s.
Installing the8/terminal-app.zsh... Error! Activate logging and try again.
Installing unixorn/tumult.plugin.zsh... Error! Activate logging and try again.
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
Installing Tarrasch/zsh-autoenv... Error! Activate logging and try again.
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
(eval):1: bad pattern: plugins/^[[01
Seems  is already installed!
Installing zsh-users/zsh-autosuggestions... Error! Activate logging and try again.
Installing zsh-users/zsh-completions... Error! Activate logging and try again.
Installing zsh-users/zsh-syntax-highlighting... Error! Activate logging and try again.
Installing zsh-users/zsh-history-substring-search... Error! Activate logging and try again.
Installing tylerreckart/odin... Error! Activate logging and try again.
Installing wesbos/Cobalt2-iterm.git... Error! Activate logging and try again.

Opening up another terminal (and therefore sourcing .zshrc again), I see none of these errors. However, one of the plugins that I load is chruby, and I call it after I load plugins. If I manually use antigen bundle chruby then it works:

/Users/jyaworski/.zshrc:117: command not found: chruby
 ✝  ~  antigen bundle chruby
 ✝  ~  antigen apply
 ✝  ~  chruby -h
usage: chruby [RUBY|VERSION|system] [RUBYOPT...]

Any ideas what could be causing this?

@desyncr
Copy link
Member

desyncr commented Dec 1, 2017

Zsh version? Can you send me the debug.log located in ~/.antigen/?

@desyncr
Copy link
Member

desyncr commented Dec 1, 2017

Also .zshrc/.antigenrc configuration.

@jyaworski
Copy link
Author

jyaworski commented Dec 1, 2017

The debug.log shows a bunch of this for the failures:

[TRA][1512142583.6924459934] Called antigen-bundle with zsh-users/zsh-autosuggestions BUNDLE
[TRA][1512142583.6924459934] TRACE
-antigen-hook-antigen-bundle
-antigen-hook-handler
antigen-bundle
antigen-bundle-parallel-execute
antigen-apply-parallel-execute
-antigen-hook-handler
antigen-apply
-antigen-hook-antigen
-antigen-hook-handler
antigen
/Users/jyaworski/.zshrc
[TRA][1512142583.7004990578] /Users/jyaworski/antigen/bin/antigen.zsh:861
[TRA][1512142583.7004990578] -antigen-bundle-instal failed to clone https://github.com/zsh-users/zsh-autosuggestions.git BUNDLE

For chruby, it shows this:

[LOG][1512096068.9507129192] Processing deferred bundle: chruby DEFER
[WRN][1512096068.9509620667] /Users/jyaworski/antigen/bin/antigen.zsh:1469
[WRN][1512096068.9509620667] Updated meta: target antigen-bundle mode repeat type pre called 41
[WRN][1512096068.9511239529] /Users/jyaworski/antigen/bin/antigen.zsh:1469
[WRN][1512096068.9511239529] Updated meta: target antigen-bundle mode repeat type replace called 2
[WRN][1512096068.9512500763] /Users/jyaworski/antigen/bin/antigen.zsh:1484
[WRN][1512096068.9512500763] Processing hooks: antigen-bundle-cached antigen-bundle-parallel
[WRN][1512096068.9513859749] /Users/jyaworski/antigen/bin/antigen.zsh:1487
[WRN][1512096068.9513859749] Pre hook: antigen-bundle-cached chruby
[WRN][1512096068.9515640736] /Users/jyaworski/antigen/bin/antigen.zsh:1498
[WRN][1512096068.9515640736] Replace hook: antigen-bundle-parallel chruby
[TRA][1512096068.9516870975] /Users/jyaworski/.zshrc:5
[TRA][1512096068.9516870975] antigen-bundle-parallel: chruby PARALLEL
[TRA][1512096068.9516870975] TRACE
antigen-bundle-parallel
-antigen-hook-handler
antigen-bundle
antigen-apply-defer
-antigen-hook-handler
antigen-apply
-antigen-hook-antigen
-antigen-hook-handler
antigen
/Users/jyaworski/.zshrc

ZSH version:

 ✝  ~  zsh --version
zsh 5.4.2 (x86_64-apple-darwin17.0.0)

@desyncr
Copy link
Member

desyncr commented Dec 1, 2017

Thanks for the info. I'll gonna give it a try.

@desyncr
Copy link
Member

desyncr commented Dec 1, 2017

It worked using this configuration.

Maybe a custom opt is causing these issues. Have you changed your zshrc?

[root@antigen ~]# curl -L git.io/antigen-nightly > antigen.zsh                                                                                         
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                                                        
                                 Dload  Upload   Total   Spent    Left  Speed                                                                          
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0                                                                         
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0                                                                         
100 58503  100 58503    0     0  57796      0  0:00:01  0:00:01 --:--:-- 57796                      
                                                                                                                                                                                 
[root@antigen]~# zsh --version                                                                                                                         
zsh 5.3.1 (x86_64-redhat-linux-gnu)   

[root@antigen ~]# cat .zshrc                                                                                                                           
setopt nonomatch                                                                                                                                       
setopt re_match_pcre                                                                                                                                   
setopt EXTENDED_GLOB                                                                                                                                   
source $HOME/antigen.zsh                                                                                                                               
antigen use oh-my-zsh                                                                                                                                  
                                                                                                                                                       
antigen bundles <<EOBUNDLES                                                                                                                            
RobSis/zsh-reentry-hook                                                                                                                                
the8/terminal-app.zsh                                                                                                                                  
unixorn/tumult.plugin.zsh                                                                                                                              
ruby                                                                                                                                                   
gem                                                                                                                                                    
ssh-agent                                                                                                                                              
battery                                                                                                                                                
chruby                                                                                                                                                 
rake-fast                                                                                                                                              
osx                                                                                                                                                    
rust      
brew
cargo
cabal
vagrant
tmux
kitchen
colored-man-pages
Tarrasch/zsh-autoenv
extract
svn
emoji
gitfast
git-extras
aws
gpg-agent
jsontools
golang
mosh
sudo
xcode
python
pyenv
vundle
gnu-utils
sublime
bundler
zsh-users/zsh-autosuggestions
zsh-users/zsh-completions

zsh-users/zsh-syntax-highlighting

zsh-users/zsh-history-substring-search
tylerreckart/odin
wesbos/Cobalt2-iterm.git
EOBUNDLES

if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
  antigen theme wesbos/Cobalt2-iterm.git cobalt2.zsh-theme
else
  antigen theme tylerreckart/odin odin.zsh-theme
fi
antigen apply

[root@antigen ~]# zsh                                                                                                                                  
Installing robbyrussell/oh-my-zsh!...                                                                                                                  
Installing RobSis/zsh-reentry-hook!...
Installing the8/terminal-app.zsh!...
Installing unixorn/tumult.plugin.zsh!...
Installing Tarrasch/zsh-autoenv!...
Installing zsh-users/zsh-autosuggestions!...
Installing zsh-users/zsh-completions!...
Installing zsh-users/zsh-syntax-highlighting!...
Installing zsh-users/zsh-history-substring-search!...
Installing tylerreckart/odin!...
Installing wesbos/Cobalt2-iterm!...
Oh My Zsh brew plugin:

  With the advent of their 1.0 release, Homebrew has decided to bundle
  the zsh completion as part of the brew installation, so we no longer
  ship it with the brew plugin; now it only has brew aliases.

  If you find that brew completion no longer works, make sure you have
  your Homebrew installation fully up to date.

  You will only see this message once.

/usr/bin/which: no aws_zsh_completer.sh in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/.antigen/bundles/robbyrussell/oh-my-zsh/$
ib:/root/.antigen/bundles/RobSis/zsh-reentry-hook:/root/.antigen/bundles/the8/terminal-app.zsh:/root/.antigen/bundles/unixorn/tumult.plugin.zsh:/root/$
antigen/bundles/robbyrussell/oh-my-zsh/plugins/ruby:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gem:/root/.antigen/bundles/robbyrussell/oh-m$
-zsh/plugins/ssh-agent:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/battery:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/chruby:/roo$
/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/rake-fast:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/osx:/root/.antigen/bundles/robbyrusse$
l/oh-my-zsh/plugins/rust:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/brew:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/cargo:/root/$
antigen/bundles/robbyrussell/oh-my-zsh/plugins/cabal:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/vagrant:/root/.antigen/bundles/robbyrussell$
oh-my-zsh/plugins/tmux:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/kitchen:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/colored-man$
pages:/root/.antigen/bundles/Tarrasch/zsh-autoenv:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/extract:/root/.antigen/bundles/robbyrussell/oh-
my-zsh/plugins/svn:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/emoji:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gitfast:/root/.ant
igen/bundles/robbyrussell/oh-my-zsh/plugins/git-extras:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/aws:/root/.antigen/bundles/robbyrussell/oh
-my-zsh/plugins/gpg-agent:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/jsontools:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/golang:
/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/mosh:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/sudo:/root/.antigen/bundles/robbyrusse
ll/oh-my-zsh/plugins/xcode:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/python:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/pyenv:/ro
ot/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/vundle:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gnu-utils:/root/.antigen/bundles/robbyr
ussell/oh-my-zsh/plugins/sublime:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/bundler:/root/.antigen/bundles/zsh-users/zsh-autosuggestions:/ro
ot/.antigen/bundles/zsh-users/zsh-completions:/root/.antigen/bundles/zsh-users/zsh-syntax-highlighting:/root/.antigen/bundles/zsh-users/zsh-history-sub
string-search:/root/.antigen/bundles/tylerreckart/odin:/root/.antigen/bundles/wesbos/Cobalt2-iterm)
/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/aws/aws.plugin.zsh:source:51: not enough arguments

 root@antigen:~ →                                                                              

@jyaworski
Copy link
Author

Slightly:

#set -x
setopt nonomatch
setopt re_match_pcre
setopt EXTENDED_GLOB
zstyle ':completion:*' rehash true

# Credit: https://kev.inburke.com/kevin/profiling-zsh-startup-time/

export PROFILE_STARTUP=false
if [[ "$PROFILE_STARTUP" == true ]]; then
    zmodload zsh/zprof # Output load-time statistics
    # http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html
    PS4=$'%D{%M%S%.} %N:%i> '
    exec 3>&2 2>"${XDG_CACHE_HOME:-$HOME/tmp}/zsh_startup.$$"
    setopt xtrace prompt_subst
fi

export GREP_OPTIONS='--color=always'
export DISABLE_UPDATE_PROMPT=true
export DISABLE_AUTO_UPDATE=true
export HOMEBREW_BRWEFILE_APPSTORE=0
export HOMEBREW_BREWFILE_APPSTORE=0

source $HOME/antigen/antigen.zsh
antigen use oh-my-zsh

antigen bundles <<EOBUNDLES
chruby
the8/terminal-app.zsh
unixorn/tumult.plugin.zsh
ruby
gem
rake-fast
osx
brew
vagrant
tmux
kitchen
colored-man-pages
Tarrasch/zsh-autoenv
extract
svn
emoji
gitfast
git-extras
aws
gpg-agent
jsontools
golang
mosh
sudo
xcode
python
pyenv
vundle
gnu-utils
sublime
bundler
zsh-users/zsh-autosuggestions
zsh-users/zsh-completions
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-history-substring-search
tylerreckart/odin
wesbos/Cobalt2-iterm.git
EOBUNDLES

if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
  antigen theme wesbos/Cobalt2-iterm.git cobalt2.zsh-theme
else
  antigen theme tylerreckart/odin odin.zsh-theme
fi
antigen apply

export LANG=en_US.UTF-8
export EDITOR='vim'
export TZ=America/New_York
export XML_CATALOG_FILES="/usr/local/etc/xml/catalog"
export HOMEBREW_GITHUB_API_TOKEN='REDACTED'
export HUBOT_GITHUB_TOKEN=$HOMEBREW_GITHUB_API_TOKEN
export GITHUB_PRS_OAUTH_TOKEN=$HOMEBREW_GITHUB_API_TOKEN
export HUBOT_GITHUB_USER='REDACTED'
export GITHUB_PRS_USER='REDACTED'
export PERL_MM_USE_DEFAULT=1
export PERL_CPANM_OPT="--with-recommends --with-suggests --with-develop --with-configure --with-all-features --verify"
export VAGRANT_DEFAULT_PROVIDER="parallels"
export AWS_DEFAULT_REGION="us-east-1"
export AWS_REGION=$AWS_DEFAULT_REGION
export HOMEBREW_NO_EMOJI=1
export HOMEBREW_NO_GITHUB_API=1
export NVM_DIR="$HOME/.nvm"
export GROOVY_HOME=/usr/local/opt/groovy/libexec
export JAVA_HOME="$(/usr/libexec/java_home)"
export PATH="$HOME/bin:$PATH"
export PATH="$HOME/.rbenv/bin:$PATH"
export PATH="$HOME/.nodebrew/current/bin:/usr/local/sbin:$PATH"
export PATH="/opt/chefdk/bin:$PATH"
export ANDROID_HOME=/usr/local/opt/android-sdk
export MONO_GAC_PREFIX=/usr/local
source /usr/local/share/zsh/site-functions/_aws
source $(brew --prefix)/etc/brew-wrap
zstyle :omz:plugins:ssh-agent agent-forwarding on
zstyle :omz:plugins:ssh-agent lifetime 8h
source /Users/jyaworski/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
alias vim="mvim -vnN"
alias json2yaml="ruby -ryaml -rjson -e 'puts YAML.dump(JSON.parse(STDIN.read))'"
alias make="/usr/local/bin/make -j 9"
eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
export MANPATH="$HOME/perl5/man:/usr/local/opt/erlang/lib/erlang/man:$MANPATH"
chruby ruby-2.4.2

if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
  test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
fi

PATH="/Users/jyaworski/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/Users/jyaworski/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/Users/jyaworski/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/Users/jyaworski/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/Users/jyaworski/perl5"; export PERL_MM_OPT;

if [[ "$PROFILE_STARTUP" == true ]]; then
    zprof
    unsetopt xtrace
    exec 2>&3 3>&-
    $HOME/bin/parse_zsh_log.py "${XDG_CACHE_HOME:-$HOME/tmp}/zsh_startup.$$"
fi

@desyncr
Copy link
Member

desyncr commented Dec 2, 2017

On one part export GREP_OPTIONS='--color=always' does causes issues. I'll investigate what's the issue with grep.

@desyncr desyncr self-assigned this Dec 2, 2017
@desyncr desyncr added the Bug label Dec 2, 2017
@desyncr desyncr added this to the 2.2.3 milestone Dec 2, 2017
@jyaworski
Copy link
Author

@desyncr I can confirm this fixes the problem. I just needed to remove ~/.antigen so it would start clean. Thanks.

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

2 participants