Skip to content
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

Sync: Failed to sync extension enablement #91410

Closed
joaomoreno opened this issue Feb 25, 2020 · 5 comments
Closed

Sync: Failed to sync extension enablement #91410

joaomoreno opened this issue Feb 25, 2020 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug settings-sync verified Verification succeeded
Milestone

Comments

@joaomoreno
Copy link
Member

Testing #91226 on Windows

I reprod this twice and then never again:

  1. Machine A: disable a theme
  2. Machine B: wait for it to be disabled due to sync, then re-enable it

Machine A would not see it re-enabled, no matter how long I waited.

Sorry for the poor steps... I was able to repro this with normal extensions (ESLint) as well as built-in (Monokai theme).

@sandy081
Copy link
Member

@joaomoreno Can you please provide the sync log from both machines while this happening ?

@sandy081 sandy081 added settings-sync info-needed Issue requires more information from poster labels Feb 25, 2020
@roblourens
Copy link
Member

I also reproed this multiple times. I repro it often if I change multiple extensions enablement at the same time. Here I started with Gitlens and Java disabled in both windows, then enabled both in window A, but in window B, only Gitlens is enabled.

Window A:

[2020-02-25 16:05:34.660] [userDataSync] [info] Auto Sync: Triggered.
[2020-02-25 16:05:34.725] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-02-25 16:05:34.726] [userDataSync] [info] Keybindings: No changes found during synchronizing keybindings.
[2020-02-25 16:05:34.727] [userDataSync] [info] UI State: No changes found during synchronizing ui state.
[2020-02-25 16:05:34.949] [userDataSync] [info] Extensions: Updated remote extensions
[2020-02-25 16:05:34.968] [userDataSync] [info] Extensions: Updated last synchronized extensions
[2020-02-25 16:05:34.969] [userDataSync] [info] Sync done. Took 309ms

image

Window B:

[2020-02-25 16:05:36.399] [userDataSync] [info] Auto Sync: Triggered.
[2020-02-25 16:05:36.463] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-02-25 16:05:36.468] [userDataSync] [info] Keybindings: No changes found during synchronizing keybindings.
[2020-02-25 16:05:36.470] [userDataSync] [info] UI State: No changes found during synchronizing ui state.
[2020-02-25 16:05:36.799] [userDataSync] [info] Extensions: Enabled extension eamodio.gitlens 10.2.1
[2020-02-25 16:05:36.817] [userDataSync] [info] Extensions: Updated last synchronized extensions
[2020-02-25 16:05:36.817] [userDataSync] [info] Sync done. Took 418ms
[2020-02-25 16:05:38.805] [userDataSync] [info] Auto Sync: Triggered.
[2020-02-25 16:05:38.857] [userDataSync] [info] Settings: No changes found during synchronizing settings.
[2020-02-25 16:05:38.858] [userDataSync] [info] Keybindings: No changes found during synchronizing keybindings.
[2020-02-25 16:05:38.859] [userDataSync] [info] UI State: No changes found during synchronizing ui state.
[2020-02-25 16:05:38.891] [userDataSync] [info] Extensions: No changes found during synchronizing extensions.
[2020-02-25 16:05:38.891] [userDataSync] [info] Sync done. Took 86ms

image

@sandy081 sandy081 removed the info-needed Issue requires more information from poster label Feb 26, 2020
@sandy081 sandy081 added this to the February 2020 milestone Feb 26, 2020
@sandy081
Copy link
Member

Assigning to feb for investigation

@sandy081 sandy081 added the bug Issue identified by VS Code Team member as probable bug label Feb 26, 2020
@sandy081
Copy link
Member

@bpasero here is the code that is not sending storage change event when a key is removed from storage

if (typeof existing === 'string') {
items.set(event.key, existing);
}

Commit af9dddd introduced this.

@sandy081
Copy link
Member

This should be fixed by #91582

@connor4312 connor4312 added the verified Verification succeeded label Feb 28, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug settings-sync verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants