Skip to content

Linting silently fails when required plugin is missing #242

@n4nn31355

Description

@n4nn31355

Expectations:

  • code linting works
  • we have a distinct error message if required plugin is not installed

Actual behavior:

  • vscode-flake8 silently fails linting when flake8 is missing a plugin specified in require-plugins
  • no linting
  • no errors

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bugneeds PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions