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
Domain: github.com
{"@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\r\n\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-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:af5dea58-56ab-4389-0744-659e7d505622 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEEC:C843D:5410B4:6DA22F:6AFE6775 |
| html-safe-nonce | 6b46a988d631045376ecab6b8a7f3504a9e14d24705d2d9e99cf6773e018d5f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUVDOkM4NDNEOjU0MTBCNDo2REEyMkY6NkFGRTY3NzUiLCJ2aXNpdG9yX2lkIjoiMjU5MTc3NTUyNzA5MzE0NDIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 30b0168e47e3509f1577cae66ffc6d2d3192f211c1422f9a26b9d2ab6ec8198f |
| hovercard-subject-tag | issue:483555044 |
| 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/1466/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5f787f4e49fde2ae1ccf62d7647f70419338dc7db4fa0748fd4c0826a96ba55/microsoft/python-language-server/issues/1466 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5f787f4e49fde2ae1ccf62d7647f70419338dc7db4fa0748fd4c0826a96ba55/microsoft/python-language-server/issues/1466 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | flip1995 |
| 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