antigen icon indicating copy to clipboard operation
antigen copied to clipboard

first init gave me a waring

Open zhexuany opened this issue 7 years ago • 6 comments

Description

Small paragraph to describe the issue/bug. I am not sure why this happens. I googled and nothing useful found.

Steps to reproduce

remove init.zsh* from antigen home directory.

Minimal steps to reproduce this behavior. Example:

1 - Open terminal
2 - rm init.zsh.*
3 - rm init.zsh
4 - close terminal and reopen 
5 - `-antigen-cache-generate:zcompile:65: bad option: -s` will be displayed. 

Expected behavior: nothing displayed in terminal.

Software version

  • antigen version Antigen v2.2.2
  • zsh --version zsh 5.4.2 (x86_64-apple-darwin17.3.0)
  • uname -a Darwin Zhexuans-MacBook-Pro.local 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

Configuration

  • gist of .antigenrc
antigen use oh-my-zsh
antigen bundle git
antigen bundle pip
antigen bundle lein
antigen bundle command-not-found
antigen bundle autojump
antigen bundle brew
antigen bundle common-aliases
antigen bundle compleat
antigen bundle git-extras
antigen bundle git-flow
antigen bundle npm
antigen bundle osx
antigen bundle web-search
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-history-substring-search
antigen theme avit
antigen apply
  • gist of .zshrc
source ~/.antigen/antigen.zsh
antigen init .antigenrc
export ANTIGEN_COMPDUMPFILE=~/.antigen/.zcompdump

More information

Screenshot or any other information you may find relevant to troubleshoot the issue.

zhexuany avatar Jan 30 '18 05:01 zhexuany

same problem

ergoz avatar Apr 07 '18 09:04 ergoz

Same problem on Antigen v2.2.3 and zsh 5.5.1.

yannvanhalewyn avatar Jun 01 '18 11:06 yannvanhalewyn

Very unfamiliar with antigen internals, but maybe this is a clue:

$ echo $ANTIGEN_CHECK_FILES
/Users/yannvanhalewyn/.zshrc -zsh

$ zcompile -zsh
zcompile: bad option: -s

yannvanhalewyn avatar Jun 01 '18 12:06 yannvanhalewyn

good find @yannvanhalewyn I just added if [[ $rsrc == "-zsh" ]]; then continue fi to skip -zsh here https://github.com/zsh-users/antigen/blob/develop/bin/antigen.zsh#L1867 🤷‍♂

urjitbhatia avatar Feb 12 '20 21:02 urjitbhatia

Hi, what exactly are you trying to archive ?

I could help. I use antigen on my ubuntu machine

oluwatbi avatar Feb 25 '20 01:02 oluwatbi

Also observed on zsh 5.8 and antigen 2.2.3-2 (on debian).

@urjitbhatia @zhexuany Seems like something is wrongly adding "-zsh" line to $ANTIGEN_RSRC file. Hence one can remove "-zsh" line from $ANTIGEN_RSRC (which is pointing to $HOME/.antigen/.resources on my machine) rather than directly messing with the source-code / require root permissions for modifying /usr/share/zsh-antigen/antigen.zsh, at least as a temporary fix until someone figures out what and why that line is added.

elig0n avatar Jun 06 '20 14:06 elig0n