Problem
IntelliJ IDEA Ultimate automatically detects and includes directories as Python source roots, even if they are build artifacts or hidden virtual environments (venvs). This behavior leads to incorrect source detection, such as detecting excluded or git-ignored directories containing venvs as source roots while ignoring valid workspaces:
Cause [Optional]
not clear
Resolution
To disable the Python source auto-detection feature in IntelliJ IDEA Ultimate, follow these steps:
- Open Help | Find Action and search for the Registry.
- In the Registry window, locate and toggle off the following flags:
python.source.root.suggest.quickfixpython.source.root.suggest.quickfix.auto.apply
- Restart the IDE.
Comments
0 comments
Please sign in to leave a comment.