René's URL Explorer Experiment


Title: Unexpected syntax errors about random tokens · Issue #1449 · microsoft/python-language-server · GitHub

Open Graph Title: Unexpected syntax errors about random tokens · Issue #1449 · microsoft/python-language-server

X Title: Unexpected syntax errors about random tokens · Issue #1449 · microsoft/python-language-server

Description: Environment data VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z) Extension version (available under the Extensions sidebar): 2019.8.30787 OS and version: Windows_NT x64 10.0.18362 Python ...

Open Graph Description: Environment data VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z) Extension version (available under the Extensions sidebar): 2019.8.30787 OS and ve...

X Description: Environment data VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z) Extension version (available under the Extensions sidebar): 2019.8.30787 OS and ve...

Opengraph URL: https://github.com/microsoft/python-language-server/issues/1449

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexpected syntax errors about random tokens ","articleBody":"\u003c!-- Please search existing issues to avoid creating duplicates. -->\r\n\r\n## Environment data\r\n\r\n- VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z)\r\n- Extension version (available under the Extensions sidebar): 2019.8.30787\r\n- OS and version: Windows_NT x64 10.0.18362\r\n- Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.4 64-bit\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A\r\n- Relevant/affected Python packages and their versions: XXX\r\n- Jedi or Language Server? (i.e. what is `\"python.jediEnabled\"` set to; more info microsoft/vscode-python#3977): Language Server\r\n\r\n## Expected behaviour\r\n\r\nI have been using the language server and pylint and everything was fine until recently. However, now from time to time I experience random parsing errors on tokens that are not even in the file.\r\n\r\n## Actual behaviour\r\nAs shown in the figure below, the parser shouts these errors regarding \"eman\", \"tnuococa\", which are not in the file. There are other errors also. The actual file can be executed normally by an interpreter.\r\n\r\nAfter inspecting the logs below, my guess is that it has something to do with this `sol.py.4f805ae93a314088ee8dc430f8bf5945.py` file. The actual file name is `sol.py` so the other file is probably some temp file generated during the execution of the extension.\r\n\r\n![image](https://user-images.githubusercontent.com/7570681/63136915-2e113e80-bfa2-11e9-974d-0a3bafcafafc.png)\r\n\r\n\r\n```python\r\nfrom typing import List\r\n\r\n\r\nclass Solution:\r\n    def accountsMerge(self, accounts: List[List[str]]) -> List[List[str]]:\r\n        # * set and map\r\n\r\n        account_map = {}\r\n\r\n        for account in accounts:\r\n            name = account[0]\r\n```\r\n\r\n## Steps to reproduce:\r\n1. I can't really find an exact way to reproduce this. Usually when I first open a file the parser works fine. Some time later during editing it breaks. Reloading the window solves the problem temporarily.\r\n\r\n\u003c!--\r\nNote: If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ .\r\n-->\r\n\r\n## Logs\r\nThe real project path has been replaced by `\u003cproject_path>` for privacy concerns. It only contains English letters (`a-zA-Z`) and backslashes.\r\n\r\nOutput for `Python` in the `Output` panel (`View`→`Output`, change the drop-down the upper-right of the `Output` panel to `Python`)\r\n\r\n```\r\nUser belongs to experiment group 'ShowPlayIcon - runFile'\r\n> conda --version\r\n> pyenv root\r\n> python3.7 -c \"import sys;print(sys.executable)\"\r\n> python3.6 -c \"import sys;print(sys.executable)\"\r\n> python3 -c \"import sys;print(sys.executable)\"\r\n> python2 -c \"import sys;print(sys.executable)\"\r\n> python -c \"import sys;print(sys.executable)\"\r\n> py -3.7 -c \"import sys;print(sys.executable)\"\r\n> py -3.6 -c \"import sys;print(sys.executable)\"\r\n> py -3 -c \"import sys;print(sys.executable)\"\r\n> py -2 -c \"import sys;print(sys.executable)\"\r\n> C:\\Programs\\Python3.6\\python.exe -c \"import sys;print(sys.executable)\"\r\n> conda info --json\r\nStarting Microsoft Python language server.\r\n[Info  - 9:04:53 PM] Analysis cache path: C:\\Users\\luhao\\AppData\\Local\\Microsoft\\Python Language Server\r\n[Info  - 9:04:53 PM] GetCurrentSearchPaths C:\\Programs\\Python3.6\\python.exe \r\n[Info  - 9:04:53 PM] Interpreter search paths:\r\n[Info  - 9:04:53 PM]     c:\\programs\\python3.6\\dlls\r\n[Info  - 9:04:53 PM]     c:\\programs\\python3.6\\lib\r\n[Info  - 9:04:53 PM]     c:\\programs\\python3.6\r\n[Info  - 9:04:53 PM]     c:\\programs\\python3.6\\lib\\site-packages\r\n[Info  - 9:04:53 PM] User search paths:\r\n[Info  - 9:04:56 PM] Microsoft Python Language Server version 0.3.47.0\r\n[Info  - 9:04:56 PM] Initializing for C:\\Programs\\Python3.6\\python.exe\r\n> conda info --json\r\n> conda --version\r\n> C:\\Programs\\Python3.6\\python.exe -m black -S --diff --quiet \u003cproject_path>\\701-800\\721\\sol.py.4f805ae93a314088ee8dc430f8bf5945.py\r\ncwd: \u003cproject_path>\r\n> C:\\Programs\\Python3.6\\python.exe -m black -S --diff --quiet \u003cproject_path>\\701-800\\721\\sol.py.4f805ae93a314088ee8dc430f8bf5945.py\r\ncwd: \u003cproject_path>\r\n\r\n```\r\n\r\nOutput from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`; turn on source maps to make any tracebacks be useful by running `Enable source map support for extension debugging`)\r\n\r\n```\r\n(...)\r\nconsole.ts:137 [Extension Host] No editors associated with document: \u003cproject_path>\\701-800\\721\\sol.py\r\nt.log @ console.ts:137\r\nconsole.ts:137 [Extension Host] Info Python Extension: 2019-08-15 21:05:01: Cached data exists getEnvironmentVariables, \u003cproject_path>\r\nnotificationsAlerts.ts:40 Black does not support the \"Format Selection\" command\r\nonDidNotificationChange @ notificationsAlerts.ts:40\r\nconsole.ts:137 [Extension Host] swdc-vscode: storing kpm metrics\r\nconsole.ts:137 [Extension Host] Info Python Extension: 2019-08-15 21:06:07: Cached data exists getEnvironmentVariables, \u003cproject_path>\\701-800\\721\\sol.py\r\nconsole.ts:137 [Extension Host] Info Python Extension: 2019-08-15 21:06:07: > C:\\Programs\\Python3.6\\python.exe -m black -S --diff --quiet \u003cproject_path>\\701-800\\721\\sol.py.4f805ae93a314088ee8dc430f8bf5945.py\r\nconsole.ts:137 [Extension Host] Info Python Extension: 2019-08-15 21:06:07: cwd: \u003cproject_path>\r\nconsole.ts:137 [Extension Host] Info Python Extension: 2019-08-15 21:06:07: > C:\\Programs\\Python3.6\\python.exe -m black -S --diff --quiet \u003cproject_path>\\701-800\\721\\sol.py.4f805ae93a314088ee8dc430f8bf5945.py\r\nconsole.ts:137 [Extension Host] Info Python Extension: 2019-08-15 21:06:07: cwd: \u003cproject_path>\r\nconsole.ts:137 [Extension Host] swdc-vscode: error posting data for /commits, message: Request failed with status code 500\r\nconsole.ts:137 [Extension Host] swdc-vscode: storing kpm metrics\r\n```\r\n","author":{"url":"https://github.com/haollhao","@type":"Person","name":"haollhao"},"datePublished":"2019-08-16T01:36:20Z","url":"https://github.com/microsoft/python-language-server/issues/1449"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ece93a22-73c7-ae79-177c-86753f57859c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8936:34D994:6F58AC:973037:6AFE6772
html-safe-nonce4ce4f8be40c7ba20473437d2a25cd724e6a1f559ddae7720023b20b3b6a49479
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTM2OjM0RDk5NDo2RjU4QUM6OTczMDM3OjZBRkU2NzcyIiwidmlzaXRvcl9pZCI6Ijg0MDkxODcwNDEyNDEwOTgwOTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac98d9fb3e0e66dd43d350b6047e9a27e93ec802e5ecf4e046f89d2b7472b9083e
hovercard-subject-tagissue:481721042
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/1449/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a5f787f4e49fde2ae1ccf62d7647f70419338dc7db4fa0748fd4c0826a96ba55/microsoft/python-language-server/issues/1449
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a5f787f4e49fde2ae1ccf62d7647f70419338dc7db4fa0748fd4c0826a96ba55/microsoft/python-language-server/issues/1449
og:image:altEnvironment data VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z) Extension version (available under the Extensions sidebar): 2019.8.30787 OS and ve...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehaollhao
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id145901977
octolytics-dimension-repository_nwomicrosoft/python-language-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id145901977
octolytics-dimension-repository_network_root_nwomicrosoft/python-language-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/1449#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1449
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1449
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fpython-language-server
Reloadhttps://github.com/microsoft/python-language-server/issues/1449
Reloadhttps://github.com/microsoft/python-language-server/issues/1449
Reloadhttps://github.com/microsoft/python-language-server/issues/1449
microsofthttps://github.com/microsoft
python-language-serverhttps://github.com/microsoft/python-language-server
Codehttps://github.com/microsoft/python-language-server
Issues309 (309)https://github.com/microsoft/python-language-server/issues
Pull requests6 (6)https://github.com/microsoft/python-language-server/pulls
Projectshttps://github.com/microsoft/python-language-server/projects
Wikihttps://github.com/microsoft/python-language-server/wiki
Security and qualityhttps://github.com/microsoft/python-language-server/security
Insightshttps://github.com/microsoft/python-language-server/insights
https://github.com/microsoft/python-language-server
#1479https://github.com/microsoft/python-language-server/pull/1479
Unexpected syntax errors about random tokens https://github.com/microsoft/python-language-server/issues/1449#top
#1479https://github.com/microsoft/python-language-server/pull/1479
https://github.com/haollhao
Hao Lu (haollhao)https://github.com/haollhao
on Aug 16, 2019https://github.com/microsoft/python-language-server/issues/1449#issue-481721042
How to update the language server to the latest stable version vscode-python#3977https://github.com/microsoft/vscode-python/issues/3977
https://user-images.githubusercontent.com/7570681/63136915-2e113e80-bfa2-11e9-974d-0a3bafcafafc.png
https://github.com/haollhao
Hao Lu (haollhao)https://github.com/haollhao
on Aug 16, 2019https://github.com/microsoft/python-language-server/issues/1449#issuecomment-521868066
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
microsoft/vscode-pythonhttps://github.com/microsoft/vscode-python
on Aug 16, 2019https://github.com/microsoft/python-language-server/issues/1449#event-2563014092
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1479https://github.com/microsoft/python-language-server/pull/1479
on Aug 26, 2019https://github.com/microsoft/python-language-server/issues/1449#event-2584987559
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1449
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1449
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.