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

Create enviroment fails when there's a .venv file in the workspace #22842

Closed
luabud opened this issue Feb 2, 2024 · 1 comment · Fixed by #22954
Closed

Create enviroment fails when there's a .venv file in the workspace #22842

luabud opened this issue Feb 2, 2024 · 1 comment · Fixed by #22954
Assignees
Labels
area-environments Features relating to handling interpreter environments author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on verification-found Issue verification failed
Milestone

Comments

@luabud
Copy link
Member

luabud commented Feb 2, 2024

Type: Bug

Behaviour

Expected vs. Actual

When there's a .venv file in the workspace, the create environment command shows the option to either recreate or use the existing .venv in the workspace. However, it's just a file for fish support, and not an actual environment. Since we don't support naming, it fails to select or create a new environment.

Steps to reproduce:

  1. Clone https://github.com/thumbor/thumbor
  2. Run "Create environment" command

Diagnostic data

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


venvFolders: "<placeholder>"

languageServer: "Pylance"

experiments
• optInto: ["pythonTestAdapter","regionCommentDiagnostics"]

Extension version: 2023.22.1
VS Code version: Code - Insiders 1.87.0-insider (2af613979f646fc4dcebfeaedc7d14f138c7b072, 2024-02-01T23:51:02.394Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995)
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.71GB (10.39GB free)
Process Argv --log trace --log ms-python.autopep8=debug --crash-reporter-id 11494669-52ca-4f2c-aa0e-29172189cc8e
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vsc_aa:30263845
vscod805:30301674
vsaa593:30376534
py29gd2263:30784851
c4g48928:30535728
2i9eh265:30646982
962ge761:30841072
pythongtdpath:30726887
welcomedialog:30812478
pythonidxpt:30768918
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
dsvsc015:30821418
pythontestfixt:30866404
pythonregdiag2:30926734
pyreplss1:30879911
pythonmypyd1:30859725
pythoncet0:30859736
pythontbext0:30879054
accentitlementst:30870582
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
8082a590:30953407
edj9j583:30943796
fegfb526:30952798
7j2b6412:30951517
bg6jg535:30946824

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 2, 2024
@karthiknadig karthiknadig self-assigned this Feb 5, 2024
@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Feb 5, 2024
@karthiknadig karthiknadig added this to the April 2024 milestone Apr 3, 2024
@karthiknadig karthiknadig added area-environments Features relating to handling interpreter environments needs PR Ready to be worked on author-verification-requested Issues potentially verifiable by issue author and removed triage-needed Needs assignment to the proper sub-team labels Apr 3, 2024
@rzhao271
Copy link

The command still fails for me

2024-04-24 14:29:22.772 [info] Running: C:\Users\raymondzhao\AppData\Local\Programs\Python\Python311\python.exe -m venv .venv
2024-04-24 14:29:22.986 [info] Error: Unable to create directory 'c:\\Users\\raymondzhao\\work\\endgame\\thumbor\\.venv'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-environments Features relating to handling interpreter environments author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on verification-found Issue verification failed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants