vscode: UNC paths not resolved even with host on whitelist or setting fully disabled
Does this issue occur when all extensions are disabled?: No, issue occurs in extension. I reported the issue to the extension and was told it is an issue with VS Code. Note that my repro steps are slightly different as I simplified them, but they have the same effect.
- VS Code Version: 1.79.2 and Insider’s
- OS Version: Windows 10 21H2 Build 19044.2788
Steps to Reproduce: unc_package_dir.zip
- Install Python extension and Pylance extension
- Extract attached ZIP file to a local and UNC location.
- Open the
unc_package_dirfolder from the UNC path in VS Code. Confirm that you want to add the UNC host to the whitelist permanently. - Open file
test.pyin editor, once the analysis completed after a few seconds, note thatimport some_packageis indicated as an error. UnderProblemsnote the message[unc_package_dir.zip](https://github.com/microsoft/vscode/files/11824504/unc_package_dir.zip) Import "some_package" could not be resolved
Now repeat 3-5 but for the unc_package_dir in the local folder location. Note that the Import "some_package" could not be resolved does not appear here.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 23 (22 by maintainers)
@deepak1556 it is working as expected with the
Security: Restrict UNCAccesssetting now. Thank you!@bpasero Trying this out but it seems like Pylance is not operating at all in the build you linked. I am not getting any Intellisense or anything. Even with logging set to
Trace, this is the only output shown for the Python Language Server:2023-08-02 10:06:19.287 [info] (Client) You may install and use any number of copies of the software only with Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure DevOps, Team Foundation Server, and successor Microsoft products and services (collectively, the “Visual Studio Products and Services”) to develop and test your applications. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. You may not: work around any technical limitations in the software that only allow you to use it in certain ways; reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software; remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software; use the software in any way that is against the law or to create or propagate malware; or share, publish, distribute, or lease the software (except for any distributable code, subject to the terms above), provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party.The build suggested the pre-release version of the Python extension so I tried that first, then switched to release. Both have the same result.