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

"import xxxxx" without any warnings in the error list. #7687

Closed
ttSpace opened this issue Jul 31, 2023 · 14 comments
Closed

"import xxxxx" without any warnings in the error list. #7687

ttSpace opened this issue Jul 31, 2023 · 14 comments
Assignees
Labels
fixed in next version A fix has been implemented an will appear in an upcoming version waiting for upstream Waiting for upstream to release a fix

Comments

@ttSpace
Copy link

ttSpace commented Jul 31, 2023

Describe the bug

image

Steps to Reproduce

  1. Create a Python Application.
  2. type import xxxxx.

Expected behavior

Displays a green squiggly line under xxxxx and a warning in the error list.

image

Additional context and screenshots

No green squiggly lines and warnings.

image

@ttSpace ttSpace changed the title Do not show warnings when "importing xxxxx". "import xxxxx" without any warnings in the error list. Jul 31, 2023
@StellaHuang95 StellaHuang95 transferred this issue from microsoft/PTVS Jul 31, 2023
@StellaHuang95 StellaHuang95 assigned rchiodo and unassigned heejaechang Jul 31, 2023
@rchiodo
Copy link
Contributor

rchiodo commented Jul 31, 2023

@ttSpace, I can't repro this issue. With the latest Preview 4 build I see an import resolve error.

Can you share the output for the 'Pylance' server?

@rchiodo
Copy link
Contributor

rchiodo commented Jul 31, 2023

It should be on this pane here:

Image

@StellaHuang95
Copy link
Contributor

I can repro on Microsoft Visual Studio Enterprise 2022 (64-bit) - Int Preview Version 17.8.0 Preview 2.0 [33930.147.main].

This is the link to download the latest int preview: https://aka.ms/vs/17/intpreview/vs_enterprise.exe

Below are the logs:

Info: (15896) Pylance language server 2023.7.40 (pyright b917b7a5) starting
Info: (15896) Server root directory: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist
Info: (15896) virtual workspace: C:\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4
Info: (15896) Starting service instance "PythonApplication4"
Info: Un-registering request handler for 379a4007-26e6-42db-aa90-030bd71c6014 failed.
Log: (15896) No configuration file found.
Log: (15896) No pyproject.toml file found.
Info: (15896) Setting pythonPath for service "PythonApplication4": "C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\python.exe"
Info: (15896) Assuming Python version 3.11
Log: (15896) Assuming Python platform Windows
Info: (15896) Search paths for \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4
Info: (15896) c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib
Info: (15896) \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4
Info: (15896) \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\typings
Info: (15896) c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stubs...
Info: (15896) c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\bundled\stubs
Info: (15896) c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\DLLs
Info: (15896) c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib
Info: (15896) c:\Users\stellahuang\AppData\Local\Programs\Python\Python311
Info: (15896) c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages
Info: (15896) c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32
Info: (15896) c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib
Info: (15896) c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin
Log: (15896) Searching for source files
Error: (15896) File or directory "\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4" does not exist.
Info: (15896) No source files found.
Log: (15896) [FG] parsing: \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py (167ms)
Info: (15896) Could not import 'xxxx' in file '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py'
Info: (15896) Looking in stubPath '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\typings'
Info: (15896) Attempting to resolve stub package using root path '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\typings'
Info: (15896) Attempting to resolve using root path '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\typings'
Info: (15896) Looking in root directory of execution environment '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4'
Info: (15896) Attempting to resolve stub package using root path '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4'
Info: (15896) Attempting to resolve using root path '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4'
Info: (15896) Finding python search paths
Info: (15896) Executing interpreter: 'C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\python.exe'
Info: (15896) Skipping 'C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\python311.zip' because it is not a valid directory
Info: (15896) Received 7 paths from interpreter
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\DLLs
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\Pythonwin
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\DLLs'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\DLLs'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\DLLs'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin'
Info: (15896) Looking in bundled stubs path 'c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\bundled\stubs'
Info: (15896) Attempting to resolve stub package using root path 'c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\bundled\stubs'
Info: (15896) Attempting to resolve using root path 'c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\bundled\stubs'
Info: (15896) Looking for typeshed stdlib path
Info: (15896) Looking for typeshed stdlib path
Info: (15896) Attempting to resolve using root path 'c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib'
Info: (15896) Typeshed path not found
Info: (15896) Looking for typeshed third-party path
Info: (15896) Looking for typeshed stubs path
Info: (15896) Typeshed path not found
Log: (15896) [FG] parsing: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib\builtins.pyi [fs read 6ms] (323ms)
Log: (15896) [FG] binding: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib\builtins.pyi (113ms)
Log: (15896) [FG] binding: \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py (1ms)
Log: (15896) [FG] analyzing: \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py ...
Log: (15896) [FG] checking: \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py ...
Log: (15896) [FG] parsing: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib\typing.pyi [fs read 3ms] (103ms)
Log: (15896) [FG] binding: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib\typing.pyi (31ms)
Log: (15896) [FG] parsing: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib\typing_extensions.pyi [fs read 1ms] (35ms)
Log: (15896) [FG] binding: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib\typing_extensions.pyi (7ms)
Log: (15896) [FG] parsing: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib_typeshed_init_.pyi [fs read 1ms] (13ms)
Log: (15896) [FG] binding: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib_typeshed_init_.pyi (7ms)
Log: (15896) [FG] parsing: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib\types.pyi [fs read 1ms] (21ms)
Log: (15896) [FG] binding: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib\types.pyi (12ms)
Log: (15896) [FG] parsing: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib\abc.pyi [fs read 1ms] (2ms)
Log: (15896) [FG] binding: c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib\abc.pyi (0ms)
Log: (15896) [FG] checking: \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py (297ms)
Log: (15896) [FG] analyzing: \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py (297ms)
Log: (15896) [FG] parsing: \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py (1ms)
Info: (15896) Could not import 'xxxx' in file '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py'
Info: (15896) Looking in stubPath '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\typings'
Info: (15896) Attempting to resolve stub package using root path '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\typings'
Info: (15896) Attempting to resolve using root path '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\typings'
Info: (15896) Looking in root directory of execution environment '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4'
Info: (15896) Attempting to resolve stub package using root path '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4'
Info: (15896) Attempting to resolve using root path '\Users\stellahuang\source\repos\PythonApplication4\PythonApplication4'
Info: (15896) Finding python search paths
Info: (15896) Executing interpreter: 'C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\python.exe'
Info: (15896) Skipping 'C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\python311.zip' because it is not a valid directory
Info: (15896) Received 7 paths from interpreter
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\DLLs
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib
Info: (15896) C:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\Pythonwin
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\DLLs'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\DLLs'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\DLLs'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib'
Info: (15896) Looking in python search path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin'
Info: (15896) Attempting to resolve stub package using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin'
Info: (15896) Attempting to resolve using root path 'c:\Users\stellahuang\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin'
Info: (15896) Looking in bundled stubs path 'c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\bundled\stubs'
Info: (15896) Attempting to resolve stub package using root path 'c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\bundled\stubs'
Info: (15896) Attempting to resolve using root path 'c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\bundled\stubs'
Info: (15896) Looking for typeshed stdlib path
Info: (15896) Looking for typeshed stdlib path
Info: (15896) Attempting to resolve using root path 'c:\users\stellahuang\appdata\local\microsoft\visualstudio\17.0_1c4853b5exp\extensions\microsoft corporation\python\17.8.0\pylance\dist\typeshed-fallback\stdlib'
Info: (15896) Typeshed path not found
Info: (15896) Looking for typeshed third-party path
Info: (15896) Looking for typeshed stubs path
Info: (15896) Typeshed path not found
Log: (15896) [FG] binding: \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py (1ms)
Log: (15896) [FG] analyzing: \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py ...
Log: (15896) [FG] checking: \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py (13ms)
Log: (15896) [FG] analyzing: \Users\stellahuang\source\repos\PythonApplication4\PythonApplication4\PythonApplication4.py (13ms)

@rchiodo
Copy link
Contributor

rchiodo commented Jul 31, 2023

Wouldn't the fix then be to upgrade to Preview 4? Can you repro on Preview 4?

@rchiodo
Copy link
Contributor

rchiodo commented Jul 31, 2023

I'm trying to install Preview 2.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 1, 2023

Nevermind I can't even run that version. Well at least build it locally because the references are out of date.

@StellaHuang95
Copy link
Contributor

ok I ran into the same errors while building it too. At first I thought it might be related to the version number in main being lower than the release branch, but just checked that the version numbers in both branches are the same, so I am not sure what's causing the issue. I was able to work around it by searching for the ids in the error messages in PTVS, and manually bumping up the version number to something like 17.8.0.

@ttSpace
Copy link
Author

ttSpace commented Aug 1, 2023

@rchiodo The output of Pylance.

image

Logs

Output for Pylance in the Output panel

Info: (6028) Pylance language server 2023.7.30 (pyright 74d8f3c4) starting
Info: (6028) Server root directory: c:\program files\microsoft visual studio\2022\preview\common7\ide\extensions\microsoft\python\core\pylance\dist
Info: (6028) virtual workspace: C:\Users\vting\source\repos\PythonApplication14\PythonApplication14
Info: (6028) Starting service instance "PythonApplication14"
Info: Un-registering request handler for 12133f5e-e54e-4366-b36a-6a6feb2bcce4 failed.
Info: (6028) Setting pythonPath for service "PythonApplication14": "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\python.exe"
Info: (6028) Assuming Python version 3.9
Error: (6028) File or directory "\Users\vting\source\repos\PythonApplication14\PythonApplication14" does not exist.
Info: (6028) No source files found.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 1, 2023

Oh I'm using 17.7. You two are using 17.8. That might be the problem. It could be an issue with something in Visual Studio. Let me try installing 17.8.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 1, 2023

I can repro now. With pylance 2023.7.30 and 17.8

@rchiodo
Copy link
Contributor

rchiodo commented Aug 1, 2023

Internally this is happening because the 'reportMissingImports' diagnostic severity is set to 'none'. It's like ALL of the errors are turned off. Not sure why yet.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 1, 2023

It's because Pylance thinks the workspace is not local. It looks like VS is not sending a URI for the workspace root anymore and just sending a file path.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 1, 2023

Found the root cause. Change in the DocumentUriConverter by core. Bug has been fixed but is not shipping yet:
https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1862963/

@rchiodo rchiodo added waiting for upstream Waiting for upstream to release a fix fixed in next version A fix has been implemented an will appear in an upcoming version and removed user responded labels Aug 1, 2023
@rchiodo rchiodo transferred this issue from microsoft/pylance-release Aug 1, 2023
@StellaHuang95
Copy link
Contributor

Closing as it doesn't repro anymore on Microsoft Visual Studio Enterprise 2022 (64-bit) - Int Preview Version 17.8.0 Preview 2.0 [34002.499.main]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version A fix has been implemented an will appear in an upcoming version waiting for upstream Waiting for upstream to release a fix
Projects
None yet
Development

No branches or pull requests

4 participants