microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
912 stars 131 forks source link

Unable to open 'python3.pyi': Unable to read file #2135

Open klajddd opened 3 years ago

klajddd commented 3 years ago

I have an issue similar to https://github.com/microsoft/python-language-server/issues/1813, not sure if that was ever fixed.

I have opened a blank python file with the following lines:

a='someText' a.lower()

When trying to access the documentation of the .lower() method, the following error appears:

Unable to open 'python3.pyi': Unable to read file '/Users/MY_USERNAME/Library/Caches/Microsoft/Python Language Server/stubs.v4/5Gj0QnRdrb5AHReKMGD6k6EdoYIw-qZ4xCPncKJOn_k=/python3.pyi' (Error: Unable to resolve non-existing file '/Users/MY_USERNAME/Library/Caches/Microsoft/Python Language Server/stubs.v4/5Gj0QnRdrb5AHReKMGD6k6EdoYIw-qZ4xCPncKJOn_k=/python3.pyi').

This would be a builtins.pyi doc file that should be opened in this case, similar to how it opens in PyCharm.