-
Notifications
You must be signed in to change notification settings - Fork 133
Linter does not detect undefined variable in constructor #2068
Comments
Please try to find the Python output channel here, Python in the Output panel (View →Output , change the drop-down the upper-right of the Output panel to Python )
Unfortunately without it, there's not much we can do. You can follow the prompts from "Extensions: Install Specific Version of Extension..." in the command palette: Or you can open the extensions side bar, click on the settings for the Python extension and pick "Install Another Version...": |
Hi, After installing different versions (v2020.4.76186 and v2020.5.80290) and digging a little further, I noticed that some errors were being picked up, but not others. And, this is happening in both versions of the extension I installed. Here is a new test case:
I expect vscode to produce two Problems in the Problems window associated with the undefined variables
Running manually in the terminal window provides the output I expect
My Python Output Window (while running extension v2020.4.76186)
|
Experiencing same problem, running python linting shows nothing (including output: python). Check 'Jedi Enabled' and pylint works well immediately. In my case it seems the problem is not related to recent versions, tried downgrade to 2020.1, still no hint |
@crazyapril Your issue seems to be that Pylint is not working when using Python Language server as intellisense. We've an open issue for that. |
Actually Language server is one providing the linting here, not pylint.
LS only shows one error |
Nothing happens when using "Python: Run Linting" and there are no messages printed in the "Python" Output screen. I am running on a file for which I have known errors and for which pylint works correctly in the integrated terminal when I run it manually.
I have confirmed:
I am running a remote session with "WSL: Ubuntu".
More data below.
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version vscode-python#3977): This setting doesn't existpython.languageServer
setting: MicrosoftSteps to reproduce:
Create a file with the following two lines:
Run the command "Python: Run Linting".
Logs
No log appears in Output for Python code or Developer panel. However, there is a Python error (jediProxy Error) that shows up in the Developer panel. Details are provided in the Logs section below.'
Output for
Python
in theOutput
panel:Output from
Console
under theDeveloper Tools
panel:The text was updated successfully, but these errors were encountered: