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

(eval):10: parse error near `^M' #942

Open
iris-qq opened this issue May 13, 2024 · 0 comments
Open

(eval):10: parse error near `^M' #942

iris-qq opened this issue May 13, 2024 · 0 comments

Comments

@iris-qq
Copy link

iris-qq commented May 13, 2024

Expected Behaviour

windows11 + ohmyzsh + anaconda

Actual Behaviour

conda init zsh

shell will add this code to my .zshrc

if [ -f '/d/Softwares/anaconda3/Scripts/conda.exe' ]; then eval "$('/d/Softwares/anaconda3/Scripts/conda.exe' 'shell.zsh' 'hook')" fi

Steps to Reproduce

➜ ~ conda init
no change D:\Softwares\anaconda3\Scripts\conda.exe
no change D:\Softwares\anaconda3\Scripts\conda-env.exe
no change D:\Softwares\anaconda3\Scripts\conda-script.py
no change D:\Softwares\anaconda3\Scripts\conda-env-script.py
no change D:\Softwares\anaconda3\condabin\conda.bat
no change D:\Softwares\anaconda3\Library\bin\conda.bat
no change D:\Softwares\anaconda3\condabin_conda_activate.bat
no change D:\Softwares\anaconda3\condabin\rename_tmp.bat
no change D:\Softwares\anaconda3\condabin\conda_auto_activate.bat
no change D:\Softwares\anaconda3\condabin\conda_hook.bat
no change D:\Softwares\anaconda3\Scripts\activate.bat
no change D:\Softwares\anaconda3\condabin\activate.bat
no change D:\Softwares\anaconda3\condabin\deactivate.bat
no change D:\Softwares\anaconda3\Scripts\activate
no change D:\Softwares\anaconda3\Scripts\deactivate
no change D:\Softwares\anaconda3\etc\profile.d\conda.sh
no change D:\Softwares\anaconda3\etc\fish\conf.d\conda.fish
no change D:\Softwares\anaconda3\shell\condabin\Conda.psm1
no change D:\Softwares\anaconda3\shell\condabin\conda-hook.ps1
no change D:\Softwares\anaconda3\Lib\site-packages\xontrib\conda.xsh
no change D:\Softwares\anaconda3\etc\profile.d\conda.csh
no change C:\Users\qiqiang.wang\Documents\WindowsPowerShell\profile.ps1
no change HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
No action taken.

➜ ~ conda activate base

CondaError: Run 'conda init' before 'conda activate'

ST3, Anaconda and OS versions

ST3 Console Logs

Anaconda's JsonServer Logs

Note: Anaconda's JsonServer logs can be found in:

  • Linux: ~/.local/share/anaconda/logs
  • OS X: ~/Library/Logs/anaconda
  • Windows: %APPDATA\Anaconda\Logs
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