-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Rogue conda processes left running after closing vscode (do not use conda run
for fetching env variables)
#19347
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
Thanks for the issue. This should be caused by the Python extension. |
Can you send the output of |
If you're using ArcGIS Pro conda env, this is a dup of conda/conda#11506. |
Results from conda info, when run in either VScode terminal or Anaconda prompt:
|
And if it may be of interest. Here's the quite long package list: conda list ...
|
Now after closing vscode after a few more hours of work I found a total of 23 Python processes and 23 conda processes in the task manager. They all have the same command line: Python processes: While working I kept one instance of VScode running where I opened and closed a .py file (without #%%) and two .ipynb files. I then tried to end all tasks and reopen VScode. I then opened one of the jupyter notebooks and ran a handful of cells and closed VScode. This resulted in 6 python processes left running. |
@ludbri Can you please open an issue with https://github.com/conda/conda? I will attempt to temporarily solve this with this issue by not running that specific command, thanks. |
Can you try setting |
Update to the previous comment, simply opening and closing an .ipynb file results in 6 sets of rogue processes getting created. |
As long as the command line for the processes is the same as the one you mentioned, my temp fix should take care of it. I would still require the above info, thanks. |
The issue still persists after changing from |
I see, do you think if you can help with creating an issue on conda regarding this? I would do it myself but they require a few more details, you can use the link here https://github.com/conda/conda/issues/new?assignees=&labels=type%3A%3Abug&template=bug-report.yml. |
Thank you. |
Temp fix is to revert #18748. |
conda run
for fetching env variables)
For now you can install an older version of the extension before March as a workaround: You can follow the prompts from "Extensions: Install Specific Version of Extension..." in the command palette: Or you can open the extensions side bar, click on the settings for the Python extension and pick "Install Another Version...": |
The issue is no longer present after installing the v2022.0.1814523869 of the python extension. |
…ariables (#19819) Because of conda/conda#11814, `conda activate` is faster. Closes #19347 For #19101
…ariables (microsoft#19819) Because of conda/conda#11814, `conda activate` is faster. Closes microsoft#19347 For microsoft#19101
…ariables (microsoft/vscode-python#19819) Because of conda/conda#11814, `conda activate` is faster. Closes microsoft/vscode-python#19347 For microsoft/vscode-python#19101
Applies To
What happened?
Steps to reproduce:
#%%
markersExpected behaviour:
All python processes should close when exiting VScode
Attempted debugging
Disabling the jupyter extension in VSCode solves the problem.
Changing python language server settings as in the issue (with similar symptoms) in #15586. i.e. adding
"python.experiments.optOutFrom": ["pythonJediLSP"]
and"python.languageServer": "Pylance"
to settings.json. This did not solve the problem.According to the task manager, the command line for the rogue processes is:
C:\Anaconda3\python.exe "C:\Anaconda3\Scripts\conda-script.py" "run" "-n" "base" "--no-capture-output" "python" "c:\Users\***\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\get_output_via_markers.py" "c:/Users/***/.vscode/extensions/ms-pyt
VS Code Version
Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:58.283Z)
Jupyter Extension Version
2022.5.1001601848
Jupyter logs
Coding Language and Runtime Version
Python v3.8.5
Language Extension Version (if applicable)
v.2022.8.0
Anaconda Version (if applicable)
custom
EDIT: conda version 4.11.0
Running Jupyter locally or remotely?
Local
The text was updated successfully, but these errors were encountered: