Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reportMissingImports : Even if the module is successfully installed, a warning will still be displayed in the Error List window. #8024

Open
ttSpace opened this issue Oct 9, 2024 · 6 comments
Assignees

Comments

@ttSpace
Copy link

ttSpace commented Oct 9, 2024

Describe the bug

Image

Steps to Reproduce

  1. Create a Flask Web Project.
  2. 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

Image

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.

@StellaHuang95
Copy link
Contributor

@bschnurr This user also mentioned it still repros for them in the latest version. #7068 (comment)

@bschnurr
Copy link
Member

bschnurr commented Oct 9, 2024

@ttSpace any custom pylance settings?

@ttSpace
Copy link
Author

ttSpace commented Oct 10, 2024

@bschnurr My Pylance settings are default.

@axelande
Copy link

@bschnurr is there any way to add settings to Pylance in the pyproj file?

@axelande
Copy link

@ttSpace, can you share the .pyproj file and the folder structure (in which folders are your .pyproj file, src file and env folder located?)

@ttSpace
Copy link
Author

ttSpace commented Oct 11, 2024

I can repro it in today's build.

Image

FlaskWebProject1.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants