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

vscode terminal shows two activate environments #22875

Closed
deven367 opened this issue Feb 7, 2024 · 3 comments
Closed

vscode terminal shows two activate environments #22875

deven367 opened this issue Feb 7, 2024 · 3 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@deven367
Copy link

deven367 commented Feb 7, 2024

Type: Bug

Behaviour

Expected vs. Actual

I use miniforge on my Macbook (M2 pro) and I have multiple virtual environments, once the environments are setup, vscode remembers the environment preferences for certain projects and activates them automatically when a terminal is launched in that workspace. In that process, vscode displays two active environments.

The expected behavior would to be to only display the active working environment.

Steps to reproduce:

  1. Install miniforge
  2. create a new conda env, once miniforge is installed
  3. Launch a project, and then set the environment preference for vscode.
  4. Launch the terminal to the see the problem.

Also, this is an active issue in the miniforge repo as well, conda-forge/miniforge#539

image

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.1
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
  • Value of the python.languageServer setting: Pylance
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings


languageServer: "Pylance"

Extension version: 2024.0.1
VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:29:11.933Z)
OS version: Darwin arm64 23.3.0
Modes:

System Info
Item Value
CPUs Apple M2 Pro (10 x 24)
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
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 3, 4, 4
Memory (System) 16.00GB (0.05GB free)
Process Argv --crash-reporter-id 9bc3ba72-cc34-495d-b8e9-798f9b2c80dd
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30951796
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
dsvsc019bcf:30953938
3ef8e399:30949928
bg6jg535:30958357
ccp1r6:30958156

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 7, 2024
@karrtikr
Copy link

karrtikr commented Feb 7, 2024

Closing as duplicate of #22233.

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2024
@szpony
Copy link

szpony commented Feb 9, 2024

I have the same problem.

VScode terminal displays multiple virtual environments as follows:

(helloworld-example) (py310) ➜ helloworld

@karrtikr
Copy link

karrtikr commented Feb 9, 2024

As stated in #22233, the problem will be solved with #22128.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants