Title: Text edit desync leading to invalid analysis/linting · Issue #1637 · microsoft/python-language-server · GitHub
Open Graph Title: Text edit desync leading to invalid analysis/linting · Issue #1637 · microsoft/python-language-server
X Title: Text edit desync leading to invalid analysis/linting · Issue #1637 · microsoft/python-language-server
Description: Environment data Version: 1.38.1 Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0 Date: 2019-09-11T13:31:32.854Z Electron: 4.2.10 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Darwin x64 18.7.0 extension info Name:...
Open Graph Description: Environment data Version: 1.38.1 Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0 Date: 2019-09-11T13:31:32.854Z Electron: 4.2.10 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS...
X Description: Environment data Version: 1.38.1 Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0 Date: 2019-09-11T13:31:32.854Z Electron: 4.2.10 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1637
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Text edit desync leading to invalid analysis/linting","articleBody":"\u003c!-- Please search existing issues to avoid creating duplicates. -->\r\n\r\n## Environment data\r\n\r\n```\r\nVersion: 1.38.1\r\nCommit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0\r\nDate: 2019-09-11T13:31:32.854Z\r\nElectron: 4.2.10\r\nChrome: 69.0.3497.128\r\nNode.js: 10.11.0\r\nV8: 6.9.427.31-electron.0\r\nOS: Darwin x64 18.7.0\r\n```\r\nextension info\r\n```\r\nName: Python\r\nId: ms-python.python\r\nDescription: Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more.\r\nVersion: 2019.9.34911\r\nPublisher: Microsoft\r\nVS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python\r\n```\r\n\r\npython versions\r\n```\r\n- Python version (& distribution if applicable, e.g. Anaconda): `2.7`\r\n- Type of virtual environment used: `virtualenv`\r\n- Jedi or Language Server? `Language server`\r\n```\r\n## Expected behaviour\r\n\r\nLinter should parse python files properly. I would expect the characters to not be backwards.\r\n\r\n## Actual behaviour\r\n\r\n\u003cimg width=\"414\" alt=\"Screen Shot 2019-10-07 at 1 00 08 PM\" src=\"https://user-images.githubusercontent.com/34038882/66344850-a5f54880-e903-11e9-9963-55d05dfbbbce.png\">\r\nThe characters are displayed backwards and it throws an error.\r\n\r\nAll sorts of things start randomly throwing uninformative and incorrect errors:\r\n\r\n\u003cimg width=\"728\" alt=\"Screen Shot 2019-10-07 at 1 31 50 PM\" src=\"https://user-images.githubusercontent.com/34038882/66346453-0df95e00-e907-11e9-9b77-262bd913d2ae.png\">\r\n\u003cimg width=\"747\" alt=\"Screen Shot 2019-10-07 at 1 32 02 PM\" src=\"https://user-images.githubusercontent.com/34038882/66346458-105bb800-e907-11e9-9ac9-8518bc2c1541.png\">\r\n\u003cimg width=\"784\" alt=\"Screen Shot 2019-10-07 at 1 32 38 PM\" src=\"https://user-images.githubusercontent.com/34038882/66346465-1356a880-e907-11e9-8937-55d0964622e9.png\">\r\n\u003cimg width=\"820\" alt=\"Screen Shot 2019-10-07 at 1 32 55 PM\" src=\"https://user-images.githubusercontent.com/34038882/66346470-15206c00-e907-11e9-83f6-a60854b40f33.png\">\r\n\u003cimg width=\"498\" alt=\"Screen Shot 2019-10-07 at 1 55 04 PM\" src=\"https://user-images.githubusercontent.com/34038882/66347862-2454e900-e90a-11e9-9de5-3d646b612675.png\">\r\n\r\n\r\n\r\n## Steps to reproduce:\r\n\r\nSomething 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.\r\n\r\n\r\n## Logs\r\n```\r\n[Info - 10:13:01 AM] Microsoft Python Language Server version 0.4.38.0\r\n[Info - 10:13:01 AM] Workspace root: /Users/me/path/to/repo/\r\n[Info - 10:13:01 AM] Analysis cache path: /Users/me/Library/Caches/Microsoft/Python Language Server\r\n[Info - 10:13:01 AM] GetCurrentSearchPaths /Users/me/path/to/repo/env/bin/python \r\n[Info - 10:13:01 AM] Interpreter search paths:\r\n[Info - 10:13:01 AM] /Users/me/path/to/repo/env/lib/python2.7\r\n[Info - 10:13:01 AM] /Users/me/path/to/repo/env/lib/python2.7/lib-dynload\r\n[Info - 10:13:01 AM] /usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7\r\n[Info - 10:13:01 AM] /usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin\r\n[Info - 10:13:01 AM] /usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk\r\n[Info - 10:13:01 AM] /usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac\r\n[Info - 10:13:01 AM] /usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages\r\n[Info - 10:13:01 AM] /Users/me/path/to/repo/env/lib/python2.7/site-packages\r\n[Info - 10:13:01 AM] User search paths:\r\n[Info - 10:13:07 AM] Initializing for /Users/me/path/to/repo/env/bin/python\r\n[Info - 10:13:08 AM] Analysis caching mode: None.\r\n```\r\nAlso seeing this in the `Window` log:\r\n```\r\n[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))\r\n at b.\u003canonymous> (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1521:283)\r\n at Generator.throw (\u003canonymous>)\r\n at a (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:35:450)\r\n```\r\n\r\n","author":{"url":"https://github.com/rvinzent","@type":"Person","name":"rvinzent"},"datePublished":"2019-10-07T20:17:47Z","url":"https://github.com/microsoft/python-language-server/issues/1637"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:baad0e59-28f7-c936-0259-9ec4a76f7bc7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE7C:15B330:31B1F2:40FA44:6AFE5F8B |
| html-safe-nonce | d0f4910745725065efa389cb936444ad298320da53966f77e269e7f648c32307 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTdDOjE1QjMzMDozMUIxRjI6NDBGQTQ0OjZBRkU1RjhCIiwidmlzaXRvcl9pZCI6IjM5OTAyODg2MjI4Mjg4MDYwMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bbea781db8ac70f9a7af083080f7f5f392ebd9522d6252fe21e4db50de747d71 |
| hovercard-subject-tag | issue:503684537 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/1637/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f34904e5975c79c7a5979785e6731eb048933ca604d451082d8d825a88deeb54/microsoft/python-language-server/issues/1637 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f34904e5975c79c7a5979785e6731eb048933ca604d451082d8d825a88deeb54/microsoft/python-language-server/issues/1637 |
| og:image:alt | Environment data Version: 1.38.1 Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0 Date: 2019-09-11T13:31:32.854Z Electron: 4.2.10 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rvinzent |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width