zsh-users / antigen

The plugin manager for zsh.
http://antigen.sharats.me
MIT License
8k stars 279 forks source link

first init gave me a waring #653

Open zhexuany opened 6 years ago

zhexuany commented 6 years ago

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

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.

ergoz commented 6 years ago

same problem

yannvanhalewyn commented 6 years ago

Same problem on Antigen v2.2.3 and zsh 5.5.1.

yannvanhalewyn commented 6 years ago

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
urjitbhatia commented 4 years ago

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 🤷‍♂

oluwatbi commented 4 years ago

Hi, what exactly are you trying to archive ?

I could help. I use antigen on my ubuntu machine

elig0n commented 4 years ago

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.