Avaiga / taipy-studio-config

Visual Studio Code extension for Taipy: Configuration Builder
Apache License 2.0
5 stars 1 forks source link

BUG-Choosing a function for a Task in Studio when a venv is in the CWD freezes VSCode to death #52

Closed jrobinAV closed 11 months ago

jrobinAV commented 1 year ago

@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

When I choose a function for a Task Node: image

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 image

How to reproduce

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

AlexandreSajus commented 1 year ago

Moving this to priority high as crashing VSCode while you are coding is really frustrating

FredLL-Avaiga commented 1 year ago

I wonder if it would be better to have an option of ignoring directories at the settings level instead of a ignore file ?

AlexandreSajus commented 11 months ago

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

FredLL-Avaiga commented 11 months ago

doc issue image

FredLL-Avaiga commented 11 months ago

the right default setting would be {**/.env,**/.venv,**/env,**/venv,**/ENV,**/env.bak,**/venv.bak}