-
Notifications
You must be signed in to change notification settings - Fork 35
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
[BUG] multiple lsp_server.py processes are spawned for each folder in a multi-root workspace #476
Comments
UPDATE:: Nevermind, the issue is still present in the pre-release version. In fact, certain actions seem to trigger spawning ADDITIONAL I'd still love some input on my other questions, but I can open a separate issue if that would help. Thanks in advance! |
Steps I took to provoke this (not sure which might be relevant or superfluous):
There now seem to be anywhere from 4-6 pylint processes for every folder:
|
FWIW, I tried |
Switching branches seems to be a somewhat reliable reproduction for me it ends up spawning redundant pylint process families for the extension.
|
@tboddyspargo Can you elaborate on the actions that seem to trigger this?
There should be 1 process family per VS Code instance. I think in your case moving between branches, is changing some setting that is triggering this.
I just merged this feature. It will be in pre-release tomorrow. Basically
See above answer. PR here #475
It will (should) only run under |
The issue with #454 is different. The solution there is to switch to a mode where the IDE requests for the problems rather than the LSP server reporting problems on open, save, or close. That way, IDE has more control over when such request needs to be raised, and it could control cancellation of those requests. |
Thanks for your responses, @karthiknadig! I'm excited to hear that
As I think about which settings changes might be coming along as part of the branch change, I examined a
Could changes to the members of the FWIW, when I just make manual modifications to the |
I just restarted VSCode and then performed another branch switch in which non-pylint config changes were made to Changes in the files included:
My folder theory doesn't seem to hold water. Next, and without restarting VSCode, I switched to another branch that contained no |
I've been trying to troubleshoot some slowness from VSCode and have followed clues that have led me to some observations about the
pylint
extension. I'm hoping for some clarity on the behavior or perhaps some reassurance that there is a bug.When I go to
Help
>Open Process Explorer
I see twopylint
subprocess families, each of which contains sub-nodes (sub-processes?) for every folder in my multi-root workspace.I only expected one process to be running per folder in my workspace, so this felt like a likely source of duplicative work.
The logs seem to support the fact that two identical pylint
lsp_server.py
processes are running. Everything is logged twice in rapid succession (full logs below):Full pylint extension startup log
Questions
pylint
extension have two process families? Are they redundant? If so, is the current behavior a "bug"?pylint
extension for specific folders in a multi-root workspace?"pylint.enable": false
?"."
and a subdirectoy"./pkg-a"
and I save changes to./pkg-a/main.py
, will two separatepylint
processes perform the linting, or will the extension avoid that redundancy?The text was updated successfully, but these errors were encountered: