microsoft / vscode-flake8

Linting support for python using the flake8 library.
https://marketplace.visualstudio.com/items?itemName=ms-python.flake8
MIT License
40 stars 30 forks source link

Linting silently fails when required plugin is missing #242

Open n4nn31355 opened 10 months ago

n4nn31355 commented 10 months ago

Expectations:

Actual behavior:

Flake8 config:

[flake8]
require-plugins =
  flake8-bugbear
  non-existent-plugin

vscode-flake8 output:

2023-10-26 18:39:52.809 [info] file:///***.py :
There was a critical error during execution of Flake8:
required plugins were not installed!
- installed: flake8, flake8-bugbear, mccabe, pycodestyle, pyflakes
- expected: flake8-bugbear, non-existent-plugin
- missing: non-existent-plugin

Manual flake8 execution:

$ flake8; echo -e  "\nExit code: $?"
There was a critical error during execution of Flake8:
required plugins were not installed!
- installed: flake8, flake8-bugbear, mccabe, pycodestyle, pyflakes
- expected: flake8-bugbear, non-existent-plugin
- missing: non-existent-plugin

Exit code: 1

Versions:

vscode = 1.83.1
vscode-flake8  = v2023.8.0
flake8 = 6.1.0
python = 3.10.13
karthiknadig commented 10 months ago

There is flake8.showNotification that can be set to error. The plan for the future is to show a error in the problems view when things like this happen.

n4nn31355 commented 10 months ago

Yep. I have flake8.showNotification set to warning. But as you can see in vscode-flake8 output, somehow it's considered [info]