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

Extension doesn't respect VIRTUAL_ENV_DISABLE_PROMPT #22967

Closed
segevfiner opened this issue Feb 26, 2024 · 1 comment
Closed

Extension doesn't respect VIRTUAL_ENV_DISABLE_PROMPT #22967

segevfiner opened this issue Feb 26, 2024 · 1 comment
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@segevfiner
Copy link

segevfiner commented Feb 26, 2024

Type: Bug

Behaviour

Expected vs. Actual

The extension doesn't respect VIRTUAL_ENV_DISABLE_PROMPT set by a custom prompt from .zshrc in Zsh.

Steps to reproduce:

  1. Install Starship prompt
  2. Open a folder with a venv selected as the interpreter
  3. Open a terminal in VS Code.

Screenshot 2024-02-26 at 13 00 42

Diagnostic data

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

2024-02-26 12:54:12.618 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-02-26 12:54:12.618 [info] Experiment 'pythonREPLSmartSend' is active
2024-02-26 12:54:12.618 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-02-26 12:54:12.618 [info] Experiment 'pythonTestAdapter' is active
2024-02-26 12:54:12.618 [info] Default formatter is set to null for workspace /Users/segevfiner/junk/argcomplete
2024-02-26 12:54:12.618 [info] Test server listening.
2024-02-26 12:54:12.618 [info] Python interpreter path: /opt/homebrew/bin/python3
2024-02-26 12:54:12.621 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2024-02-26 12:54:12.621 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2024-02-26 12:54:12.621 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2024-02-26 12:54:12.621 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2024-02-26 12:54:12.649 [info] > /opt/homebrew/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-26 12:54:13.800 [info] Starting Pylance language server.
2024-02-26 12:54:24.157 [info] Running installed packages checker:  python /Users/segevfiner/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/installed_check.py /Users/segevfiner/junk/argcomplete/pyproject.toml
2024-02-26 12:54:24.157 [info] > python ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/installed_check.py ./pyproject.toml
2024-02-26 12:54:24.157 [error] Error while getting installed packages check result:
 [Error: spawn python ENOENT
	at Process.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:476:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn python',
  path: 'python',
  spawnargs: [
    '/Users/segevfiner/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/installed_check.py',
    '/Users/segevfiner/junk/argcomplete/pyproject.toml'
  ]
}
2024-02-26 12:54:43.560 [info] > ./venv/bin/python -I ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/interpreterInfo.py
2024-02-26 12:54:45.621 [info] Discover tests for workspace name: argcomplete - uri: /Users/segevfiner/junk/argcomplete
2024-02-26 12:54:45.621 [info] Python interpreter path: ./venv/bin/python
2024-02-26 12:54:45.625 [info] > . ./venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-26 12:54:45.625 [info] shell: zsh
2024-02-26 12:54:45.658 [info] > /usr/bin/python3 ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-26 12:54:45.658 [info] shell: zsh
2024-02-26 12:54:45.743 [info] Send text to terminal: /usr/bin/python3 /Users/segevfiner/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariablesToFile.py /Users/segevfiner/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/deactivate/zsh/envVars.txt

User Settings


languageServer: "Pylance"

Extension version: 2024.0.1
VS Code version: Code 1.86.2 (Universal) (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:42:13.651Z)
OS version: Darwin arm64 23.3.0
Modes:

System Info
Item Value
CPUs Apple M1 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, 5
Memory (System) 16.00GB (0.04GB free)
Process Argv --crash-reporter-id 5b72b1ba-e00d-4fa4-95a7-9caf8cccaf7d
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementsc:30887149
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
pydisww2:30959801
d34g3935:30971562
edj9j583:30969295
fegfb526:30961430
7j2b6412:30969109
bg6jg535:30958357

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

Closing as duplicate of #22927 (comment), please try the workarounds mentioned there meanwhile.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Feb 26, 2024
@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants