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.
Text edit desync leading to invalid analysis/linting #1637
Name: Python
Id: ms-python.python
Description: Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more.
Version: 2019.9.34911
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python
python versions
- Python version (& distribution if applicable, e.g. Anaconda): `2.7`
- Type of virtual environment used: `virtualenv`
- Jedi or Language Server? `Language server`
Expected behaviour
Linter should parse python files properly. I would expect the characters to not be backwards.
Actual behaviour
The characters are displayed backwards and it throws an error.
All sorts of things start randomly throwing uninformative and incorrect errors:
Steps to reproduce:
Something in a recent update broke this, but I don't think anything in particular leads to this behavior on my end. I have a multi-root workspace configured with 2 python projects. And this generally tends to break everything related to this extension. Not sure if that could be relevant.
[2019-10-06 16:35:12.742] [renderer1] [error] Unable to read file (Error: File not found (/Users/rvinzent/Library/Caches/Microsoft/Python Language Server/stubs.v2/U4Yfc1Srfa_KARMCmhJ_oe1y3D3LJt-FJ92ywfe1U1E=/python.pyi)): Error: Unable to read file (Error: File not found (/Users/rvinzent/Library/Caches/Microsoft/Python Language Server/stubs.v2/U4Yfc1Srfa_KARMCmhJ_oe1y3D3LJt-FJ92ywfe1U1E=/python.pyi))
at b.<anonymous> (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1521:283)
at Generator.throw (<anonymous>)
at a (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:35:450)
Activity
karthiknadig commentedon Oct 7, 2019
Moving over to the Language server repo.
MikhailArkhipov commentedon Oct 7, 2019
Sounds like another issue like #1543
[-]Python parser outputting weird errors[/-][+]Text edit desync leading to invalid analysis/linting[/+]MikhailArkhipov commentedon Dec 16, 2019
#1543 was fixed, feel free to reopen if you still see this. Thanks.
Ark-kun commentedon Sep 27, 2020
It's not fixed.
It has happened to me many times in 2020.
#2026 (comment)
Happened again on