Skip to content

If Conda is not on path, VSCode can't activate enviroments #116054

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

Closed
zurgeg opened this issue Feb 7, 2021 · 2 comments
Closed

If Conda is not on path, VSCode can't activate enviroments #116054

zurgeg opened this issue Feb 7, 2021 · 2 comments
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@zurgeg
Copy link

zurgeg commented Feb 7, 2021

Issue Type: Bug

In my case, Conda is not on path and when I run conda activate myenv VSCode kills it and switches back to Powershell.

VS Code version: Code 1.52.1 (ea3859d, 2020-12-16T16:34:46.910Z)
OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 3192)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.93GB (1.07GB free)
Process Argv --crash-reporter-id 6c5f0ebb-c40d-40c4-aed2-ee694cde8268
Screen Reader no
VM 0%
Extensions (12)
Extension Author (truncated) Version
EditorConfig Edi 0.16.4
haxe-hl Hax 1.1.1
discord-vscode icr 4.1.0
python ms- 2021.1.502429796
jupyter ms- 2020.12.414227025
hexeditor ms- 1.4.0
debugger-for-chrome msj 4.12.12
vshaxe nad 2.21.4
haxe-debug vsh 1.2.3
haxe-extension-pack vsh 1.3.0
hxcpp-debugger vsh 1.2.4
codedox wig 1.3.1
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
openlogontheside:30221877
python383:30185418
pythonvspyt617cf:30253240
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30211402
wsl2promptcf:30224613
pythonvsdeb440:30248342
unusedpromptcf:30224611
folderexplorer:30224614
openfilemenu:30224647
pythonvsded773:30248341
vstes627:30244334
pythonvspyt600cf:30251589

@IllusionMH
Copy link
Contributor

/question

This is documented behavior for Powershell and conda combination.

See documentation https://code.visualstudio.com/docs/python/environments#_environments-and-terminal-windows and issue in Python extension repo for more details and recommendated workflow microsoft/vscode-python#11638

@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants
@IllusionMH @zurgeg and others