Skip to content

All variables are grayed as if unused #7088

Open
@BerubePascal

Description

@BerubePascal

Environment data

  • Pylance version: 2025.3.104
  • OS and version: Windows 11 Version 10.0.26100 Build 26100
  • Python version: 3.13.2

Code Snippet

rpm_max = 3200  # [tr/min]
print(rpm_max)

Image

Expected behavior

Variable rpm_max should not be grayed out

Actual behavior

All variables in my file are grayed out (but no error anywhere). I reloaded, reinstalled, reenabled the extension. Some times the issue disapear (no more grayed variables) but as soon as I add a new line, they all get grayed again.

My extensions are:
alefragnani.project-manager
ms-python.black-formatter
ms-python.debugpy
ms-python.python
ms-python.vscode-pylance
ms-toolsai.datawrangler
ms-toolsai.jupyter
ms-toolsai.jupyter-keymap
ms-toolsai.jupyter-renderers
ms-toolsai.vscode-jupyter-cell-tags
ms-toolsai.vscode-jupyter-slideshow

Logs

Not 100% sure that is what you need...
Python Language Server.log

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions