DonJayamanne / vscode-python-manager

Python Environment & Package Manager
MIT License
117 stars 20 forks source link

Delete Environment stalls on user input #89

Open tmchartrand opened 5 months ago

tmchartrand commented 5 months ago

Type: Bug

Behaviour

When trying to delete a workspace environment, a notification appears with the message "Deleting environment .conda: Everything found within the environment (/Users/tom.chartrand/code/thalamus-merfish-analysis/.conda), including any conda environment configurations and any non-conda files, will be deleted. Do you wish to continue? (y/[n])?" Since there's no way to provide the response, the deletion fails.

Steps to reproduce:

  1. Create a new mamba/conda workspace environment.
  2. Try to delete that environment using the extension UI

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

``` XXX ```

Extension version: 1.2.4 VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:43:08.196Z) OS version: Darwin arm64 23.4.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M3 Pro (11 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)|4, 4, 3| |Memory (System)|18.00GB (0.83GB free)| |Process Argv|--crash-reporter-id 92712e1e-de15-4f52-85f5-f0ef54280c8b| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 pythonait:31006305 gee8j676:31009558 dsvsc021:30996838 945dj816:31013170 ```
cento commented 4 months ago

I have the identical case, I suspect it is an unresolved bug. A potential solution could be to force the deletion in the extension code (-y ?).

dunxuan commented 4 months ago

Same. If it was a popover with a confirm button, it would solve the problem