René's URL Explorer Experiment


Title: Python extension shows warnings for code that does not exist · Issue #1466 · microsoft/python-language-server · GitHub

Open Graph Title: Python extension shows warnings for code that does not exist · Issue #1466 · microsoft/python-language-server

X Title: Python extension shows warnings for code that does not exist · Issue #1466 · microsoft/python-language-server

Description: Environment data VS Code version: 1.37.0 (036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8, x64) Extension version: 2019.8.30787 OS and version: ArchLinux, Latest Python version: Python 3.6 Type of virtual environment used: virtualenv Jedi or La...

Open Graph Description: Environment data VS Code version: 1.37.0 (036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8, x64) Extension version: 2019.8.30787 OS and version: ArchLinux, Latest Python version: Python 3.6 Type of virtual...

X Description: Environment data VS Code version: 1.37.0 (036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8, x64) Extension version: 2019.8.30787 OS and version: ArchLinux, Latest Python version: Python 3.6 Type of virtual...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python extension shows warnings for code that does not exist","articleBody":"\u003c!-- Please search existing issues to avoid creating duplicates. -->\r\n\r\n## Environment data\r\n\r\n- VS Code version: 1.37.0 (036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8, x64)\r\n- Extension version: 2019.8.30787\r\n- OS and version: ArchLinux, Latest\r\n- Python version: Python 3.6\r\n- Type of virtual environment used: virtualenv\r\n- Jedi or Language Server?: PyLS\r\n\r\n## Expected behaviour\r\n\r\nDoes not show warnings\r\n\r\n## Actual behaviour\r\n\r\nShows warnings, even if the checked code doesn't exist (anymore)\r\n![image](https://user-images.githubusercontent.com/9744647/63420494-148b4f00-c407-11e9-9361-98466976cb2e.png)\r\n![image](https://user-images.githubusercontent.com/9744647/63420511-1e14b700-c407-11e9-93fd-a5f0828281f0.png)\r\n\r\n\r\n## Steps to reproduce:\r\n\r\nSadly I don't know how to reproduce this. I got this also in another file. In the other file it could be resolved, by deleting the file and recreating it + posting the old code in there. This isn't possible here.\r\n\r\n## Logs\r\n\r\n```\r\n> ~/Documents/ma/sim-to-real-ai/train_venv/bin/python -m autopep8 --diff ~/Documents/ma/sim-to-real-ai/sim_to_real_ai.py.00b9b3f0c1db08d3713c7d679b7a9b7c.py\r\ncwd: ~/Documents/ma/sim-to-real-ai\r\n> ~/Documents/ma/sim-to-real-ai/train_venv/bin/python -m autopep8 --diff ~/Documents/ma/sim-to-real-ai/sim_to_real_ai.py.00b9b3f0c1db08d3713c7d679b7a9b7c.py\r\ncwd: ~/Documents/ma/sim-to-real-ai\r\n> ~/.mypyls/bin/mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers ~/Documents/ma/sim-to-real-ai/sim_to_real_ai.py\r\ncwd: ~/Documents/ma/sim-to-real-ai\r\n> ~/Documents/ma/sim-to-real-ai/train_venv/bin/python -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/Documents/ma/sim-to-real-ai/sim_to_real_ai.py\r\ncwd: ~/Documents/ma/sim-to-real-ai\r\n> ~/Documents/ma/sim-to-real-ai/train_venv/bin/python -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/Documents/ma/sim-to-real-ai/sim_to_real_ai.py\r\ncwd: ~/Documents/ma/sim-to-real-ai\r\n##########Linting Output - mypy##########\r\n##########Linting Output - pylint##########\r\n\r\n--------------------------------------------------------------------\r\nYour code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)\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[Extension Host] Info Python Extension: 2019-08-21 11:38:58: Cached data exists getEnvironmentVariables, /home/pkrones/Documents/ma/sim-to-real-ai/sim_to_real_ai.py\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:58: > ~/Documents/ma/sim-to-real-ai/train_venv/bin/python -m autopep8 --diff ~/Documents/ma/sim-to-real-ai/sim_to_real_ai.py.00b9b3f0c1db08d3713c7d679b7a9b7c.py\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:58: cwd: ~/Documents/ma/sim-to-real-ai\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:58: > ~/Documents/ma/sim-to-real-ai/train_venv/bin/python -m autopep8 --diff ~/Documents/ma/sim-to-real-ai/sim_to_real_ai.py.00b9b3f0c1db08d3713c7d679b7a9b7c.py\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:58: cwd: ~/Documents/ma/sim-to-real-ai\r\nWARN Aborted format on save after 750ms\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:59: Cached data exists getEnvironmentVariables, /home/pkrones/Documents/ma/sim-to-real-ai/sim_to_real_ai.py\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:59: > ~/.mypyls/bin/mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers ~/Documents/ma/sim-to-real-ai/sim_to_real_ai.py\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:59: cwd: ~/Documents/ma/sim-to-real-ai\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:59: Cached data exists getEnvironmentVariables, /home/pkrones/Documents/ma/sim-to-real-ai/sim_to_real_ai.py\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:59: > ~/Documents/ma/sim-to-real-ai/train_venv/bin/python -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/Documents/ma/sim-to-real-ai/sim_to_real_ai.py\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:59: cwd: ~/Documents/ma/sim-to-real-ai\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:59: > ~/Documents/ma/sim-to-real-ai/train_venv/bin/python -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/Documents/ma/sim-to-real-ai/sim_to_real_ai.py\r\n[Extension Host] Info Python Extension: 2019-08-21 11:38:59: cwd: ~/Documents/ma/sim-to-real-ai\r\n```\r\n\r\n---\r\nSince the debug console states, that \"Cached data exists\" for the file in question: (How) Is it possible to delete this cached data? ","author":{"url":"https://github.com/flip1995","@type":"Person","name":"flip1995"},"datePublished":"2019-08-21T09:45:55Z","url":"https://github.com/microsoft/python-language-server/issues/1466"}

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:af5dea58-56ab-4389-0744-659e7d505622
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCEEC:C843D:5410B4:6DA22F:6AFE6775
html-safe-nonce6b46a988d631045376ecab6b8a7f3504a9e14d24705d2d9e99cf6773e018d5f2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUVDOkM4NDNEOjU0MTBCNDo2REEyMkY6NkFGRTY3NzUiLCJ2aXNpdG9yX2lkIjoiMjU5MTc3NTUyNzA5MzE0NDIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac30b0168e47e3509f1577cae66ffc6d2d3192f211c1422f9a26b9d2ab6ec8198f
hovercard-subject-tagissue:483555044
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/1466/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a5f787f4e49fde2ae1ccf62d7647f70419338dc7db4fa0748fd4c0826a96ba55/microsoft/python-language-server/issues/1466
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a5f787f4e49fde2ae1ccf62d7647f70419338dc7db4fa0748fd4c0826a96ba55/microsoft/python-language-server/issues/1466
og:image:altEnvironment data VS Code version: 1.37.0 (036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8, x64) Extension version: 2019.8.30787 OS and version: ArchLinux, Latest Python version: Python 3.6 Type of virtual...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameflip1995
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/1466#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1466
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%2F1466
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/1466
Reloadhttps://github.com/microsoft/python-language-server/issues/1466
Reloadhttps://github.com/microsoft/python-language-server/issues/1466
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
Python extension shows warnings for code that does not existhttps://github.com/microsoft/python-language-server/issues/1466#top
#1479https://github.com/microsoft/python-language-server/pull/1479
https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
August 2019.2https://github.com/microsoft/python-language-server/milestone/24
https://github.com/flip1995
Philipp Krones (flip1995)https://github.com/flip1995
on Aug 21, 2019https://github.com/microsoft/python-language-server/issues/1466#issue-483555044
https://user-images.githubusercontent.com/9744647/63420494-148b4f00-c407-11e9-9361-98466976cb2e.png
https://user-images.githubusercontent.com/9744647/63420511-1e14b700-c407-11e9-93fd-a5f0828281f0.png
https://github.com/flip1995
Philipp Krones (flip1995)https://github.com/flip1995
on Aug 21, 2019https://github.com/microsoft/python-language-server/issues/1466#issuecomment-523387375
Kartik Raj (karrtikr)https://github.com/karrtikr
microsoft/vscode-pythonhttps://github.com/microsoft/vscode-python
on Aug 21, 2019https://github.com/microsoft/python-language-server/issues/1466#event-2573906520
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Aug 24, 2019https://github.com/microsoft/python-language-server/issues/1466#event-2581242676
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
August 2019.2https://github.com/microsoft/python-language-server/milestone/24
on Aug 24, 2019https://github.com/microsoft/python-language-server/issues/1466#event-2581242700
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 Aug 24, 2019https://github.com/microsoft/python-language-server/issues/1466#event-2581242730
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/1466#event-2584987549
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1466
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1466
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
August 2019.2https://github.com/microsoft/python-language-server/milestone/24
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.