code-settings-sync icon indicating copy to clipboard operation
code-settings-sync copied to clipboard

Select your existing Gist is an empty page

Open sim4life opened this issue 5 years ago • 9 comments

🐛 Describe the bug
A clear and concise description of what the bug is. You are always welcome to check the Troubleshooting section before filing the ticket.

I've 2 github accounts. I've logged in to my company provided github account on default web browser Safari. However, I've also logged in to my personal Github account on non-default Chrome browser. So after my 'Login with Github' is successful on Chrome, I get a blank screen on VSCode saying 'Select your existing Gist'. When I go to Edit settings then I see an access token textfield filled with some value but the Gist ID textfield is empty I can't download my settings or trigger Sync. If on Edit Settings, I enter my Gist ID and then try the Download Settings then VSCode gives a notification: 'Your Gist ID is invalid'.

🌴 Visual Studio Code Version : 1.39.2 🌴 Code Settings Sync Version : 3.4.3 🌴 Standard or Insiders : Standard 🌴 Portable or Installed : Installed 🌴 OSS or Official Build : OSS 🌴 Operating System : macOS v10.15.1 🌴 Occurs On: Help Configuring 🌴 Proxy Enabled: No 🌴 Gist Id: 5ba4ea145506d59b5b7ad7ff0bbeca4c

📰 To Reproduce Steps to reproduce the behavior:

  1. Go to 'Sync --> Download Settings'
  2. Click on 'Login with Github'
  3. Copy link from popup and paste it in a non-default browser with your github linked with VSCode Sync - Gist
  4. See error screenshot - Can't select my existing Gist

💪 Expected behavior I expect a list of existing Gist to be shown in VSCode after I login with my VSCode Sync Gist Github account.

📺 Console Error Log

Screenshot 2019-10-31 at 13 09 31 Screenshot 2019-10-31 at 13 10 35

📺 Additional context

sim4life avatar Oct 31 '19 13:10 sim4life

📺 Console Error Log

Can you show the image of console logs.

shanalikhan avatar Nov 01 '19 12:11 shanalikhan

I see NO log on VS Code developer tools console output but I see following two errors on Chrome developer tools console output:

  1. Content Security Policies delivered via a <meta> element may not contain the frame-ancestors directive. callback:9
  2. Refused to load the image 'http://localhost:54321/favicon.ico' because it violates the following Content Security Policy directive: "img-src vscode-resource: https:". callback:1

sim4life avatar Nov 01 '19 14:11 sim4life

Similar issues here.

After clicking login with github my chrom console contains:

[Embedded Page] Uncaught SyntaxError: missing ) after argument list
webviewElement.ts:303 
[Embedded Page] Uncaught ReferenceError: skip is not defined

bessey avatar Nov 04 '19 09:11 bessey

same issue

rockchalkwushock avatar Nov 24 '19 06:11 rockchalkwushock

Same issue.

khoazero123 avatar Dec 09 '19 01:12 khoazero123

Found a temporary fix that works for me. I just went into the user settings JSON file, and added this line (copied from my other computer, which I wanted to sync with):

    "sync.gist": "myGistID"

Once I saved those files, I then ran "Sync: Download Settings" in the command palette, and it started syncing.

sashafklein avatar Dec 16 '19 03:12 sashafklein

I just encountered this problem, @sashafklein solution worked for me.

basnijholt avatar Jun 05 '20 14:06 basnijholt

I encountered the same problem. I checked the sync.gist setting, found that gist id was incorrect. Correcting the gist id worked for me.

It was very odd. I copied and pasted the gist id, but it extra non-ascii characters were appended at the end.

zyqhi avatar Jul 09 '20 09:07 zyqhi

Duplicate of #1005

JeroenBos avatar Apr 09 '21 12:04 JeroenBos