-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension enters duplicate data into local globalStorage
sqlite db
#17488
Comments
globalState
sqlite dbglobalStorage
sqlite db
Thanks for the bug report! We just wanted to quickly acknowledge we received it and we will triage this as soon as we can. |
Thank you @mattseddon for investigating the cause, that must not have been easy so I appreciate it very much! The issue should be fixed once #17598 is merged, you're welcome to have a look. |
globalStorage
sqlite dbglobalStorage
sqlite db
Can you verify if the following VSIX fixes the database issue for you: https://github.com/microsoft/vscode-python/suites/3936300663/artifacts/98621813? Use |
@karrtikr I have just tested this and it does appear to have made things better. I can see that
I am still seeing duplicates being created in the
I don't think that you can close the ticket using the current fix. |
Thanks for reporting back. The VSIX I provided initially is actually outdated as PR got updated further, can you try https://github.com/microsoft/vscode-python/suites/3954255787/artifacts/99265047 which appears to be the latest VSIX on the PR. Alternatively, you can try |
FYI I can verify there's still an issue with |
I am also seeing the issue with
The list of |
I see, thanks for confirming. You can use the command |
@mattseddon Can you please try https://github.com/microsoft/vscode-python/suites/3965062360/artifacts/99642505, thanks! |
@karrtikr that seems to have fixed the issue. |
Environment data
1.60.1
v2021.9.1246542782
Darwin x64 20.6.0
pyenv
)ms-python.python
python.languageServer
setting:Pylance
Expected behaviour
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 behaviour
Each reload of a window causes
PYTHON_EXTENSION_GLOBAL_STORAGE_KEYS
under thems-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:globalStorage.txt
Note: There are 712 matches to
INTERPRETERS_CACHE
in that file.Steps to reproduce:
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).Logs
Nothing of note is captured in the logs.
The text was updated successfully, but these errors were encountered: