question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code run via conda does not exit on interrupt

See original GitHub issue

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® Core™ 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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

1reaction
Samreaycommented, May 1, 2022

Hmmm, I did it using pip install ray, I will clear it out and see if I can reproduce using a conda install on Tuesday when I’m back at work

1reaction
karrtikrcommented, Mar 17, 2022

This will no longer be an issue with https://github.com/microsoft/vscode-python/pull/18661, still keeping this issue open so we can open an issue in conda.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code executed via conda run does not exit on interrupt #11420
Hi team! Ive done a bunch of digging to make the smallest possible reproduction and it turns out the issue must come from...
Read more >
Troubleshooting — Anaconda documentation
If the package downloads are interrupted, just run conda install anaconda again. Conda only downloads the packages that were not finished in any...
Read more >
Ctrl-C for quitting Python in Powershell now not working
When I used to press Ctrl-C, python was quit normally without any output. Why has this now changed to give just an output...
Read more >
I can't exit out of python on CMD using ctrl + c - Super User
Due to a design decision, the Python interpeter does not exit on Ctrl + C , but rather on Ctrl + D or...
Read more >
Release notes — conda 22.11.1.post16+ce4e810c9 ...
This will make the conda command itself available to all users, but conda's base (root) environment will not be activated by default. Users...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found