This repository was archived by the owner on Apr 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 134
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Python extension shows warnings for code that does not exist #1466
Copy link
Copy link
Closed
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 Language Server?: PyLS
Expected behaviour
Does not show warnings
Actual behaviour
Shows warnings, even if the checked code doesn't exist (anymore)


Steps to reproduce:
Sadly 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.
Logs
> ~/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
cwd: ~/Documents/ma/sim-to-real-ai
> ~/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
cwd: ~/Documents/ma/sim-to-real-ai
> ~/.mypyls/bin/mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers ~/Documents/ma/sim-to-real-ai/sim_to_real_ai.py
cwd: ~/Documents/ma/sim-to-real-ai
> ~/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
cwd: ~/Documents/ma/sim-to-real-ai
> ~/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
cwd: ~/Documents/ma/sim-to-real-ai
##########Linting Output - mypy##########
##########Linting Output - pylint##########
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
Output 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)
[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
[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
[Extension Host] Info Python Extension: 2019-08-21 11:38:58: cwd: ~/Documents/ma/sim-to-real-ai
[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
[Extension Host] Info Python Extension: 2019-08-21 11:38:58: cwd: ~/Documents/ma/sim-to-real-ai
WARN Aborted format on save after 750ms
[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
[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
[Extension Host] Info Python Extension: 2019-08-21 11:38:59: cwd: ~/Documents/ma/sim-to-real-ai
[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
[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
[Extension Host] Info Python Extension: 2019-08-21 11:38:59: cwd: ~/Documents/ma/sim-to-real-ai
[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
[Extension Host] Info Python Extension: 2019-08-21 11:38:59: cwd: ~/Documents/ma/sim-to-real-ai
Since the debug console states, that "Cached data exists" for the file in question: (How) Is it possible to delete this cached data?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working