-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Unable to get pylint to work in vscode #13678
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
Comments
@WinstonN, how are you trying to run linting? |
@ericsnowcurrently I tried multiple ways, saving the file and by using the command then selecting run python linting |
Please provide the content of the "Python" output panel. Also, do you have the same problem if you set |
Hi, For me is not working under venv (before running my project ouside venv, was working). I've reported this to visual code repo but they redirected me here. settings.json:
workspace:
Python: v3.8.2 (using venv) |
I don't know if this belongs here but I'm also having a problem with pylint. I can't get vs-code to install it on my Windows 10 machine. I'm using git bash. It will auto install if I change my terminal to PowerShell. You'll notice that it doesn't double up the slashes. I went through previous releases and it works before version 2020.6.88468 for me. (virtenv)
tyrda@DESKTOP-ISGAD51 MINGW64 /e/OneDrive/Programming/nonsense
$ e:/OneDrive/Programming/nonsense/virtenv/Scripts/python.exe c:\Users\tyrda\.vscode\extensions\ms-python.python-2020.8.108011\pythonFiles\pyvsc-run-isolated.py pip install -U pylint
E:\OneDrive\Programming\nonsense\virtenv\Scripts\python.exe: can't open file 'c:Userstyrda.vscodeextensionsms-python.python-2020.8.108011pythonFilespyvsc-run-isolated.py': [Errno 2] No such file or directory I noticed someone had the same problem on stackoverflow today. |
I have the same issue as gusarg81: pylint does not work within VS Code when you have activated a virtual environment. It works when using the system installed pylint outside of a venv. Allowing the VS Code extension to install pylint in the venv completes successfully but still gives the missing pylint error afterward. |
Hi, I have the same problem (on Ubuntu). Pylint is installed in the Conda env I work with and I can successfully lint files from command line. However, no linting is done by VS Code even though PyLint is enabled in configuration. I checked both with Jedi and PyLance servers and in both cases the problem persists. EDIT. |
@sztal when you use JediLSP/Pylance they use their own things to provide linting (i.e., you have to explicitly enable pylint linting for this to work). For better diagnosis, file a separate bug with your output logs and settings. |
In the latest release we changed how the Ls and pylint combination works. going forward |
Originally posted by @WinstonN in #7314 (comment)
I am unable to get pylint to work in vscode
My settings file looks like
Running linting does nothing
Can you please help me get this working?
Thanks!
The text was updated successfully, but these errors were encountered: