Open rchiodo opened 10 months ago
Turns out I had a workspace settings.json that listed just this:
"python.analysis.exclude": ["test_packages"]
This eliminated the defaults that skip virtual environments. If I remove that exclusion, then the virtual environments are excluded.
Perhaps the virtual environments could somehow be a separate setting? Not sure if this really matters anymore.
If the default listed out the default options, then this likely wouldn't have been an issue. Something like how the excludes for files does in VS code when you edit it:
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
}
@rchiodo I thought this might have been resolved, does this problem still exist?
No this still reproduces. It's kind of a problem. I think we should change it to always exclude venv enviroments.
I have a workspace folder like so:
When opening the folder, it analyzes the files in the venv that isn't currently selected as if they were user files. I end up with a situation like so:
Exclude paths don't seem to fix the issue either. I tried this:
Additionally our help says all virtual environments are excluded automatically: