Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pylint goes silent if improperly configured #297

Open
dciborow opened this issue Mar 10, 2023 · 4 comments
Open

pylint goes silent if improperly configured #297

dciborow opened this issue Mar 10, 2023 · 4 comments
Labels
feature-request Request for new features or functionality needs community feedback

Comments

@dciborow
Copy link
Contributor

I am using a .pylintrc file and have found that incorrect values cause pylint to go silent.

Here is an example pylintrc file that is incorrect because the value is wrapped in quotes.

[BASIC]
module-naming-style="any"

image

Once I remove the quotes, pylint begins working again.

[BASIC]
module-naming-style=any

image

It would be nice if a item in the PROBLEMS tab was reported if I have enabled pylint to run but is provided a configuration that causes it to fail.

@github-actions github-actions bot added the triage-needed Issue is not triaged. label Mar 10, 2023
@karthiknadig
Copy link
Member

@dciborow Do you see anything in the Output > pylint logs. If you do see something there then we could possibly use that info to create a record in the Problems window.

@karthiknadig karthiknadig added the info-needed Issue requires more information from poster label Mar 10, 2023
@dciborow
Copy link
Contributor Author

@karthiknadig ,

Here is the error log.

2023-03-12 00:24:45.617 [info] usage: pylint [options]
pylint: error: argument --module-naming-style: invalid choice: '"snake_case"' (choose from 'snake_case', 'camelCase', 'PascalCase', 'UPPER_CASE', 'any')

@karthiknadig karthiknadig added feature-request Request for new features or functionality needs community feedback and removed triage-needed Issue is not triaged. info-needed Issue requires more information from poster labels Mar 13, 2023
@bersbersbers
Copy link

bersbersbers commented Mar 23, 2023

This silent failure is a long-standing problem of pylint integration in VS Code, which has already lead to misinformation on how to silence specific pylint warnings, namely, by means that silenty break all of pylint. Just compare "--generate-members" (which does not exist as a pylint option) in https://stackoverflow.com/a/59675722/880783, which as collected 40 net upvotes so far.

@truher
Copy link

truher commented Jul 24, 2024

this issue bit me today too. if you think to look in the pylint output tab, you'll see the failure, but it would never occur to me to look there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality needs community feedback
Projects
None yet
Development

No branches or pull requests

4 participants