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.

Prospector not killed on VSCode close

See original GitHub issue

Environment data

  • VS Code version: 1.27.2
  • Extension version (available under the Extensions sidebar): 2018.8.0
  • OS and version: Linux
  • Python version (& distribution if applicable, e.g. Anaconda): python 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): pipenv
  • Relevant/affected Python packages and their versions: prospector 1.1.2

Actual behavior

Sometimes prospector (because of pylint, see PyCQA/pylint#2198) can take a VERY long time to run. After closing VSCode, prospector continued to run.

Expected behavior

On closing VSCode, the linter should be stopped.

Steps to reproduce:

  1. I opened one file from pandas, I suspect that vscode started prospector on it (is it actually normal that the linter is run on a file outside my project?)
  2. I closed VSCode
  3. A process was continuing to run (and eat all my CPU 😉:
/home/victor/.local/share/virtualenvs/bretl-YRwJFXpT/bin/python -m prospector --absolute-paths --output-format=json frame.py

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
brettcannoncommented, Sep 27, 2018

@victornoel yes please.

0reactions
DonJayamannecommented, Nov 13, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Register processes to be killed when extension is unloaded
Prospector not killed on VSCode close #2681 ; Restart of Python launch debug session leaks Code.Helper processes on macOS #3217 ; Multiple pylint...
Read more >
why are pylint's error squiggle lines not showing in python ...
In your settings.json file(search for settings.json in the command palette), declare the following: "python.linting.
Read more >
2. Command Line Usage — prospector documentation
Prospector will exit with a code of 1 (one) if any messages are found. This makes automation easier; if there are any problems...
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
You can try killing unused programs and processes on your machine in case one of them is keeping a terminal shell process active...
Read more >
Black vs yapf vs ??? : r/Python - Reddit
In my experience black is close to perfect but I'm curious if there may be something ... In vscode, just press Alt Shift...
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