Code-settings-sync: Not working on Manjaro Linux

Created on 30 Apr 2019  路  8Comments  路  Source: shanalikhan/code-settings-sync

Sync fails to install the extensions with the following error:

"bin/code" --install-extension ms-python.python
Error: Command failed: "bin/code" --install-extension ms-python.python
/bin/sh: bin/code: No such file or directory

This issue didn't occur to me on Windows or Debian-based distributions (namely Ubuntu and Elementary OS).

bug 馃悰

Most helpful comment

A quick workaround while someone has time to create the PR:

mkdir -p ~/bin
ln -s `which code` ~/bin/code

I have just tested it and restored my configuration on Manjaro.

All 8 comments

same on archlinux (not so surprising...)

imho the problem could be at https://github.com/shanalikhan/code-settings-sync/blob/master/src/service/pluginService.ts#L288

else if (osType === OsType.Linux) {
      if (isInsiders) {
        codeLastFolder = "code-insiders";
        codeCliPath = "bin/code-insiders";
      } else {
        codeLastFolder = "code";
        codeCliPath = "bin/code";
      }

should be

else if (osType === OsType.Linux) {
      if (isInsiders) {
        codeLastFolder = "code-insiders";
        codeCliPath = "/bin/code-insiders";
      } else {
        codeLastFolder = "code";
        codeCliPath = "/bin/code";
      }

@ildoc can you send me a PR where you think it can be improved for Manjaro Linux, while keeping the support for ubuntu and other os.

A quick workaround while someone has time to create the PR:

mkdir -p ~/bin
ln -s `which code` ~/bin/code

I have just tested it and restored my configuration on Manjaro.

@cristiangauma your solution work fine with "code - oss" (open source version of vscode) on arch linux

@cristiangauma also your solution help on VSCodium.

same problem here using arch linux, the path should be /bin/code, not bin/code
solution provided by @ildoc should be applied...

Duplicate of #668

Settings Sync v3.3.0 is released with the fix by @arnohovhannisyan
Let me know if you guys find some problem.
I'm closing the issue.

Was this page helpful?
0 / 5 - 0 ratings