massCode icon indicating copy to clipboard operation
massCode copied to clipboard

[Bug]: Snippets not showing stored to Google Drive

Open bencodesall opened this issue 3 years ago • 1 comments

Describe the bug

When I open massCode there is only the empty default folder. I've looked on GoogleDrive and the db.json file is there and appears to contain my snippets.

I've seen this issue a while back running locally, but it had to do with some backup.db folder/file or something-or-other in the storage directory being saved, deleted and pasted back with rename. Can't remember exactly.

I can confirm that the db.json file contains the snippets, here's the first part of the file:

{
  "folders": [
    {
      "id": "Aohk4j-d",
      "name": "Default",
      "defaultLanguage": "typescript",
      "parentId": null,
      "isOpen": false,
      "isSystem": false,
      "createdAt": 1657686236199,
      "updatedAt": 1657686236199
    },
    {
      "name": "Default Starters",
      "parentId": null,
      "isOpen": false,
      "isSystem": false,
      "defaultLanguage": "plain_text",
      "id": "mzkIGdBN",
      "createdAt": 1658721647755,
      "updatedAt": 1658721674180
    },
    {
      "name": "React",
      "parentId": null,
      "isOpen": false,
      "isSystem": false,
      "defaultLanguage": "plain_text",
      "id": "wYkgo1v0",
      "createdAt": 1659100654501,
      "updatedAt": 1659100670449
    },
    {
      "name": "TypeScript",
      "parentId": null,
      "isOpen": false,
      "isSystem": false,
      "defaultLanguage": "typescript",
      "id": "5WmisoU6",
      "createdAt": 1661476268571,
      "updatedAt": 1661476285911
    },
    {
      "name": "Storybook-TS",
      "parentId": null,
      "isOpen": false,
      "isSystem": false,
      "defaultLanguage": "typescript",
      "id": "zVAFCEK9",
      "createdAt": 1661490808162,
      "updatedAt": 1661490834640
    }
  ],
  "snippets": [
    {
      "isDeleted": false,
      "isFavorites": false,
      "folderId": "mzkIGdBN",
      "tagsIds": [],
      "description": null,
      "name": "Basic Arrow Function",
      "content": [
        {
...
image

To reproduce

  1. Open massCode ...
  2. look for snippets ...
  3. See no snippets ...

SYSTEM INFO: massCode: 3.4.1 Electron: 16.2.3 Chrome: 96.0.4664.174 Node.js: 16.9.1 V8: 9.6.180.23-electron.0 OS: Darwin arm64 21.6.0

Version

3.4.1

OS

12.5.1

Validations

bencodesall avatar Sep 15 '22 19:09 bencodesall

Moved to local storage and it works. But I know I've had a similar issue with local storage a ways back.

bencodesall avatar Sep 22 '22 00:09 bencodesall