-
Notifications
You must be signed in to change notification settings - Fork 1.2k
pyenv shell command runs twice #18669
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
Comments
Only after a recent update of both VS Code and pyenv, I also get Tested using both bash and zsh, same result. I normally use bash and do not have any pyenv config/initialization lines in my .zshrc so does not seem related to that. Only happens in VS Code - using bash or zsh in macOS Terminal application does not result in the same issue. |
Thanks for opening the issue, because the shell is zsh this is a dup of microsoft/vscode#147016 in VSCode, please upvote the issue to raise priority. |
"because the shell is zsh"? |
The text led me to believe that it is zsh, but note it is not run twice, it only appears twice. The original issue here is that particularly for zsh, what happens is that the second command is executed before the first, which led to the error mentioned in the original bug. |
Issue Type: Bug
Behaviour
Expected vs. Actual
When running a python line / block of code (with shift + enter), a new terminal opens and the command
pyenv shell 3.10.2
is ran, but it appears to run twice, as the python interpreter receives it too:Steps to reproduce:
Diagnostic data
python.languageServer
setting: DefaultUser Settings
Extension version: 2022.2.1924087327
VS Code version: Code 1.65.1 (8908a9ca0f221f36507231afb39d2d8d1e182702, 2022-03-08T02:20:04.372Z)
OS version: Darwin arm64 21.2.0
Restricted Mode: No
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: