Pylint not working
See original GitHub issueEnvironment data
- VS Code version: 1.40.2
- Extension version (available under the Extensions sidebar): 2019.11.50794
- OS and version: MacOS and also Windows 7
- Python version (& distribution if applicable, e.g. Anaconda): conda python version 3.6.9
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Relevant/affected Python packages and their versions: pylint 2.4.4
- Jedi or Language Server? (i.e. what is
"python.jediEnabled"
set to; more info #3977): no
Expected behaviour
Since pylint is enabled it should find errors when I call “run linting” or save the .py file.
{
"python.pythonPath": "/usr/local/miniconda3/envs/tf2/bin/python",
"python.linting.pylintEnabled": true,
"python.linting.enabled": true
}
Actual behaviour
It does not find anything when I save or call “run linting”.
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
nothing here...
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-12-04 21:13:15: Cached data exists getEnvironmentVariables, /Users/mike/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/jedi/third_party/typeshed/stdlib/2and3/builtins.pyi
console.ts:137 [Extension Host] Info Python Extension: 2019-12-04 21:13:15: > /usr/local/miniconda3/envs/tf2/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 ~/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/jedi/third_party/typeshed/stdlib/2and3/builtins.pyi
console.ts:137 [Extension Host] Info Python Extension: 2019-12-04 21:13:15: cwd: ~/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/jedi/third_party/typeshed/stdlib/2and3
console.ts:137 [Extension Host] Info Python Extension: 2019-12-04 21:13:15: > /usr/local/miniconda3/envs/tf2/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 ~/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/jedi/third_party/typeshed/stdlib/2and3/builtins.pyi
console.ts:137 [Extension Host] Info Python Extension: 2019-12-04 21:13:15: cwd: ~/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/jedi/third_party/typeshed/stdlib/2and3
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Pylint not running as expected in VScode - Stack Overflow
Based on "Unnecessary parens after 'print' keyword", your shell pylint is probably running in Python 2 – print is not a keyword in...
Read more >Linting Python in Visual Studio Code
Troubleshooting linting ; The linter has not been installed in the current Python environment. Open a command prompt, navigate to the location where...
Read more >Pylint does not work. · Issue #12285 · microsoft/vscode-python
Pylint is not installed. Open folder in VSC; Add file test.py (and typed incorrect code to check linter works); Ctrl + Shift +...
Read more >Newbie - Pylint not working : r/vscode - Reddit
I just get a breakdown of the print() function if I hover over it. I tried uninstalling the python extension, closing VSCODE and...
Read more >Use PyLint for Python code - Visual Studio (Windows)
Run PyLint in Visual Studio to check issues in Python code, including command-line options to customize linting.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the bug report! We just wanted to quickly acknowledge we received it and we will triage this as soon as we can.
Glad to help!