PTVS
PTVS copied to clipboard
reportMissingImports : Even if the module is successfully installed, a warning will still be displayed in the Error List window.
Describe the bug
Steps to Reproduce
- Create a Flask Web Project.
- Click Create virtual environment ( Make sure Flask was successfully installed ).
Expected behavior
After Flask is successfully installed, no errors or warnings will be displayed.
Additional context and screenshots
Logs
Output for Pylance
in the Output
panel
Info: (22500) Pylance language server 2024.9.104 (pyright version 1.1.382, commit e46efc6b) starting
Info: (22500) Server root directory: file:///c%3A/program%20files/microsoft%20visual%20studio/2022/preview/common7/ide/extensions/microsoft/python/core/pylance/dist
Info: (22500) Starting service instance "<default>"
Info: (22500) Starting service instance "FlaskWebProject1"
Info: (22500) No include entries specified; assuming \<default workspace root>
Info: (20716) Server root directory: file:///c%3A/program%20files/microsoft%20visual%20studio/2022/preview/common7/ide/extensions/microsoft/python/core/pylance/dist
Info: (20716) Pylance language server 2024.9.104 (pyright version 1.1.382, commit e46efc6b) starting
Info: (20716) Starting service instance "<default>"
Info: (20716) No include entries specified; assuming \<default workspace root>
Info: (20716) Auto-excluding **/node_modules
Info: (20716) Auto-excluding **/__pycache__
Info: (20716) Auto-excluding **/.*
Error: (20716) File or directory "\<default workspace root>" does not exist.
Info: (20716) No source files found.
Info: (20716) Background analysis(1) root directory: file:///c%3A/program%20files/microsoft%20visual%20studio/2022/preview/common7/ide/extensions/microsoft/python/core/pylance/dist
Info: (20716) Background analysis(1) started
Info: (20716) No include entries specified; assuming \<default workspace root>
Info: (20716) Auto-excluding **/node_modules
Info: (20716) Auto-excluding **/__pycache__
Info: (20716) Auto-excluding **/.*
Error: (20716) File or directory "\<default workspace root>" does not exist.
Info: (20716) No source files found.
Info: Un-registering request handler for 56a901cb-4729-46b9-8642-f8ca6c8fe651 failed.