-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 does not work. #12285
Comments
Hi @zhouwangyang, Does the extension activate between step 2 and step 3? If it does there should be some output in the Python window, can you copy it? Or does the extension not get activated at all? |
Met the same issue:
Expected result Actual result If pylint is installed, it only works from command line, but doesn't lint errors in VSC. Python extension version: v2020.7.86945-dev When tried to select flake8 (also not installed), printed:
and showed notification, as expected. So, it occurs just with pylint. |
Actually pylint support (under venv in my case) has been broken with 2020.6.0 release. TL;DR:Possible source of the issue is the following fix:
Quick workaround:Jedi seems to work fine with pylint, so use the following .vscode/settings.json to force it explicitly: {
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.languageServer": "Jedi"
} Long explanation:
|
@kimadeline The extension is active, and the output is all the operation information before I click Pylint. After I select Pylint, there is no output in output window. |
Should we consolidate Pylint + Ms Python Language Server integration related issues under a single issue ticket? My impression is that they are somehow related. |
See #7314 I think I found the issue...
I think should be
If I set |
Good catch @jeremyd2019 ! We'll get on that right away 💻 Thank you all for your patience! |
This is happening for me in Version: 1.46.1. Is it supposed to work for this version? |
Just switched back to Jedi and now pylint works in 1.46.1. |
Hi @johntmyers, we fixed that bug recently and it should be available in the next stable release of the extension. You can also download the Insiders version of the extension if you would rather not wait for the next release. |
Version v2020.6.90262 fixed the issue for me. Pylint now works also with the following configuration: {
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.languageServer": "Microsoft"
} Kudos @kimadeline for the quick bugfix release. |
Thank you for reporting back that it works now @silvestriluca! Closing as resolved. |
A note in the docs would not go amiss until a fix is released: https://code.visualstudio.com/docs/python/linting specifying the language server fixes the bug for me as well.
|
Make sure pylint does not install in the environment.
repro step:
1.Open folder Tester in vsc
2.Add new file test.py and typing code
msg='Hello Python'
print msg
3.Ctrl + shift + P to open command palette, Run Python: Run Select Linter command, then select pylint in the download list
expect result
Prompting to install Pylint
Actual result
After select run pylint, there is no any response.
no any output in output Python window.
Extension version: 2020.7.86945-dev
VS Code version: Code - Insiders 1.47.0-insider
The text was updated successfully, but these errors were encountered: