Code-settings-sync: Syncing of extensions not working in portable mode

Created on 25 Jan 2019  路  23Comments  路  Source: shanalikhan/code-settings-sync

馃悰 When installing VS Code in portable mode with local data directory, extensions are not (fully) synced

VS Code can be installed in portable mode (download ZIP file and extract in some random directory). If you create a folder with the name "data" in the main directory, VS Code will save all settings and extensions into this subdirectory (see https://code.visualstudio.com/docs/editor/portable).

With this mode, Sync is ignoring most of the extensions. Out of five installed extensions, only one was synced to the file extensions.json in GIST. Even code-settings-sync itself is not synced as extension. As a result, downloading the settings on another installation only installs the one synced extension.

Doing the same setup with a regular installation works.

馃尨 Visual Studio Code Version : 1.30.2
馃尨 Code Settings Sync Version : 3.2.4
馃尨 Standard or Insiders : Standard
馃尨 OSS or Portable : Portable
馃尨 Operating System : Win 10
馃尨 Occurs On: Upload
馃尨 Proxy Enabled: No

馃摪 To Reproduce
Steps to reproduce the behavior:

  1. Install VS Code Portable
  2. Create 'data' directory in VS Code folder
  3. Start VS Code, download code-settings-sync
  4. Install some extensions (e.g. prettier, vetur, they did not work for me)
  5. Upload settings
  6. Check gist (extensions.json) or download settings on another machines: extensions will be missing

馃挭 Expected behavior
All extensions uploaded

bug 馃悰

All 23 comments

can you show an image of the following:

  1. data folder
  2. Image of the console log from the vscode, to see any exception being logged over there.

Same problem here:
The only "Error" in the console was:
captura de pantalla 2019-02-25 a la s 16 02 41

And the portable folder has:
captura de pantalla 2019-02-25 a la s 16 04 23

Its fixed with new version v3.2.6

let me know in case of issue.

I just got updated to Version: 3.2.6. of Settings Sync on my portable vscode instance.
I uploaded my settings and now the extensions array is completely empty. Meanwhile I have about 30 extensions installed.
Before the 3.2.6 update extensions were only noted partly, as described by OP.

image
image

@LuisUrrutia can you look into this.
Feel free to send PR, i will release in new version ( if there is still something missing )

@KolyaKorruptis can you open the developer tools of VSCode
screen shot 2019-03-05 at 1 13 30 pm

Try to upload again and share the console log?

image

image

@KolyaKorruptis cool! Now I know what the problem is. Are you sure that this extension worked before in the same VSCode portable and in the same OS?

Yes, I'm sure. It worked partially, as OP describes in the first post.

@shanalikhan can u re-open this issue and assign it to me?

It's reopened
U can send PR

I have the same issue as @KolyaKorruptis
My extensions now are an empty array and autodownloading the settings from other computer removed all extensions

@gsabater windows, right?

@LuisUrrutia yes, on both machines

Same problem here, everything working fine except extensions.json file always empty.
I'm on Windows 10, Visual Studio Code 1.31.1
It was working fine some weeks ago.

Edit: more information
馃尨 Visual Studio Code Version : 1.31.1 (user setup)
馃尨 Code Settings Sync Version : 3.2.6
馃尨 Standard or Insiders : Standard
馃尨 OSS or Portable : OSS
馃尨 Operating System : Win 10
馃尨 Occurs On: Upload
馃尨 Proxy Enabled: No

same problem with the empty extensions.json ....

Same problem here

Same issue on my PC.

environment:
Windows 10 Pro 64bit
Settings Sync v3.2.6
Visual Studio Code v1.31.1 (User Installer)

settings:

    "sync.autoDownload": true,
    "sync.autoUpload": true,
    "sync.gist": "xxx",
    "sync.quietSync": true,

It should be fixed in new version v3.2.7.

Let me know if there is any problem.

@shanalikhan Looking good.

All active extensions were uploaded. One inactivated extension wasn't. I guess that's expected behaviour.

It looks like no problem. Thanks!

All active extensions were uploaded good. When loading it writes "Sync: You already have the latest version of saved settings." , but nothing loads.
sync download

@Kuzmich100kM This issue was about a specific problem that was solved back then and now it's been closed for a while. Please open a new issue for your problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robertpeteuil picture robertpeteuil  路  5Comments

mklement0 picture mklement0  路  5Comments

pravic picture pravic  路  5Comments

axetroy picture axetroy  路  4Comments

larrym picture larrym  路  4Comments