René's URL Explorer Experiment


Title: Strange parsing errors · Issue #1543 · microsoft/python-language-server · GitHub

Open Graph Title: Strange parsing errors · Issue #1543 · microsoft/python-language-server

X Title: Strange parsing errors · Issue #1543 · microsoft/python-language-server

Description: Environment data Language Server version: 0.4.10.0 OS and version:Windows 10 Python version (& distribution if applicable, e.g. Anaconda): 3.6.4 64-bit Expected behaviour Actual behaviour There are strange parsing errors, occurring on an...

Open Graph Description: Environment data Language Server version: 0.4.10.0 OS and version:Windows 10 Python version (& distribution if applicable, e.g. Anaconda): 3.6.4 64-bit Expected behaviour Actual behaviour There are...

X Description: Environment data Language Server version: 0.4.10.0 OS and version:Windows 10 Python version (& distribution if applicable, e.g. Anaconda): 3.6.4 64-bit Expected behaviour Actual behaviour There...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Strange parsing errors","articleBody":"\u003c!-- \r\nRead the guidelines for filing an issue first. \r\n\r\nhttps://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#filing-an-issue\r\n-->\r\n\r\n## Environment data\r\n\u003c!--\r\nTo find your version: \r\n\r\nSelect \"View: Toggle Output\" from the command palette (Ctrl+Shift+P on Windows/Linux, Command+Shift+P on macOS), then select \"Python\" in the dropdown on the right (\"Python Language Server\" if running Insiders build of VS Code). Look for the line Microsoft Python Language Server version X in the console.\r\n-->\r\n\r\n- Language Server version: 0.4.10.0   \r\n- OS and version:Windows 10\r\n- Python version (& distribution if applicable, e.g. Anaconda):  3.6.4 64-bit\r\n\r\n## Expected behaviour\r\n\r\n\r\n\r\n## Actual behaviour\r\n\r\nThere are strange parsing errors, occurring on an empty line, and complaining about a non-existent token. Could this be because of some synchronization issue? As shown in the log below, the file formatted by python black is sometimes not the original file. \r\n\r\nAlso, this behavior does not show up immediately after reload, but after some time it starts to pop up. There is no syntax error in the code as it can be run successfully.\r\n\r\n\r\n## Logs\r\n\r\n\u003c!-- \r\nEnable trace logging by adding \"python.analysis.logLevel\": \"Trace\" to your settings.json configuration file.\r\n\r\nAdding this will cause a large amount of info to be printed to the Python output panel. This should not be left long term, as the performance impact of the logging is significant.\r\n-->\r\n\r\nOutput from Python Panel:\r\n\r\n```\r\nUser belongs to experiment group 'ShowPlayIcon - runFile'\r\nUser belongs to experiment group 'ShowExtensionSurveyPrompt - enabled'\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\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe ~\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe ~\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python3.exe ~\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python3.exe ~\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe ~\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe ~\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python3.exe ~\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python3.exe ~\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\nStarting Microsoft Python language server.\r\n> C:\\Programs\\Python3.6\\python.exe -m black -S --diff --quiet \u003cproject_root>\\1001-1100\\1093\\sol.py\r\ncwd: \u003cproject_root>\r\n> C:\\Programs\\Python3.6\\python.exe -m black -S --diff --quiet \u003cproject_root>\\1001-1100\\1093\\sol.py\r\ncwd: \u003cproject_root>\r\n> conda info --json\r\n> conda --version\r\n> C:\\Programs\\Python3.6\\python.exe -m black -S --diff --quiet \u003cproject_root>\\1001-1100\\1093\\sol.py\r\ncwd: \u003cproject_root>\r\n...\r\n> C:\\Programs\\Python3.6\\python.exe -m black -S --diff --quiet \u003cproject_root>\\1001-1100\\1093\\sol.py.1155b78ffef3cae68e5d7f36d7c73122.py\r\n...\r\n```\r\n\r\nOutput from Python Language Server Panel:\r\n\r\n```\r\n[Info  - 6:20:35 PM] Microsoft Python Language Server version 0.4.10.0\r\n[Info  - 6:20:35 PM] Workspace root: \u003cproject_root>\r\n[Info  - 6:20:35 PM] Analysis cache path: C:\\Users\\\u003cusername>\\AppData\\Local\\Microsoft\\Python Language Server\r\n[Info  - 6:20:35 PM] GetCurrentSearchPaths C:\\Programs\\Python3.6\\python.exe \r\n[Info  - 6:20:35 PM] Interpreter search paths:\r\n[Info  - 6:20:35 PM]     c:\\programs\\python3.6\\dlls\r\n[Info  - 6:20:35 PM]     c:\\programs\\python3.6\\lib\r\n[Info  - 6:20:35 PM]     c:\\programs\\python3.6\r\n[Info  - 6:20:35 PM]     c:\\users\\\u003cusername>\\appdata\\roaming\\python\\python36\\site-packages\r\n[Info  - 6:20:35 PM]     c:\\programs\\python3.6\\lib\\site-packages\r\n[Info  - 6:20:35 PM] User search paths:\r\n[Info  - 6:20:38 PM] Initializing for C:\\Programs\\Python3.6\\python.exe\r\nWatching c:\\programs\\python3.6\r\nWatching c:\\users\\\u003cusername>\\appdata\\roaming\\python\\python36\\site-packages\r\nOpening document file:///\u003cproject_root>/1001-1100/1093/sol.py\r\nAnalysis of sol(User) queued\r\nAnalysis version 2 of 1 entries has started.\r\nAnalysis of sol (User) on depth 0 completed in 22.763 ms.\r\nAnalysis complete: 1 modules in 23.4171 ms.\r\nAnalysis version 2 of 1 entries has been completed in 22.9905 ms.\r\n...\r\nAnalysis version 693 of 1 entries has started.\r\nAnalysis of sol (User) on depth 0 completed in 0.5606 ms.\r\nAnalysis complete: 1 modules in 0.7808 ms.\r\nAnalysis version 693 of 1 entries has been completed in 0.6874 ms.\r\nHover in file:///\u003cproject_root>/1001-1100/1093/sol.py at (46, 35)\r\nHover in file:///\u003cproject_root>/1001-1100/1093/sol.py at (46, 15)\r\nHover in file:///\u003cproject_root>/1001-1100/1093/sol.py at (48, 21)\r\nHover in file:///\u003cproject_root>/1001-1100/1093/sol.py at (35, 8)\r\n```\r\n\r\n## Code Snippet / Additional lnformation\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\nThere are multiple issues on line 48, which is an empty line. Also, there is no 'tluserer' token in the file.\r\n\r\n![image](https://user-images.githubusercontent.com/7570681/64898601-bb08ef80-d655-11e9-81bd-f0e1ec424e75.png)\r\n\r\n\r\n```python\r\n        for i, freq in enumerate(count):\r\n            if not median_pos:\r\n                break\r\n            if not freq:\r\n                continue\r\n\r\n            cnt += freq\r\n            while median_pos and freq >= median_pos[-1]:\r\n                median_pos.pop()\r\n                total += i\r\n\r\n        result[3] = total / (2 - (cnt & 1))\r\n\r\n        return result\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/haollhao","@type":"Person","name":"haollhao"},"datePublished":"2019-09-13T22:52:49Z","url":"https://github.com/microsoft/python-language-server/issues/1543"}

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:70235546-466b-5b40-21b8-c8dc909394c1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9892:2D7641:38EE52:4A691A:6AFE618B
html-safe-nonced36ea6b01c0776711c67c20c48201e1b303cc8c77c6970f4cf0c8b3694f4c3de
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODkyOjJENzY0MTozOEVFNTI6NEE2OTFBOjZBRkU2MThCIiwidmlzaXRvcl9pZCI6IjMwMjY3NjE4NTcyODE5NzQ2NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3e47bed03c69b29a54c4c265f1d8ab09261785f4b8a63d88be881da2dbc6f394
hovercard-subject-tagissue:493545252
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/1543/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9560bf5e438393a06c91da8e933278428636a0cd9a95283465a0fc21f99313c7/microsoft/python-language-server/issues/1543
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9560bf5e438393a06c91da8e933278428636a0cd9a95283465a0fc21f99313c7/microsoft/python-language-server/issues/1543
og:image:altEnvironment data Language Server version: 0.4.10.0 OS and version:Windows 10 Python version (& distribution if applicable, e.g. Anaconda): 3.6.4 64-bit Expected behaviour Actual behaviour There are...
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-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/1543#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1543
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%2F1543
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/1543
Reloadhttps://github.com/microsoft/python-language-server/issues/1543
Reloadhttps://github.com/microsoft/python-language-server/issues/1543
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
#1591https://github.com/microsoft/python-language-server/pull/1591
#1544https://github.com/microsoft/python-language-server/pull/1544
Strange parsing errorshttps://github.com/microsoft/python-language-server/issues/1543#top
#1591https://github.com/microsoft/python-language-server/pull/1591
#1544https://github.com/microsoft/python-language-server/pull/1544
https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
September 2019.2https://github.com/microsoft/python-language-server/milestone/26
https://github.com/haollhao
Hao Lu (haollhao)https://github.com/haollhao
on Sep 13, 2019https://github.com/microsoft/python-language-server/issues/1543#issue-493545252
https://user-images.githubusercontent.com/7570681/64898601-bb08ef80-d655-11e9-81bd-f0e1ec424e75.png
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 13, 2019https://github.com/microsoft/python-language-server/issues/1543#event-2633762686
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
on Sep 13, 2019https://github.com/microsoft/python-language-server/issues/1543#event-2633762803
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
September 2019.1https://github.com/microsoft/python-language-server/milestone/25
on Sep 13, 2019https://github.com/microsoft/python-language-server/issues/1543#event-2633762984
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Sep 16, 2019https://github.com/microsoft/python-language-server/issues/1543#issuecomment-531862202
#1479 (comment)https://github.com/microsoft/python-language-server/pull/1479#issuecomment-531401035
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1544https://github.com/microsoft/python-language-server/pull/1544
on Sep 16, 2019https://github.com/microsoft/python-language-server/issues/1543#event-2637155481
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 16, 2019https://github.com/microsoft/python-language-server/issues/1543#issuecomment-531900230
https://github.com/haollhao
Hao Lu (haollhao)https://github.com/haollhao
on Sep 19, 2019https://github.com/microsoft/python-language-server/issues/1543#issuecomment-533291780
https://user-images.githubusercontent.com/7570681/65277418-db262c00-daf7-11e9-9a5d-5b5f2cb2d15d.png
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 25, 2019https://github.com/microsoft/python-language-server/issues/1543#event-2662382237
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
September 2019.1https://github.com/microsoft/python-language-server/milestone/25
September 2019.2https://github.com/microsoft/python-language-server/milestone/26
on Sep 25, 2019https://github.com/microsoft/python-language-server/issues/1543#event-2662382569
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1591https://github.com/microsoft/python-language-server/pull/1591
on Sep 26, 2019https://github.com/microsoft/python-language-server/issues/1543#event-2666990733
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Oct 1, 2019https://github.com/microsoft/python-language-server/issues/1543#issuecomment-537195484
https://github.com/Ark-kun
Alexey Volkov (Ark-kun)https://github.com/Ark-kun
on Sep 27, 2020https://github.com/microsoft/python-language-server/issues/1543#issuecomment-699583768
#2026 (comment)https://github.com/microsoft/python-language-server/issues/2026#issuecomment-699583596
https://user-images.githubusercontent.com/1829149/94356036-a15b0000-003e-11eb-93ec-5e0d69675d5b.png
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1543
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1543
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
September 2019.2https://github.com/microsoft/python-language-server/milestone/26
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.