-
Notifications
You must be signed in to change notification settings - Fork 68
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
Syncing issues #350
Comments
I have same issue logged in with my Githib credentials [2022-10-07 09:13:31.018] [settingssync] [info] Using settings sync service https://vscode-sync.trafficmanager.net/ |
Same here, on a fresh install I can’t click the account button |
Same issue no syncing |
might try #195 (comment) |
Can confirm. |
Switching to the official release fixed the issue. FYI i'm on Fedora 38 (minimal setup) with KDE Plasma as DE. |
I could only reproduce the issue on Fedora 38. |
The issue is also reproducible on the immutable versions of Fedora (Silverblue and Kinoite). |
This issue (at least for me) appears to have something to do with kwallet in a fresh install of Fedora Kinoite 38. I couldn't enable settings sync due to what appears to be the same issue as above (the Settings Sync option wouldn't even show up when clicking on the Accounts button), but going into System Settings -> KDE Wallet, unchecking the Enable the KDE wallet subsystem button, and then rebooting seems to have completely fixed the problem. I don't use kwallet anyway, so this workaround works totally fine for me, but it may a bit problematic for those that do use kwallet. Maybe kwallet needs some additional permissions through flatpak/flatseal that gnome-keyring doesn't or something? |
Same on Linux Mint 21.2 Cinnamon |
By following the recommendations here https://code.visualstudio.com/docs/editor/settings-sync#_troubleshooting-keychain-issues I was able to determine that it couldn't connect to the kwallet DBUS endpoint. That said, I still can't get it to work. The logs now say it's able to correctly detect and connect to the KWallet, but it says it "can't detect an authentication service" the second time it checks, after it gets the GitHub token back (it checks before trying for the token and succeeds). The official Microsoft site suggest trying to force the password storage to use a couple gnome variants, one of which supposedly forces it to use the org.freedesktop.secretstore DBUS endpoint, but that exhibits the identical problem. My best guess is that KWallet is refusing the storage request from VSCode without ever prompting the user or registering that the connection was even made, but does successfully reply the "do you exist" check VSCode does as the first connection. |
I solved it! TL;DR The Session Dbus "Talk" permissions you need to add are"
You also must manually disable In VSCode, open the command-pallet and go to
(you can test this change without making it permanet by setting When you start Settings Sync and pick GitHub, it will open your browser to authenticate. That will then prompt you to pick the VSCode flatpak as the program to open the VSCode will still be sitting waiting for the GitHub token. Just wait a few minutes until it times out. The notification will then ask if you want "to use a local server". I know it's weird and wrong, but pick "Yes". It will actually receive and process the GitHub token at this point. How the Sausage Was Made: Apparently Microsoft's documentation is incorrect/out-of-date on a number of key points:
When debugging using the recommended command-line options, you can see that it errors out trying to connect to certain DBUS endpoints. They're listed as Also when skimming the logs and looking for the word "key", I noticed that I'd been banging my head on why the GitHub token was generated by my browser and sent back to VSCode thru a |
Thanks @mtalexan !
|
The |
Hey,
I have difficulty turning on syncing as clicking on the accounts icon doesn't do anything and clicking on the "Turn on Settings Sync" button provides the following error message:
This might be connected to a similar issue #144471 discussed in the main repo of VS Code. VS Code seems to be requiring gnome-keyring, libsecret and libgnome-keyring (maybe just on of those).
Is this a permission issue that can be solved via Flatseal or by adding a path?
Thanks for answering,
Nordanis
The text was updated successfully, but these errors were encountered: