Pylance greys out accessed variables after cell was not edited for some time #13616
Closed
1 of 2 tasks
Labels
bug
Issue identified by VS Code Team member as probable bug
info-needed
Issue requires more information from poster
notebook-intellisense
Intellisense & other language features in notebook cells for any language
upstream-pylance
Blocked on upstream Pylance
Applies To
What happened?
When working on a notebook for about 20 minutes in some cells Pylance is showing variables in grey (indicating that they are not accessed in the code) although they are being accessed. When editing one of the cell the problem disappears (for all cells) and the variables are not shown in grey anymore. I would expect that the status about variales being accessed is always indicated correctly.
In this .gif you can see that after pressing space the variables are in grey anymore:
VS Code Version
Version: 1.78.2 Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435 Date: 2023-05-10T15:00:40.428Z (2 wks ago) Electron: 22.5.2 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Darwin arm64 22.3.0 Sandboxed: Yes
Jupyter Extension Version
v2023.4.1011241018
Jupyter logs
No response
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote
The text was updated successfully, but these errors were encountered: