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
Large memory usage, memory leaks #280
Comments
@2-5 This is a If you are using the latest version of There is a workaround, you will need the following:
This is less performant, but it should be able to run |
I can reproduce this issue, and I filed pylint-dev/pylint#8361. |
I am seeing this issue several times per day, with memory use approaching several gigabytes even without the OP's reproduction steps. pylint-dev/pylint#8361 is carefully pessimistic this can be solved, I would say:
The workaround using |
fyi, pylint-dev/pylint#8361 has been closed as a duplicate of pylint-dev/astroid#1780. |
Some work in pylint-dev/pylint#8361 has landed in pylint 2.17.1, but that does not seem to have fixed the issue. Let's hope for pylint-dev/astroid#1780. (Tested with pylint 2.17.1/astroid 2.15.0.) |
One problem with this workaround is that "pylint.path": [
"C:\\Users\\bers\\.pyenv-win-venv\\envs\\project_3.11\\Scripts\\pylint.exe",
], and that doesn't seem to use my An extended workaround is to add something like
to each project. |
@bersbersbers You can use As for pylint ignoring |
Good idea, thanks. Anyway, there is now another workaround from pylint-dev/pylint#8361 (comment), which involves adding only "pylint.args": [
"--clear-cache-post-run",
],
I haven't investigated that in more depth, but my guess is that this may be related to the same underlying reason why adding
leading to The folder open in VS Code is I tried storing
The same is true when I edit an out-of-workspace file:
Again - Not sure what a good fix would be, but for all three files, I'd expect By the way, |
More details and repro steps for the above issue can be found in #332. |
This PR #349 should address the path issue that caused The leak in If you have to use the
|
When
vscode-pylint
introspects an object, it seems to keep a reference to it alive.If the object is very large,
vscode-pylint
will quickly consume memory. This happens especially in the context of Jupyter notebooks, where is usual to work with large data objects, but can happen with regular.py
files too:bundled\tool\lsp_server.py
) now uses 4 GB of RAMThe text was updated successfully, but these errors were encountered: