You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anaconda Distribution (formerly Anaconda Individual Edition)
Miniconda
Anaconda.org
What happened?
Type: Bug
Running Git Bash in Windows, (base) conda environment is active.
Command code . returns the same error in vscode repository #187392, #191133
It seems to be a bug in cygpath in Anaconda.
For some reason, the module search is appending "C:\ProgramData\Anaconda3\Library" to the beginning of the correct search path.
I checked the vscode execution file (%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\bin\code) and found the $CLI value has changed when conda activate/deactivate status.
When conda is activated, cygpath -m “$VSCODE_PATH” will return “C:/ProgramData/anaconda3/Library” added.
When conda is deactivated, cygpath -m “$VSCODE_PATH” will return normally.
Additionally, Anaconda activation adds environment variables to $PATH on first:
Conda activation will add these Conda environment variables to the front of $PATH.
/c/ProgramData/anaconda3:
/c/ProgramData/anaconda3/Library/mingw-w64/bin:
/c/ProgramData/anaconda3/Library/usr/bin: <- this directory have 'cyg*, msys2' tools
/c/ProgramData/anaconda3/Library/bin:
/c/ProgramData/anaconda3/Scripts:
/c/ProgramData/anaconda3/bin:
The path calculation error is raised when "/c/ProgramData/anaconda3/Library/usr/bin" is added to $PATH before "/usr/bin/", where Git Bash is provided. It replaced cygwin tools provided by Git Bash.
I checked these tools versions, but Anaconda has too old a version of these tools.
e.g, cygpath version is
(git-bash, contains in git for windows 2.45.2)
$ cygpath.exe --version cygpath (cygwin) 3.4.10
Path Conversion Utility
Copyright (C) 1998 - 2024 Cygwin Authors
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(anaconda /usr/bin, anaconda 2024.02-1)
$ ./cygpath.exe --version cygpath (cygwin) 2.5.0
Path Conversion Utility
Copyright (C) 1998 - 2016 Red Hat, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I suggest updating these old tools for better performance on Windows users.
Expected behavior or outcome
It will raise environment crash with Anaconda and Git Bash on Windows system.
When conda is activated, cygpath -m “$VSCODE_PATH” will return “C:/ProgramData/anaconda3/Library” added.
When conda is deactivated, cygpath -m “$VSCODE_PATH” will return normally.
Git Bash is useful terminal on windows users.
And vscode is popular editor for developers.
And also Anaconda is a base for researchers.
I'm using vscode-anaconda-git(bash) environment many years.
I hope to solve these problem. please.
Conda info
active environment : base
active env location : C:\ProgramData\anaconda3
shell level : 1
user config file : C:\Users\haher\.condarc
populated config files : C:\Users\haher\.condarc
conda version : 24.1.2
conda-build version : 24.1.2
python version : 3.11.7.final.0
solver : libmamba (default)
virtual packages : __archspec=1=x86_64
__conda=24.1.2=0
__win=0=0
base environment : C:\ProgramData\anaconda3 (read only)
conda av data dir : C:\ProgramData\anaconda3\etc\conda
conda av metadata url : None
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\ProgramData\anaconda3\pkgs
C:\Users\haher\.conda\pkgs
C:\Users\haher\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\haher\.conda\envs
C:\ProgramData\anaconda3\envs
C:\Users\haher\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/24.1.2 requests/2.31.0 CPython/3.11.7 Windows/10 Windows/10.0.19045 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.6 aau/0.4.3 c/OSaMAD9FwSvM0G2OG1Au0w s/SyuuQWkpFwnGbMgMbhpOjQ e/SoTM5nIe-lmzpF7MsXAKFA
administrator : False
netrc file : None
offline mode : False
Checklist
Impacted product
What happened?
Type: Bug
Running Git Bash in Windows, (base) conda environment is active.
Command
code .
returns the same error in vscode repository #187392, #191133It seems to be a bug in
cygpath
in Anaconda.For some reason, the module search is appending "C:\ProgramData\Anaconda3\Library" to the beginning of the correct search path.
I checked the vscode execution file (%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\bin\code) and found the $CLI value has changed when
conda activate
/deactivate
status.When conda is activated, cygpath -m “$VSCODE_PATH” will return “C:/ProgramData/anaconda3/Library” added.
When conda is deactivated, cygpath -m “$VSCODE_PATH” will return normally.
Additionally, Anaconda activation adds environment variables to $PATH on first:
Conda activation will add these Conda environment variables to the front of $PATH.
The path calculation error is raised when "/c/ProgramData/anaconda3/Library/usr/bin" is added to $PATH before "/usr/bin/", where Git Bash is provided. It replaced cygwin tools provided by Git Bash.
I checked these tools versions, but Anaconda has too old a version of these tools.
e.g, cygpath version is
(git-bash, contains in git for windows 2.45.2)
(anaconda /usr/bin, anaconda 2024.02-1)
I suggest updating these old tools for better performance on Windows users.
Expected behavior or outcome
It will raise environment crash with Anaconda and Git Bash on Windows system.
When conda is activated, cygpath -m “$VSCODE_PATH” will return “C:/ProgramData/anaconda3/Library” added.
When conda is deactivated, cygpath -m “$VSCODE_PATH” will return normally.
Git Bash is useful terminal on windows users.
And vscode is popular editor for developers.
And also Anaconda is a base for researchers.
I'm using vscode-anaconda-git(bash) environment many years.
I hope to solve these problem. please.
Conda info
Conda config
Conda list
Additional information
No response
The text was updated successfully, but these errors were encountered: