Skip to content

pylint is not working unless specified in settings.json #9637

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

Closed
ghost opened this issue Jan 17, 2020 · 3 comments
Closed

pylint is not working unless specified in settings.json #9637

ghost opened this issue Jan 17, 2020 · 3 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@ghost
Copy link

ghost commented Jan 17, 2020

Environment data

  • VS Code version: 1.41.1
  • Extension version (available under the Extensions sidebar): 2020.1.58038 (13 January 2020)
  • OS and version: Windows 10 - 1909
  • Python version: 3.8.1 64-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Jedi or Language Server? : False

Expected behaviour

pylint should work if it is enabled in Workspace GUI setting

Actual behaviour

By default, pylint is enabled in both User settings and Workspace settings. Even if it is enabled, it still doesn't work unless you explicitly write:

"python.linting.pylintEnabled": true,

in your workspace, .vscode> settings.json

Steps to reproduce:

  1. Keep pylint enabled in both User and Workspace GUI settings. By default, they are already set to enabled.

  2. Create new workspace without modifying any settings.

  3. Create new python file and make errors. No linting is shown.

  4. Now create .vscode directory and create settings.json and write:

    "python.linting.pylintEnabled": true,

  5. Reload your workspace and linting will start working.

  6. Delete .vscode, linting will stop.

  7. pylint is still enabled in GUI settings but workspace is only picking up if it is declared in settings.json.

For those whose Language Server is not working, follow the same method. Write:

"python.jediEnabled": false
@ghost ghost added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Jan 17, 2020
@ghost ghost changed the title pylint setting is not enforced unless specified in settings.json pylint is not working unless specified in settings.json Jan 17, 2020
@nicolaerario
Copy link

nicolaerario commented Jan 17, 2020

Same here on Fedora 31 and language server
talked also here: #1873 language server

@ghost
Copy link
Author

ghost commented Jan 18, 2020

This bug is also discussed in #7314 (comment)

@brettcannon
Copy link
Member

Closing as a duplicate of #7314 . Please 👍 the opening comment on that issue to help us prioritize our work.

@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jan 20, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants