Skip to content

VSCODE_PYTHON_BASH_ACTIVATE use anaconda activate.bat #1061

@SeepMystery

Description

@SeepMystery

Type: Bug, Automated-Code-Filling-Errors

Behaviour

the following issues occur with git-bash in vscode integrated terminal
----------------------------
bash: *:**/Anaconda/Scripts/activate.bat: line 1: syntax error near unexpected token `('
bash: *:**/Anaconda/Scripts/activate.bat: line 1: `:: Copyright (C) 2012 Anaconda, Inc'
* VS Code Python bash activation failed with exit code 0
----------------------------

Steps to reproduce

  1. vscode user settings.json set { "python.useEnvironmentsExtension": true, "python-envs.terminal.autoActivationType": "shellStartup", }
  2. from a git-bash prompt
  3. VSCODE_PYTHON_BASH_ACTIVATE=source *:**/Anaconda/Scripts/activate.bat ***-env will be filled by ms-python.vscode-python-envs

Extension version: 1.14.0
VS Code version: Code 1.107.0 (618725e67565b290ba4da6fe2d29f8fa1d4e3622, 2025-12-10T07:43:47.883Z)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i5-13600K (20 x 3494)
GPU Status 2d_canvas: enabled
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 63.75GB (32.18GB free)
Process Argv --crash-reporter-id c4ba4b5f-e80a-4e4e-9920-eb1edee24f36
Screen Reader no
VM 0%

Metadata

Metadata

Assignees

Labels

area-activationIssue related to activation. Root cause can be from interpreter selection or activation in terminalarea-terminalEnvironment extension specific terminal issues.bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions