zsh-users / antigen

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

Lots of ^Ms #724

Closed SturmB closed 3 years ago

SturmB commented 3 years ago

Description

I just booted up my Ubuntu-20.04 WSL2 instance this morning and was greeted with a bundle of errors:

Seems zsh-users/zsh-autosuggestions is already installed!
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/cli.zsh:2: command not found: ^M
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/cli.zsh:34: parse error near `elif'
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/functions.zsh:3: parse error near `|'
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/git.zsh:31: parse error near `in^M'
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/history.zsh:4: not an identifier: list^M
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/misc.zsh:21: command not found: env_default
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/misc.zsh:22: command not found: env_default
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/nvm.zsh:7: parse error near `\n'
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/termsupport.zsh:setopt:11: no such option: prompt_subst^M
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/termsupport.zsh:12: command not found: ^M
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/termsupport.zsh:14: command not found: ^M
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/termsupport.zsh:18: command not found: ^M
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/lib/termsupport.zsh:19: parse error near `in^M'
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/kubectl/kubectl.plugin.zsh:181: parse error near `\n'
/home/sturm/.antigen/bundles/urbainvaes/fzf-marks/fzf-marks.plugin.zsh:38: parse error near `elif'
/home/sturm/.antigen/bundles/joel-porquet/zsh-dircolors-solarized/zsh-dircolors-solarized.plugin.zsh:source:2: no such file or directory: /home/sturm/.antigen/bundles/joel-porquet/zsh-dircolors-solarized/zsh-dircolors-solarized.zsh^M
/home/sturm/.antigen/bundles/zsh-users/zsh-syntax-highlighting/highlighters/main/main-highlighter.zsh:187: parse error near `elif'
zsh-syntax-highlighting: 'main' highlighter should define both required functions '_zsh_highlight_highlighter_main_paint' and '_zsh_highlight_highlighter_main_predicate' in '/home/sturm/.antigen/bundles/zsh-users/zsh-syntax-highlighting/highlighters/main/main-highlighter.zsh'.
/home/sturm/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/colored-man-pages/colored-man-pages.plugin.zsh:typeset:6: not valid in this context: less_termcap^M

It looks like many of the files have gotten Windows line endings?

Steps to reproduce

Boot up a WSL2 instance after having installed Antigen, I guess?

Expected behavior:

Just a normal Ubuntu startup sequence. "Welcome to Ubuntu 20.04.1 LTS…", etc.

Software version

Configuration

More information

This gets installed by way of viasite-ansible's zsh role. Not sure if that matters, but there you go.

Please let me know if there's any more info that I should provide.

SturmB commented 3 years ago

I was able to fix this (at least, for now) by removing antigen entirely and reinstalling it. Further details here.