Skip to content

Composer plugin errors MacOS #9236

Closed
Closed
@Jamesking56

Description

Describe the bug
Error messages when ZSH is running with the composer plugin:

/Users/jamesking56/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/composer/composer.plugin.zsh:54: command not found: _retrieve_cache
/Users/jamesking56/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/composer/composer.plugin.zsh:58: command not found: _store_cache

To Reproduce
Steps to reproduce the behavior, for example:

  1. Install git, zsh and antigen via Homebrew
  2. Use this ZSH config:
export VISUAL=vim
export EDITOR="$VISUAL"

source $HOME/.antigen/antigen.zsh

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

antigen bundles <<EOBUNDLES
    # Bundles from the default repo (robbyrussell's oh-my-zsh)
    composer
    command-not-found
    common-aliases
    debian
    docker
    git
    laravel
    osx
    npm
    pip
    sudo
    systemd
    tmux
    transfer
    ubuntu
    ufw
    web-search
    yarn
    zsh_reload

    # Third party bundles
    djui/alias-tips
    hkupty/ssh-agent
    Seinh/git-prune
    zsh-users/zsh-syntax-highlighting
    zsh-users/zsh-autosuggestions
    zsh-users/zsh-completions
    unixorn/autoupdate-antigen.zshplugin
EOBUNDLES

# Load the theme
antigen theme agnoster

# Tell antigen that you're done
antigen apply

# SSH settings
zstyle :omz:plugins:ssh-agent agent-forwarding on
zstyle :omz:plugins:ssh-agent lifetime 4h

source $HOME/.bash_aliases

export NVM_SYMLINK_CURRENT=true
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

if [ -x $HOME/.after_zsh ]; then
    $HOME/.after_zsh
fi

Expected behavior
No error messages.

Desktop (please complete the following information):

  • OS / Distro: macOS 10.13.6
  • If on Windows what version of WSL: N/A
  • Latest ohmyzsh update?: Yes
  • ZSH Version: zsh 5.3 (x86_64-apple-darwin17.0)
  • Terminal emulator: iTerm2

Additional context
Error messages also show in macOS default terminal and PHPStorm built-in terminal.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions