-
Notifications
You must be signed in to change notification settings - Fork 36
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
Stopping old instances of PyLint when requesting new ones #11
Comments
Agreed, and it’s definitely possible it won’t be possible to fix it (since it’s not a bug per se). I will try to do my own digging as well. |
This is becoming a real issue for me. It pretty well breaks pycharm after a while. But as suggested, disabling the real-time scan fixes the issue. |
This issue has been automatically marked as stale because it has not had activity in the last 60 days. |
I'm also experiencing very serious consequences of this. |
This issue has been automatically marked as stale because it has not had activity in the last 60 days. |
It would be really nice to have this implemented. Specifically the killing of old pylint processes when it triggers new ones. Gotta keep track of which pylint processes it triggered in the past and only kill those to prevent killing pylint processes that don't belong to it. |
Thanks to @intgr's contribution to the Mypy Plugin, this feature has now been ported also to this plugin. |
A new version with the fix for this issue is currently pending review from JetBrains. It should become available in the next few days. |
First of all, I love this plugin. I really want to see it grow and I will try to help out any way I can.
Is your feature request related to a problem? Please describe.
Two scenarios:
If I run Inspect Code a few times, fixing bugs I can easily get 20 python processess all running PyLint all using 100% each. Up to 40 python processes for lint on save.
If I jump around looking for things in my source I get a lot of Python processes, since PyLint is executed every time a file comes into view. A 300-400 line python file can easily take 5-10 seconds to lint.
Describe the solution you'd like
It would be nice of one could enable a feature that will abort the previously running PyLints when running a new Inspect Code. That way the old ones won't keep stacking up when they are irrelevant.
Describe alternatives you've considered
Speeding up PyLint (but that requires more cores usually, which might be counter intuitive. Some warning that PyLint won't run again since it's already running in the background.
Additional context
This is a hard thing to implement and I'm not sure what the best course of action would be. Perhaps options such as:
Questions
The text was updated successfully, but these errors were encountered: