Change:
Try to sync my github account in a new mac machine, got an error "Error while turning on Settings Sync. No account available". But my github account works in other machines. Nothing works
Find a solution. 1 first uninstall the latest Version: 1.83.1 previous version version 1.82 your github version, it works upgrade to 1.83.1
Can you follow these steps so that we can get more information on what's going on? Open the Command Palette Run the command To the right of , click the double check mark button. (enables trace logging as the default) Wait for the issue to happen... Open the Output pane (ctrl+shift+u I think on Windows) drop in this issue he contents of the following: Output channel Output channel Output channel Open the Command Palette Run the command To the right of , click the double check mark button. (to set the default back to info)
I have the same issue but with MS account: not sure if this is relevant but I found it came about when I (incorrectly) signed into github first, then remembered that I had actually synched my settings with my Microsoft account, so I signed out of the github account, disabled sync, then signed in again with the Microsoft account, at which point this error occurred. The developer log you requested: From Main: 2023-10-14 13:22:50.307 [info] update#setState idle 2023-10-14 13:22:51.095 [info] WSL is not installed, so could not detect WSL profiles 2023-10-14 13:23:20.319 [info] update#setState checking for updates 2023-10-14 13:23:20.396 [info] update#setState idle From Microsoft Authentication: 2023-10-14 13:23:35.757 [info] Getting sessions for all scopes... 2023-10-14 13:23:35.757 [info] Got 1 sessions for all scopes... 2023-10-14 13:23:35.759 [info] [email offlineaccess openid profile] Getting sessions 2023-10-14 13:23:35.759 [info] [email offlineaccess openid profile] Got 1 sessions 2023-10-14 13:23:39.689 [info] [email offlineaccess openid profile] Creating session 2023-10-14 13:23:42.175 [info] [email offlineaccess openid profile] '' session successfully created! 2023-10-14 13:24:36.053 [info] [email offlineaccess openid profile] Getting sessions 2023-10-14 13:24:36.053 [info] [email offlineaccess openid profile] Got 2 sessions 2023-10-14 13:24:44.291 [info] [email offlineaccess openid profile] Getting sessions 2023-10-14 13:24:44.291 [info] [email offlineaccess openid profile] Got 2 sessions 2023-10-14 13:26:32.449 [trace] No pending tokens to store 2023-10-14 13:26:41.780 [trace] [email offlineaccess openid profile] Queued getting sessions 2023-10-14 13:26:41.781 [info] [email offlineaccess openid profile] Getting sessions 2023-10-14 13:26:41.781 [info] [email offlineaccess openid profile] Got 2 sessions 2023-10-14 13:26:41.781 [trace] [email offlineaccess openid profile] '' Token available from cache, expires in milliseconds. 2023-10-14 13:26:41.781 [trace] [email offline_access openid profile] '' Token available from cache, expires in milliseconds. 2023-10-14 13:26:53.557 [trace] No pending tokens to store 2023-10-14 13:28:07.996 [trace] No pending tokens to store 2023-10-14 13:28:16.942 [trace] No pending tokens to store 2023-10-14 13:30:06.682 [trace] No pending tokens to store From Settings Sync: 2023-10-14 13:22:50.937 [info] Using settings sync service https://vscode- 2023-10-14 13:22:50.937 [info] Auto Sync is disabled. Hope this is helpful. I will try installing previous version to try to resolve. Edit: actually found that deleting the Code folder from APPDATA resolved my issue.
Same for me. On MacOS I can only sync with Github account, on Ubuntu it is vice versa. Any info about this issue would be appreciated.
I also signed in with Github first, then signed in with Microsoft account (but staying signed in to Github as well). ! Then I tried to Backup my settings but it started giving "No account available" error. I dont want to install previous version as I dont want to lose my settings. Hope it gets fixed in a update.
Hi Team, I have the same issue here with the latest insider 1840 A new vscode installation on win11 Login GitHub account first and sync turned on automatically Turn off setting sync and log out Login MS account successfully (As above, no error in extension MS account log) Turn on sync with MS account No new log printted in Settings Sync log Error occurred: But it seems we have figured a workaround to downgrade vscode version which also works here.
any ideas? Auth side looks fine.
This seems to be related to only being able to log in to a single GitHub account. Once you've logged in to GH you only have the option to "Sign in with Microsoft" for Settings Sync. ! I used to have two GitHub accounts logged in — one personal for Settings Sync, and other for my company's GitHub. Trying to replicate this same setup now is causing either: in first to personal GH for Settings Sync, but this automatically logs you into all GH authentication and there's no way to switch over to the work account for proper repo access; or in first to work GH for repo access, but then the only remaining option for Setting Sync is to sign in with Microsoft which leads to "No account available." (even if you sign into the MS account via GH credentials) Hopefully this helps track down the cause!
May be related to the refactoring I did to fetch accounts lazily. But I cannot reproduce locally, would like to have repro steps or logs. Can some one who is able to repro share the window log? Also please try our and see if you can repro there too?
I can reproduce on 1.83.1 and window log seems empty: GitHub Authentication for completeness:
Steps to Repro: Turn on Settings Sync using GitHub account Turn off Settings Sync Turn on Settings Sync using MSFT account Error: No account available
Deleting the code folder works for me, thank you!
Same here. Setup Windows 10 new installed vscode and signed in on my private microsoft (hotmail) account and my office/school account on github. The settings I want to sync with are setup on my private account but attmpts to sync result in the error message. My version 1.84.1. This problem is not solved
SAME HERE, Hi Anytime I launch VSCODE i get this message sign in to sync settings but i already did that login with my github account already about three years ago until version 1.82 i get that message anytime i launch VSCODE Please Fix it it keeps bugging me down please. Thanks.
IS STILL KEEPS SHOWING AFTER I UPDATED TO VERSION 1.84.2 PLEASE FIX IT
Your issue seems to be different from here. Please file a separate issue with steps to reproduce.

Discussion:
} else { sessionId = (await this.authenticationService.createSession(accountOrAuthProvider.id, accountOrAuthProvider.scopes)).id; } <ins> this.currentAuthenticationProviderId = accountOrAuthProvider.id; </ins> } else { if (this.environmentService.options?.settingsSyncOptions?.authenticationProvider?.id === accountOrAuthProvider.authenticationProviderId) { sessionId = await this.environmentService.options?.settingsSyncOptions?.authenticationProvider?.signIn(); } else { sessionId = accountOrAuthProvider.sessionId; } <ins> this.currentAuthenticationProviderId = accountOrAuthProvider.authenticationProviderId; </ins> } this.currentSessionId = sessionId; await this.update();