Skip to content

Code run via conda does not exit on interrupt #18700

@Samreay

Description

@Samreay

Issue Type: Bug

Have a python file, press run. Now runs using conda, not python, since latest update. Now cmd-c to interrupt. Gets back to terminal, but unlike interrupting python code, the conda executable still runs in the background and can be seen using a ps aux, which means every time I want to stop the running file, I cmd-c, run ps aux | grep python, find the services which aren't stopped, and then kill their PIDs manually.

You can see here, the interrupt takes be back to the terminal, I've typed in "It should be dead now", but the stream keeps coming through:

image

So I think have to find the process manually and kill it:

image

Which finally shows me that it has indeed stopped:

image

It would be great for the old functionality (cmd-c interrupt actually stops the execution of the program) to be reinstated.

Extension version: 2022.2.1924087327
VS Code version: Code 1.65.0 (Universal) (b5205cc8eb4fbaa726835538cd82372cc0222d43, 2022-03-02T11:11:20.886Z)
OS version: Darwin x64 21.3.0
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: unavailable_software
gpu_compositing: disabled_software
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
skia_renderer: disabled_off_ok
video_decode: disabled_software
webgl: unavailable_software
webgl2: unavailable_software
Load (avg) 9, 9, 6
Memory (System) 16.00GB (1.83GB free)
Process Argv --crash-reporter-id 59291886-1c4e-48f4-b295-6775701c08bc --crash-reporter-id 59291886-1c4e-48f4-b295-6775701c08bc
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vsclayoutctrt:30451275
dsvsc009:30452663
pythonvsnew555:30450902
vscscmwlcmt:30438805
vscgsvidc:30447482
pynewfile477:30450038

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterinvestigatingWe are looking into the cause of the issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions