-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Pylint not working when using Python Language Server #3292
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
@brettcannon Good to know, I was testing this issue within a workspace where I already had a My user settings contain the following:
In this first recording, pylint has already ran with Jedi enabled. I disable Jedi and pylint will not run. I re-enable Jedi and pylint runs again (as soon as I change to Prior to this second recording, I have saved the folder as a workspace with the default Hope this information helps, I know these things can be a nightmare to diagnose and reproduce. |
Still can't reproduce on either Windows 10 or macOS Mojave w/ a VS Code 1.29.0 and 2018.10.1 of the extension: This is using: def f():
try:
unused = 1 / 0
except Exception:
return False
print("never") And this is in a clean directory and virtual environment that wasn't polluted with anything. Best I can think of is checked under Developer Tools to see if that provides any useful information. |
@brettcannon Doesn't appear to be much useful information in the Developer Tools console, and I did a complete reinstall of VS Code. Looks like the issue I'm having is either the same or related to this one here: #3351 If I start where I left off in my previous post with the following settings: User Settings
Workspace Settings
Folder Settings
I currently get no linting. However, if I add |
Environment data
Actual behavior
When
"python.jediEnabled": true
is set in User Settings, pylint runs as expected. I see a "Missing module docstring" under the Problems window, and I see the following in the Output (Python) window:Switch to
"python.jediEnabled": false
in User Settings and pylint does not run. I see no Problems listed, and the only Output is:Expected behavior
Pylint should run in both cases, which would be indicated by the same Problem list and pylint messages in the Output window.
Steps to reproduce:
test.py
that contains a single lineA = 1 + 2
."python.jediEnabled": false,
. The other settings should remain the same. You will have to reload the the window.Shift + ⌘ + P
->Python: Select Linter
and it should saycurrent: none
.Shift + ⌘ + P
->Python: Select Linter
and it now sayscurrent: pep8
.Shift + ⌘ + P
->Python: Select Linter
and it now sayscurrent: none
.Note: I have had pylint working when
"python.jediEnabled": false
in the past. I have uninstalled and reinstalled pylint and python a number of times over the past couple weeks for unrelated reasons. I do not know if this was the cause of the current issue, or if they are unrelated. Python and pylint are currently installed as I test and write this.Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: