1.60.1
v2021.9.1246542782
Darwin x64 20.6.0
pyenv
)ms-python.python
python.languageServer
setting: Pylance
Extension does not fill the local globalStorage
sqlite db (Memento
) with erroneous data and maintains a list of available python interpreters.
When left unchecked this can lead to the extension host behaving in unexpected ways and it was difficult to diagnose without significant effort (see #17432 for original issue).
Actual behaviourEach reload of a window causes PYTHON_EXTENSION_GLOBAL_STORAGE_KEYS
under the ms-python.python
key to grow. Under most circumstances the list of environments underneath is not refreshed, i.e environments that are no longer on the machine are still shown.
This is a copy of the ms-python.python
key before I managed to clear the cache by deleting the extension and going through the steps listed here:
Note: There are 712 matches to INTERPRETERS_CACHE
in that file.
Unsure how to recreate the stale environments issue (seems cache related) but for the ever growing list of PYTHON_EXTENSION_GLOBAL_STORAGE_KEYS
:
delete from ItemTable where key = 'ms-python.python';
in ~/Library/Application\ Support/Code/User/globalStorage/state.vscdb
(mac).ms-python.python
in the db.ms-python.python
in the db (PYTHON_EXTENSION_GLOBAL_STORAGE_KEYS
will have grown in size and contain duplicate entries).Nothing of note is captured in the logs.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4