microsoft / vscode-isort

Import sorting for python using the isort library.
https://marketplace.visualstudio.com/items?itemName=ms-python.isort
MIT License
87 stars 21 forks source link

Why is there 33 isort processes left running after I close VSCode? #193

Closed u3Izx9ql7vW4 closed 1 year ago

u3Izx9ql7vW4 commented 1 year ago

See below:

dan              48466   0,0  0,0 408504592   4640   ??  S     5:30     0:00.06 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              48447   0,0  0,1 408813984  18448   ??  S     5:30     0:00.42 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              46251   0,0  0,0 408495376   4560   ??  S    12:27     0:00.06 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              46238   0,0  0,0 408815008   5776   ??  S    12:27     0:05.92 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              44699   0,0  0,0 408635664   4560   ??  S     8:08     0:00.06 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              44679   0,0  0,0 408813984   5776   ??  S     8:08     0:02.84 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              40395   0,0  0,0 408486160   3280   ??  S    Ven09     0:00.06 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              40388   0,0  0,0 408813984   3456   ??  S    Ven09     0:06.47 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              40344   0,0  0,0 408768784   3280   ??  S    Ven09     0:00.07 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              40329   0,0  0,0 408812960   3440   ??  S    Ven09     0:00.23 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              38879   0,0  0,0 408775952   3280   ??  S    Ven08     0:00.07 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              38852   0,0  0,0 408682912   3440   ??  S    Ven08     0:02.02 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              36892   0,0  0,0 408523024   3248   ??  S    Jeu06     0:00.06 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              36882   0,0  0,0 409075104   3424   ??  S    Jeu06     0:04.32 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              23976   0,0  0,0 408495376   1904   ??  S    Lun10     0:00.06 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              23963   0,0  0,0 409075104   3376   ??  S    Lun10     0:40.04 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              23008   0,0  0,0 408766736   1904   ??  S    Lun09     0:00.06 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              22994   0,0  0,0 408682912   2064   ??  S    Lun09     0:00.30 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              22147   0,0  0,0 408495376   1904   ??  S    Lun08     0:00.06 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              22115   0,0  0,0 408813984   2064   ??  S    Lun08     0:00.87 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              21361   0,0  0,0 408345872   1904   ??  S    Lun07     0:00.06 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              21333   0,0  0,0 408812960   2064   ??  S    Lun07     0:00.37 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              19904   0,0  0,0 408626448   1904   ??  S    Lun06     0:00.05 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              19885   0,0  0,0 408813984   2064   ??  S    Lun06     0:01.71 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              17701   0,0  0,0 408486160   1904   ??  S    Lun12     0:00.05 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              17687   0,0  0,0 408813984   2064   ??  S    Lun12     0:03.30 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              12376   0,0  0,0 408766736   1904   ??  S    Dim11     0:00.05 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              12374   0,0  0,0 408813984   2064   ??  S    Dim11     0:01.15 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              12052   0,0  0,0 408345872   1904   ??  S    Dim10     0:00.05 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan              12033   0,0  0,0 408551840   2064   ??  S    Dim10     0:01.41 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan               1940   0,0  0,0 408785168   1088   ??  S    24déc22   0:00.07 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/runner.py
dan               1918   0,0  0,0 408812960   1680   ??  S    24déc22   0:00.99 /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python /Users/dan/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool/server.py
dan              48691   0,0  0,0 408626880   1312 s001  S+    5:49     0:00.00 grep python
suside commented 1 year ago

I have 1500+ processes of ms-python.isort-2022.8.0 despite the fact that I did not open a single python file in current vscode instance.

karthiknadig commented 1 year ago

Do you see any errors reported in developer console (Help > Toggle developer tools) ? or in Output > isort?

karthiknadig commented 1 year ago

Fixed in https://github.com/microsoft/vscode-isort/pull/207

You can try the pre-release, there is a server less mode as well. you can set it using "isort.serverEnabled": false in your user settings.

hugepower commented 1 year ago

Fixed in #207

You can try the pre-release, there is a server less mode as well. you can set it using "isort.serverEnabled": false in your user settings.

vscode-pylint and vscode-black-formatter also have this problem, I hope it is solved together.