antigen: cache zcompile error

Hello,

I just installed antigen (using a git clone) and, every time I modify my .zshrc (located in /home/zoc/.zsh/.zshrc - I use ZDOTDIR to add a .zsh directory in there) and restart the shell, I get the error:

-antigen-cache-generate:zcompile:65: can't open file: /home/zoc/.zshrc

Is this a real bug or am I doing something wrong?

Thank you very much in advance!

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Reactions: 2
  • Comments: 17 (6 by maintainers)

Most upvoted comments

It’s probably a bug, let me look into it.

# Load source from Homebrew Install
source /usr/local/share/antigen/antigen.zsh

# 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

    # Syntax highlighting bundle.
    zsh-users/zsh-syntax-highlighting

    # Fish-like auto suggestions
    zsh-users/zsh-autosuggestions

    # Extra zsh completions
    zsh-users/zsh-completions

EOBUNDLES

# Load the theme
antigen theme robbyrussell

# Tell antigen that you're done
antigen apply

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

I had this same issue. Removing the *.zwc files in the antigen directory ($ADOTDIR) solved it. Antigen will respect $ZDOTDIR, but make sure that it is set in ~/.zshenv before running antigen for the firts time so that antigen picks it up.

Thanks gonna take a look at this!