mfuentesg / SyncSettings

Sync Settings - The cross-platform solution to keep Sublime Text configuration synchronized
https://mfuentesg.dev/SyncSettings
MIT License
288 stars 38 forks source link

Syncing not works #67

Closed jt3k closed 7 years ago

jt3k commented 7 years ago

i update sync-settings to version 2.4.2 on my laptop (from apple) and on my computer (apple).

i upload settings on computer and download settings on laptop

After restart sublimetext_on_laptop in command-pallete (cmd+shift+p) i not find many menu items. (e.g. sync settings upload)

FIX IT plz and Close the issue AFTER fixing.

thnx.

mfuentesg commented 7 years ago

Paste the log file content here

macOS: cat ~/.sync-settings.log | pbcopy

or create a PR with the fix ;)

jt3k commented 7 years ago

my ~/.sync-settings.log from laptop

[03/10/2016 - 15:40:03] ERROR: It has generated an error when to update or create the file /Users/jt3k/Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings - No JSON object could be decoded
[03/10/2016 - 15:43:52] ERROR: ['Traceback (most recent call last):\n', '  File "sync_settings.sync_version in /Users/jt3k/Library/Application Support/Sublime Text 3/Installed Packages/Sync Settings.sublime-package", line 27, in check_version\n', '  File "sync_settings.libs.gist_api in /Users/jt3k/Library/Application Support/Sublime Text 3/Installed Packages/Sync Settings.sublime-package", line 148, in get\n', "TypeError: Can't convert 'NoneType' object to str implicitly\n"]
[03/10/2016 - 20:59:34] ERROR: It has generated an error when to update or create the file /Users/jt3k/Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings - No JSON object could be decoded
[03/10/2016 - 21:02:05] ERROR: It has generated an error when to update or create the file /Users/jt3k/Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings - No JSON object could be decoded
mfuentesg commented 7 years ago

Please, paste the Package Control.sublime-settingsfile content here

jt3k commented 7 years ago

Package Control.sublime-settings

{
    "bootstrapped": true,
    "in_process_packages":
    [
    ],
    "installed_packages":
    [
        "Package Control",
        "Sync Settings"
    ]
}
adeonir commented 7 years ago

I got a similar error:

[11/10/2016 - 07:33:03] ERROR: It has generated an error when to update or create the file /Users/adeonir/Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings - No JSON object could be decoded
[11/10/2016 - 07:39:17] ERROR: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
mfuentesg commented 7 years ago

@adeonir this appears during the download process?

Can you paste the Package Control.sublime-settings file content?

cat ../Packages/User/Package Control.sublime-settings
And from
gist.github.com/<gist_id> (Package Control.sublime-settings
mfuentesg commented 7 years ago

@jt3k can you paste the Package Control.sublime-settings file content from gist.github.com/...

jt3k commented 7 years ago

on my computer and laptop i have version of sync settings - 2.4.2

i try "Create and Upload" on computer (after this my gist id is refreshed in SyncSettings.sublime-setings)

Then i copy SyncSettings.sublime-setings to my laptop, and try "Download settings" after restart nothing happened.

Package Control.sublime-settings file (from gist)

{
    "bootstrapped": true,
    "in_process_packages":
    [
    ],
    "installed_packages":
    [
        "AceJump",
        "Babel",
        "Colorcoder",
        "Console Wrap for js",
        "DocBlockr",
        "EditorConfig",
        "ES6-Toolkit",
        "ESLint-Formatter",
        "FindSelected",
        "FuzzyFilePath",
        "Git",
        "GitGutter",
        "Handlebars",
        "Hayaku - tools for writing CSS faster",
        "Jade",
        "JsFormat",
        "LESS",
        "memTask",
        "Package Control",
        "ProjectManager",
        "Pug",
        "Stylus",
        "SublimeLinter",
        "SublimeLinter-contrib-bootlint",
        "SublimeLinter-contrib-eslint",
        "SublimeLinter-contrib-htmlhint",
        "Sync Settings",
        "SyncedSideBar",
        "Terminal",
        "TernJS",
        "TodoReview",
        "TrailingSpaces",
        "UMD snippets",
        "Vanilla lodash Snippets"
    ]
}

after trying download settings in my .sync-settings.log adds this line

[11/10/2016 - 14:34:14] ERROR: It has generated an error when to update or create the file /Users/jt3k/Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings - No JSON object could be decoded

Content of my Package Control.sublime-settings

{
  "bootstrapped": true,
  "in_process_packages": [],
  "installed_packages": [
    "Package Control",
    "Sync Settings"
  ]
}
mfuentesg commented 7 years ago

thanks @jt3k

adeonir commented 7 years ago

@mfuentesg same happend here. And I forgot to mention before, i'm using build 3126.

jt3k commented 7 years ago

me too 3126

sdouche commented 7 years ago

I had the same issue. I created a new gist and now it works.

jt3k commented 7 years ago

@sdouche i try this not works for me... what is your operating system?

sdouche commented 7 years ago

sorry @jt3k I can't remember what I do to fix the issue. I'm on Linux. Just I wanted to say I had the problem too.

mfuentesg commented 7 years ago

@jt3k or @adeonir can you share me your conflictive gist? Thanks

jt3k commented 7 years ago

yep https://gist.github.com/jt3k/1b6bb463389393d1b28157dfa2faee7e

adeonir commented 7 years ago

here: https://gist.github.com/adeonir/16d514294345a908e0c3b5c338bfdc43

mfuentesg commented 7 years ago

@jt3k your file has the follow information

it is very weird because the content is empty and the file size is 1327 Kb

{
    "type": "text/plain",
    "raw_url": ".../Package%2520Control.sublime-settings",
    "language": null,
    "filename": "Package%20Control.sublime-settings",
    "truncated": true,
    "content": "",
    "size": 1327
}

captura de pantalla 2016-10-15 a la s 21 02 41

jt3k commented 7 years ago

@mfuentesg I will be on holiday for two weeks.

After this i try delete all config-files and reinstall plugins again

lestevam commented 7 years ago

I have had the same problems. I set my gist_id and the access_token, but when I run the "Download" command, it shows me the success message (in green) and asks to restart the ST. After the restart my settings are not loaded, so when I see the log file, generated the following error:

[20/10/2016 - 16:47:47] ERROR: It has generated an error when to update or create the file /home/luizestevam/.config/sublime-text-3/Packages/User/Package Control.sublime-settings - No JSON object could be decoded

The local and remote file are correct as tested with JSONLint.

Tks!

mfuentesg commented 7 years ago

@lestevam can you share me your gist link?

Thanks

lestevam commented 7 years ago

Yes, see: https://gist.github.com/lestevam/42db9ade45a564d4c37d7891b5891c7f

Thanks!

mfuentesg commented 7 years ago

@lestevam @jt3k @adeonir I don't know why your files have this behavior.

So, the request returned the following response:

"SyncSettings.sublime-settings": {
      "filename": "SyncSettings.sublime-settings",
      "type": "text/plain",
      "language": null,
      "raw_url": "https://gist.githubusercontent.com/lestevam/42db9ade45a564d4c37d7891b5891c7f/raw/8c47d9faeb42178f12ed4f2f17c4cd07516314e8/SyncSettings.sublime-settings",
      "size": 390,
      "truncated": true,
      "content": ""
}

truncated: true and raw_url is the key. I am will update the plugin to accept this cases getting the file content from the raw_url

adeonir commented 7 years ago

When I do the sync download, files are left with zero sizes. Maybe because the files get truncated names on gist. Like "Package%20Control.sublime-settings".

jt3k commented 7 years ago

YEPP! NOW IT WORKS!!!

THNX @mfuentesg !

Nicksxs commented 4 years ago

i have same problem https://gist.github.com/Nicksxs/c19256dac4968eeeac447541b653ba4b