Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Linter does not detect undefined variable in constructor #2068

Open
@jrsrjrsr

Description

@jrsrjrsr

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:

"python.linting.pylintEnabled": true
"python.linting.enabled": true

I am running a remote session with "WSL: Ubuntu".

More data below.

  • VS Code version: 1.46.0-insider
  • Extension version (available under the Extensions sidebar): v2020.6.85559-dev
  • OS and version: Win 10, Build 19041.264, (Ubuntu, WSL2)
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.2,
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: ???
  • Relevant/affected Python-related VS Code extensions and their versions: ??
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version vscode-python#3977): This setting doesn't exist
  • Value of the python.languageServer setting: Microsoft

Steps to reproduce:

Create a file with the following two lines:

x = 3
print(y)

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 the Output panel:

Nothing from the command gets printed here


Output from Console under the Developer Tools panel:

Nothing appears immediately after running the command.  

However, prior to running the command, there was the following error:

Error Python Extension: 2020-06-07 10:53:14: stderr jediProxy Error (stderr) /home/jordan/.vscode-server-insiders/extensions/ms-python.python-2020.6.85559-dev/pythonFiles/completion.py:586: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_names instead.
  jedi.api.names(

  | t.log | @ | console.ts:137
-- | -- | -- | --
  | $logExtensionHostMessage | @ | mainThreadConsole.ts:39
  | _doInvokeHandler | @ | rpcProtocol.ts:402
  | _invokeHandler | @ | rpcProtocol.ts:387
  | _receiveRequest | @ | rpcProtocol.ts:303
  | _receiveOneMessage | @ | rpcProtocol.ts:230
  | (anonymous) | @ | rpcProtocol.ts:105
  | fire | @ | event.ts:587
  | fire | @ | ipc.net.ts:453
  | _receiveMessage | @ | ipc.net.ts:733
  | (anonymous) | @ | ipc.net.ts:592
  | fire | @ | event.ts:587
  | acceptChunk | @ | ipc.net.ts:239
  | (anonymous) | @ | ipc.net.ts:200
  | t | @ | ipc.net.ts:28
  | emit | @ | events.js:203
  | addChunk | @ | _stream_readable.js:295
  | readableAddChunk | @ | _stream_readable.js:276
  | Readable.push | @ | _stream_readable.js:210
  | onStreamRead | @ | internal/stream_base_commons.js:166

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions