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

Unable to activate conda environments in git bash shell #24035

Closed
cesar-moya opened this issue Sep 3, 2024 · 2 comments
Closed

Unable to activate conda environments in git bash shell #24035

cesar-moya opened this issue Sep 3, 2024 · 2 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@cesar-moya
Copy link

cesar-moya commented Sep 3, 2024

Type: Bug

Behaviour

When using the vs code integrated git bash terminal in windows, the conda environment doesn't seem to load properly. If I open the stand-alone "git bash" windows terminal application everything works correctly. it's only on the integrated one that I get this error:

$ conda info
bash: C:\ProgramDatanaconda3\Scripts: No such file or directory

I confirmed my ~/.bash_profile has the correct conda initialization script.

Steps to reproduce:

  1. In Windows, Install VS Code version 1.92.2
  2. Install Anaconda3 2024.02-1
  3. In a git bash window (external to vs code), type conda init. It all configures correctly.
  4. In VS code, open a new git bash terminal by clicking the + icon or selecting the command "Python: Create Terminal"
  5. Type conda info, see error.

Diagnostic data

Extension version: 2024.12.3
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.22631
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.7
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

Installed Extensions
Extension Name Extension Id Version
.NET Install Tool ms-dotnettools.vscode-dotnet-runtime 2.1.5
Ayu teabyii.ayu 1.0.5
Black Formatter ms-python.black-formatter 2024.2.0
Bookmarks alefragnani.Bookmarks 13.5.0
C/C++ ms-vscode.cpptools 1.21.6
ESLint dbaeumer.vscode-eslint 3.0.10
Git History donjayamanne.githistory 0.6.20
GitLens — Git supercharged eamodio.gitlens 15.3.1
HashiCorp Terraform hashicorp.terraform 2.32.2
isort ms-python.isort 2023.10.1
Jasmine code snippets xabikos.JasmineSnippets 1.0.1
JavaScript Debugger ms-vscode.js-debug 1.92.0
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.3
Jupyter ms-toolsai.jupyter 2024.7.0
Jupyter Cell Tags ms-toolsai.vscode-jupyter-cell-tags 0.1.9
Jupyter Keymap ms-toolsai.jupyter-keymap 1.1.2
Jupyter Notebook Renderers ms-toolsai.jupyter-renderers 1.0.19
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow 0.1.6
Markdown Preview Enhanced shd101wyy.markdown-preview-enhanced 0.8.13
markdownlint DavidAnson.vscode-markdownlint 0.55.0
Oracle SQL Developer Extension for VSCode Oracle.sql-developer 24.2.1
PDDL jan-dolejsi.pddl 2.28.1
Peacock johnpapa.vscode-peacock 4.2.2
Prettify JSON mohsen1.prettify-json 0.0.3
Pretty js/json supperchong.pretty-json 0.0.4
Pylance ms-python.vscode-pylance 2024.8.2
Python ms-python.python 2024.12.3
Python Debugger ms-python.debugpy 2024.10.0
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.9
Tensorboard ms-toolsai.tensorboard 2023.10.1002992421
vscode-pdf tomoki1207.pdf 1.2.2
System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i9-13900K (32 x 2995)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.77GB (19.21GB free)
Process Argv --crash-reporter-id 3cada1ac-751f-4548-a1e6-fbf8f11633ba
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
724cj586:31013169
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31111718
wkspc-ranged-t:31125599
ei213698:31121563
aajjf12562:31125793

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 3, 2024
@cesar-moya
Copy link
Author

try this ...
This appears to be a phishing attempt.

@anthonykim1
Copy link

@cesar-moya Thanks for filing the issue - note that gitbash is currently not officially supported by Python extension.
Closing this against: #23382

@anthonykim1 anthonykim1 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants
@cesar-moya @anthonykim1 and others