You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Horrible experience with Python Language Server #1813
Often Language Server emits errors like below and my guess it depends on "weather conditions" - absolutely unpredictable.
Unable to open 'python.pyi': Unable to read file (Error: File not found (/Users/artemav/Library/Caches/Microsoft/Python Language Server/stubs.v4/fJB3UsE4Gq6YclHi4GoLw6ngBkMtdMTdkOlmPhNG7K8=/python.pyi)).
I cannot get any reasonable autocompletion, even for standard python things! Sometimes, I see this error in "Developer Tools".
ERR No application in the Launch Services database matches the input criteria.: Error: No application in the Launch Services database matches the input criteria.
At workspace some folders are indexed and others are not, but have similar code and use same dependencies...
PS: I have to switch to Pycharm! I'm ready to help with debugging the issue and I'm sorry not providing MWE how to reproduce it, because all logs are nearly empty:
2 is two unrelated things. We'd like to know what autocomplete is not showing up that should. The language server cannot print to that debug window (that's VS Code).
3 I'm not sure what you mean by "indexed". Specifically autocompletion? Linting? Workspace symbol indexing?
We need something specific to work on here. Do you have the code that causes issues?
I cannot get any reasonable autocompletion, even for standard python things! Sometimes, I see this error in "Developer Tools".
My guess, I'm experiencing the same issue as here: #1806. The analyzing hangs and, in the end, the autocompletion stops working.
3 I'm not sure what you mean by "indexed". Specifically autocompletion? Linting? Workspace symbol indexing?
I mean that in a workspace with three TensorFlow based projects, - "Jumping to Definition" and all other features related to the Python Language Server (PLS) does work for only one folder out of three. Let's say I have projects A, B and C, and "Jump to Definition" works fine in the A project, but once I open a file from project B - the autocomplete and other features from PLS do not work.
No, we would reply if there were. May I assume that by multiple projects in a workspace, you mean VS Code's multi-root workspace system and not just three folders in a single place?
when trying to access the documentation of lower(), this error appears:
Unable to open 'python3.pyi': Unable to read file '/Users/MYUSERNAME/Library/Caches/Microsoft/Python Language Server/stubs.v4/5Gj0QnRdrb5AHReKMGD6k6EdoYIw-qZ4xCPncKJOn_k=/python3.pyi' (Error: Unable to resolve non-existing file '/Users/MYUSERNAME/Library/Caches/Microsoft/Python Language Server/stubs.v4/5Gj0QnRdrb5AHReKMGD6k6EdoYIw-qZ4xCPncKJOn_k=/python3.pyi').
Activity
jakebailey commentedon Nov 27, 2019
1 is a bug.
2 is two unrelated things. We'd like to know what autocomplete is not showing up that should. The language server cannot print to that debug window (that's VS Code).
3 I'm not sure what you mean by "indexed". Specifically autocompletion? Linting? Workspace symbol indexing?
We need something specific to work on here. Do you have the code that causes issues?
awav commentedon Nov 28, 2019
My guess, I'm experiencing the same issue as here: #1806. The analyzing hangs and, in the end, the autocompletion stops working.
I mean that in a workspace with three TensorFlow based projects, - "Jumping to Definition" and all other features related to the Python Language Server (PLS) does work for only one folder out of three. Let's say I have projects A, B and C, and "Jump to Definition" works fine in the A project, but once I open a file from project B - the autocomplete and other features from PLS do not work.
awav commentedon Dec 4, 2019
Jake Bailey (@jakebailey), any update?
jakebailey commentedon Dec 4, 2019
No, we would reply if there were. May I assume that by multiple projects in a workspace, you mean VS Code's multi-root workspace system and not just three folders in a single place?
awav commentedon Dec 4, 2019
That's right. I have three folders in one workspace. If I open projects individually, the autocomplete works.
MikhailArkhipov commentedon Dec 16, 2019
I am going to dupe against #1196.
klajddd commentedon Jan 1, 2021
I am having the same issue:
I have a blank python file with these 2 lines:
a='llklk'
a.lower()
when trying to access the documentation of lower(), this error appears:
Unable to open 'python3.pyi': Unable to read file '/Users/MYUSERNAME/Library/Caches/Microsoft/Python Language Server/stubs.v4/5Gj0QnRdrb5AHReKMGD6k6EdoYIw-qZ4xCPncKJOn_k=/python3.pyi' (Error: Unable to resolve non-existing file '/Users/MYUSERNAME/Library/Caches/Microsoft/Python Language Server/stubs.v4/5Gj0QnRdrb5AHReKMGD6k6EdoYIw-qZ4xCPncKJOn_k=/python3.pyi').