Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of ^Ms #724

Closed
SturmB opened this issue Nov 16, 2020 · 1 comment
Closed

Lots of ^Ms #724

SturmB opened this issue Nov 16, 2020 · 1 comment

Comments

@SturmB
Copy link

SturmB commented Nov 16, 2020

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
Copy link
Author

SturmB commented Nov 17, 2020

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

@SturmB SturmB closed this as completed Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant