Closed jrobinAV closed 11 months ago
Moving this to priority high as crashing VSCode while you are coding is really frustrating
I wonder if it would be better to have an option of ignoring directories at the settings level instead of a ignore file ?
Sorry, I need to reopen this as the issue happened to me today. How do I avoid this issue from happening?
I think venv environments should either be ignored by default or the fix should be clearly highlighted in the docs
doc issue
the right default setting would be {**/.env,**/.venv,**/env,**/venv,**/ENV,**/env.bak,**/venv.bak}
@AlexandreSajus commented on Fri May 12 2023
Description I use Python venv native module to create virtual environments for my projects instead of anaconda (like a lot of people)
This module spawns a virtual environment in my current working directory:![image](https://github.com/Avaiga/taipy-core/assets/62465003/41f3d2d2-e8a6-4615-989b-d1bd3cd8f5e1)
When I choose a function for a Task Node:![image](https://github.com/Avaiga/taipy-core/assets/62465003/b82710f9-d181-46bf-8e81-3e8161133727)
Taipy Core will analyze every Python File in my current working directory which means analyze the thousands of Python files in my virtual environment.
This consumes all of my memory and freezes Taipy Studio to death:
![image](https://github.com/Avaiga/taipy-core/assets/62465003/f9a2fa6f-fea8-4244-b909-1166627cb671)
How to reproduce
python -m venv venv
Expected behavior The same way we use .gitignore to ignore non-relevant files when comparing with a repo, there should be a way to ignore specific files or folders when Taipy Studio analyzes the current working directory.
Runtime environment
@jrobinAV commented on Tue May 16 2023
Hello,
That is not a taipy-core issue. That is for taipy-studio-config