-
Notifications
You must be signed in to change notification settings - Fork 675
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 #7068
Comments
#6713 |
I think the recent comments on the closed issue #6713 also relate to this. Something seems to break once projects use flask which causes quite annoying erroneous knock-on warnings and falsely flagging modules and variables as being unused. The latter problem seems to go away once VS is restarted. |
Still a problem at 17.4.3 of Visual Studio Pro. |
I agree the problem is not limited to projects using flask. Probably related to #7274 as the "X could not be resolved" warnings are not reported when the CLI-version of pyright is run on the project. |
Still a problem at 17.4.4 of Visual Studio |
Whats the betting that it won't be fixed in the next version. |
Still having issue on Version 17.5.3. |
An issue on a fresh environment and newest VS-2022 (17.5.5). Works well in VS-2019; works in Version 17.6.0 Preview 6.0. |
@bschnurr This seems to still repro in the recent versions, shall we re-open it? |
We are still getting reports of this issue |
I see this fixed in latest. it should be in the newest dogfood build |
What do you mean with the newest dogfood build? When I tried with an updated version I got redirected here instead of my venv (for a few packages that was in pylance, for the other I get no redirect/help but the missing import underline is gone :)): Could it be some issue with my .pyproj file? (All python files are in the first Microsoft Visual Studio Community 2022 Installed Version: Community Visual C++ 2022 00482-90000-00000-AA553 ASP.NET and Web Tools 17.8.358.6298 Azure App Service Tools v3.0.0 17.8.358.6298 C# Tools 4.8.0-7.23572.1+7b75981cf3bd520b86ec4ed00ec156c8bc48e4eb Cookiecutter 17.0.23262.1 Microsoft JVM Debugger 1.0 NuGet Package Manager 6.8.0 Python - Profiling support 17.0.23262.1 Python - VC Project Support 17.0.23055.1 Python with Pylance 17.0.23262.1 Visual Basic Tools 4.8.0-7.23572.1+7b75981cf3bd520b86ec4ed00ec156c8bc48e4eb Visual Studio IntelliCode 2.2 |
Still the same problem for me with Pylance 17.0.24026.1: I've played around and created a new project, which works great. This is basically the folder structure that I'm working with:
Very complicated but it has it reasons... In the python_proj.pyproj I have (among a lot of others):
The code works and I can run it, debug it etc. etc. but pylance doesn't find the venv with this structure, where does it search or how can I specify where it should search for a venv? |
@bschnurr Looks like it still repros, so I just reopened the issue. |
Anything I can do to help fix this issue? (Or change paths in my .pyproj file to help the Intellisense?) |
Any news while working with a complex folder structure? |
Is there any possibility to tell the intellisense where to look for the venv? |
I tried to get the latest preview version, however still the same issue. @bschnurr can you try to set up a project with the folder structure like I described in the post from 14 feb and see if that works for you? |
I've pinpointed that I can't get the intellisense to work in VisualStudio due to my folder structure, is there any way to help the intellisense to find the correct Python environment? The VisualStudio runtime understand it but not the intellisense. |
Environment
Steps to Reproduce
1.Create a Flask Web Project.
2.Click Create virtual environment( Make sure Flask was successfully installed ).
3.Reload the Project.
Expected behavior
After Flask is successfully installed, no errors or warnings will be displayed.
Actual behavior
Pylance Output info
The text was updated successfully, but these errors were encountered: