sync-settings: Error updating backup: latestDate.toISOString is not a function

Describe the bug Out of the blue it started throwing up this error on every attempt to backup or restore.

Clipboard-20200626

The backups seem to be happening OK though. It started immediately after viewing but not changing ion any way the area under hidden settings (date of last backup).

I have tried to uninstall and reinstall the package but the error remains.

Versions

  • OS: Windows 10
  • Atom: 1.48.0 x64
  • Sync Settings 4.3.3
  • sync-settings-folder-location 1.0.8 (I am backing up to a local drive)

No idea where to start to troubleshoot this

The last backup time is shown as 2020-06-26T19:07:07.445Z The only nonstandard setting I have is extra glob: *.cson, file-templates/* Changes to the settings, deleting the backup files and starting again do not help

I even deleted the entire config.cson section after uninstalling the package – cson that looked like this before deleting “sync-settings”: extraFilesGlob: [ “.cson" "file-templates/” ] gistId: “” hiddenSettings: _lastBackupTime: “2020-06-26T19:07:07.445Z” personalAccessToken: “” useOtherLocation: true “sync-settings-folder-location”: folderPath: “X:\GDrive\Atom Sync”

then reinstalled – same error

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (12 by maintainers)

Most upvoted comments

That issue should be fixed by #515

I found a few more issues when backing up and restoring backups with folders. Sync-Settings didn’t allow syncing folders until recently so there could be more issues. Thanks for taking the time to report issues.

It would be better in the future if you open new issues for each issue so they are easier to track. Opening the issues on this repo are fine unless you know it is an issue with another package. That way more people can find the issue if they have a similar problem.

Confirm that problem resolved my end after the update. Thanks for great package.

Can I suggest that docs for one or both packages mention that globs of the form .cson,file-templates/ are allowed anyway to backup folders as people may not realise.

I am on Windows 10 but I am using Atom v1.49.0-beta0.

I’ll try a few more things tonight and probably release a new version to just get more information when that error occurs.