conda-incubator / conda-zsh-completion

zsh completion for conda
Do What The F*ck You Want To Public License
364 stars 65 forks source link

parse error near `^M' #43

Closed mbkupfer closed 2 years ago

mbkupfer commented 2 years ago

I went through all the steps and when I try to do autocompletion, all I get are 3 dots and nothing else. A quick error does flash and disappear, but it says that there was a parse error on line 417 of _conda. Of course this may change with updates, so here is what that offending line is on my side:

image

FWIW:

  1. I have been using zsh for years and never had an issue
  2. I'm using WSL running ubuntu 20
mbkupfer commented 2 years ago

And half an hour later I have figured the issue 😆

After my initial search I saw that I had to change my git config setting for core.autocrlf to input, but that didn't seem to fix things. It was when I change my GLOBAL! git config that it fixed the issue 🤦‍♂️

I'm just leaving this here as I'm sure it may very well help the next confused user that is on WSL.

Cheers!