How to limit virtualenv file watches to prevent large workspace error #19523
Replies: 1 comment 3 replies
-
How many environments do you have in that directory? And this comes from Pylance as we don't monitor for file changes outside of your workspace. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have all of my virtual environments in a single folder (
~/.virtualenvs/
) and found that this causes the following issue in Vscode (even in an empty project):The logs show that the Python extension is watching the
~/.virtualenvs
directory, but does it need to watch all files in these directories? When working on multiple projects, this can easily exceed the watcher limit (which I don't have much control over setting, as I'm operating on a remote machine).Disabling the Python extension resolves, but am wondering if anyone else has come across this and knows a way around it? I've tried modifying Vscode's setting "files.watcherExclude" but that did not seem to have an effect.
Beta Was this translation helpful? Give feedback.
All reactions