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

Settings Sync anomaly when syncing two devices from two networks #234491

Open
mhanuszh opened this issue Nov 23, 2024 · 2 comments
Open

Settings Sync anomaly when syncing two devices from two networks #234491

mhanuszh opened this issue Nov 23, 2024 · 2 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@mhanuszh
Copy link

mhanuszh commented Nov 23, 2024

Type: Bug

The setup

I have two computers, they are connected to the internet through different ISPs (one wired, one cellular). I am running 2 instances of vscode on each computers. I am logged in with the same account on all four instances and settings syncing is turned on.

The problem

When editing the settings either with the UI editor or with the settings.json file, the instances running on the same netwok have no problem syncing with each other. The instances on the different network will not sync, not even when forced with the "Settings Sync: Sync Now" command. When changing something on the "outdated" instance, it will report a conflict, resolving it will sync it so that other instances can sync it, but only "local" ones will sync automatically and without conflict, the instances on the other network will be the new "outdated" ones.

Example

Computer A and B are connected to different networks, and have the same account (Github) and profile (Default).
On each computer, there are two vscode instances: A1, A2, B1, B2. All extensions are disabled.

  1. Changing a setting in A1 will trigger a sync.
  2. A2 will detect and download the changes.
  3. B1 and B2 will not:
Settings: No changes found during synchronizing settings.
  1. Changing a setting in B1 will trigger a sync and report a conflict:
Settings: Failed to synchronize as there is a new remote version available. Synchronizing again...
Settings: Detected conflicts while synchronizing settings.
  1. After resolving the conflict on B1 with either "Replace local" or "Replace remote", B2 will sync and download the changes.
  2. A1 and A2 will now act as B1 and B2 in step 3

Notes

When the two computers are connected to the same network (either one) all four vscode instances are syncing without a problem.

System info

VS Code version: Code 1.95.3 (f1a4fb1, 2024-11-13T14:50:04.152Z)
OS version: Linux x64 6.11.6-300.fc41.x86_64
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz (4 x 3392)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 2, 2, 3
Memory (System) 15.57GB (6.34GB free)
Process Argv --crash-reporter-id cb6a3ac5-b939-4ca1-92c6-fc345c0c601d
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland
Extensions: none
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
9c06g630:31013171
dvdeprecation:31068756
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31185841
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

@sandy081
Copy link
Member

The instances on the different network will not sync, not even when forced with the "Settings Sync: Sync Now" command.

Can you please share the following log from these machines

  • F1 > Open View... > Settings Sync

@sandy081 sandy081 added the info-needed Issue requires more information from poster label Nov 27, 2024
@Sokolowski87
Copy link

Setting sync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants