Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Snippets not showing stored to Google Drive #276

Open
3 tasks done
bencodesall opened this issue Sep 15, 2022 · 1 comment
Open
3 tasks done

[Bug]: Snippets not showing stored to Google Drive #276

bencodesall opened this issue Sep 15, 2022 · 1 comment

Comments

@bencodesall
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant