-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Extension keeps saying on save "Error Linter Pylint is not installed" even when already installed #437
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
Please could you provide us the output from the the following:
|
Files are attached (anonymized, actual username is replaced with user). pylint-not-installed_install-pylint_python-terminal-output.txt |
Same problem for me, under Ubuntu 16.04. I use pylint3. It is chosen in the settings and is on the path. It always used to work but now suddently this error message pops up. |
@blujedi do you have a workspace folder opened? |
No I have not opened a workspace folder when the error occurs. Just editing a single Python file. |
I also add my console log. Of course we cannot be sure that the cause is the same as for bluejedi even though the symptom is the same. I do not have pylint installed, but I do have pylint3 installed and that is what the settings say should be used. That worked until now.
|
@staffann looks like you're referring to an issue mentioned in #409. As a work around, please add something similar to the following in your user settings file: "python.linting.flake8Path": "/usr/local/bin/flake8",
"python.linting.pydocstylePath": "/usr/local/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/bin/pylint" |
@blujedi the output you have provided are from the Here are the instructions to locate the
|
i have the same error with both linting and formatting. for me, the python output panel contains this:
btw, the first time i clicked the "install" option on the error message, the install failed because under windows, it tries to install into C:\Program Files, which fails because of missing privileges. i installed autopep8 manually with --user to fix this. the error still appears, but choosing the "install" option now reports autopep8 to be installed already. |
@karyon there must be some errors logged in both theb |
when i paste some code with the formatOnPaste option set to true, the error message is shown and the following appears in the python output:
debug console:
|
@karyon what are your settings in settings.json? |
|
I believe I might have fixed it in #532 See change in |
Environment data
VS Code version: 1.19.0
Python Extension version: 0.9.0
Python Version: 3.7.14 x64
OS and version: Windows 10 Pro 1709
Actual behavior
When saving a .py file VSCode/Python Extension keeps saying "Error Linter Pylint is not installed".
Selecting "Install Pylint" again only shows that it is already up to date.
While I can select "Don't show this prompt again" selecting that does not feel good because then it will probably not show up again at all (even when needed).
Expected behavior
Speaks for itself: Only show error and options if true.
Steps to reproduce:
Logs
Output from
Python
output panelWhen selecting "Install Pylint" again:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Users\Me> & "python" -m pip install -U pylint
Requirement already up-to-date: pylint in c:\python27\lib\site-packages
Requirement already up-to-date: ...
etc.
The text was updated successfully, but these errors were encountered: