linting does not work!
See original GitHub issueEnvironment data
- VS Code version: 1.41.1
- Extension version (available under the Extensions sidebar): Python(2020.1.57204)
- OS and version: Ubuntu 18.04
- Python version (& distribution if applicable, e.g. Anaconda): Aanconda python 3.7.4
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Jedi or Language Server? (i.e. what is
"python.jediEnabled"
set to; more info #3977): Jedi
setting
{
"editor.fontSize": 16,
"editor.largeFileOptimizations": false,
"terminal.integrated.inheritEnv": false,
"workbench.iconTheme": "material-icon-theme",
"files.autoSave": "afterDelay",
"window.zoomLevel": 0,
"debug.console.fontSize": 16,
"terminal.integrated.fontSize": 16,
"[cpp]": {
"editor.defaultFormatter": "ms-vscode.cpptools"
},
"cmake.configureOnOpen": true,
"C_Cpp.default.cppStandard": "c++11",
"cmake.parallelJobs": 8,
"workbench.sideBar.location": "left",
"css.completion.completePropertyWithSemicolon": false,
"workbench.statusBar.visible": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"C_Cpp.updateChannel": "Insiders",
"C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 0}",
"editor.formatOnSave": true,
"editor.formatOnType": true,
"python.formatting.provider": "yapf",
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Args": [
"--max-line-length=120",
// "--ignore=E402,F401,E266"
],
"python.formatting.yapfArgs": [
"-p",
"--style",
"{ based_on_style: google, indent_width:4 , column_limit:100}"
],
"python.dataScience.notebookFileRoot": "${fileDirname}",
"python.jediMemoryLimit": -1,
}
Expected behaviour
Actual behaviour
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
> conda info --json
> conda run -n base python -m yapf -p --style "{ based_on_style: google, indent_width:4 , column_limit:100}" --diff ~/prj/helloworld/main.py
cwd: ~/prj/helloworld
> conda run -n base python -m yapf -p --style "{ based_on_style: google, indent_width:4 , column_limit:100}" --diff ~/prj/helloworld/main.py
cwd: ~/prj/helloworld
> conda run -n base python -m flake8 --max-line-length=120 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/prj/helloworld/main.py
cwd: ~/prj/helloworld
> conda run -n base python -m flake8 --max-line-length=120 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/prj/helloworld/main.py
cwd: ~/prj/helloworld
##########Linting Output - flake8##########
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Linting Python in Visual Studio Code
The linter has not been installed in the current Python environment. Open a command prompt, navigate to the location where your selecter interpreter...
Read more >Linting in Visual Studio Code not working - Stack Overflow
I have re-installed the Python extension and then re-installed Visual Studio Code, nothing worked. Can anyone help me? I run MacOS 10.13.1, ...
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 >ESLint not working in VSCode? Help build a troubleshooting ...
Open the command palette by pressing Ctrl / Cmd + Shift + P and select 'ESLint: Show Output Channel '. If ESLint throws...
Read more >Python: Run Linting does not do anything : r/vscode - Reddit
Hi, When I open the command palette to do Python: Run Linting, vscode doesn't seem to execute anything. I am not sure why,...
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
had the same problem after upgrading to the latest release. Had to downgrade to https://github.com/microsoft/vscode-python/releases/tag/2019.11.50794 to get flake8 back to work
VS Code version: 1.41.1 (UserSetup) Extension version (available under the Extensions sidebar): Python(2020.1.57204) OS and version: Windows 10 Pro Python version (& distribution if applicable, e.g. Anaconda): Aanconda python 3.7.6 Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda Jedi or Language Server? (i.e. what is “python.jediEnabled” set to; more info #3977): Jedi
I use pylint. It is not working for latest version either.