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

Terminal running pyenv shell but with the wrong version. #22430

Closed
NathanCummings opened this issue Nov 6, 2023 · 1 comment
Closed

Terminal running pyenv shell but with the wrong version. #22430

NathanCummings opened this issue Nov 6, 2023 · 1 comment
Assignees
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@NathanCummings
Copy link

Type: Bug

Behaviour

Expected vs. Actual

Expected: I open a terminal and EITHER the local venv is activated, OR the python command calls whatever pyenv has it set to (either globally or locally).

Actual: When I open a terminal in a python project with no venv present (like, say, a new project), the terminal runs 'pyenv shell 3.12.0', even though my global pyenv is set to 3.11.3.

I only use pyenv to easily install multiple python versions, and will tend to create a venv for any project, based usually on what pyenv global is set to, sometimes setting pyenv local first if I need to use a different version for whatever reason.

Steps to reproduce:

  1. Open a terminal in a python project with no venv.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.3
  • 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)

XXX

User Settings


languageServer: "Pylance"

Extension version: 2023.20.0
VS Code version: Code 1.84.0 (Universal) (d037ac076cee195194f93ce6fe2bdfe2969cc82d, 2023-11-01T11:30:19.406Z)
OS version: Darwin x64 23.0.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz (4 x 1600)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 5, 4, 4
Memory (System) 8.00GB (0.02GB free)
Process Argv --crash-reporter-id 1aef097e-96c6-4fe1-8acb-6fe0c4a590d5
Screen Reader yes
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30880072
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
f6dab269:30613381
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30869155
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30871694
pythonregdiag2:30871582
pythonmypyd1:30879173
pythoncet0:30874138
pythontbext0:30879054
dsvsc017:30880892

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Nov 6, 2023
@karrtikr
Copy link

karrtikr commented Nov 6, 2023

Seems like a dup of #1167. Please leave your details there if anything else is needed for your usecase.

You can resolve this issue temporarily by selecting the desired interpreter using Python: Select Interpreter command.

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2023
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Nov 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 7, 2023
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