Skip to content

[Bug]: New Markdown Database Has Trashed All My Data - Zero Records - MacOS #681

Closed

Description

@rtpHarry

Describe the bug

I've just upgrade to the latest version (v4.6.0) and all my data has disappeared:

Image

The rollback doesn't go back to the old format, it attempts to migrate current data back, so I can't recover that way:

Image

I still have a massCode.db which I am hoping its going to pick it up again and I don't have to start fishing files out of backups:

Image

Rolled back to v4.4.0 and the sqlite database has sprung back into action and (mild panic over) my data has returned.

I tested clicking on the browse button for the markdown location and it was ok with that (eg no asking permission to access the directory).

Couldn't find any logs, except a binary format one in application support, which I couldn't read.

Guess we are in a tricky situation now if this is an Apple-only issue...?

To reproduce

  1. Upgrade to v4.6.0
  2. Open App
  3. Empty Data

App Version and Architecture

v4.6.0 (arm64)

System info

System:
    OS: macOS 26.3
    CPU: (16) arm64 Apple M4 Max
    Memory: 589.34 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh

Validations

Activity

  1. antonreshetov commented on Mar 9, 2026

    @antonreshetov
    Member

    fixes #684

  2. rtpHarry commented on Mar 10, 2026

    @rtpHarry
    Author

    I have tried upgrading again and it has not fixed it for me. Is there any config or further detail that could be useful?

    I installed v4.6.0 over the top of 4.4.0 and then did the sudo xattr -r -d com.apple.quarantine /Applications/massCode.app to make it runable, and first load, its still empty:

    Image

    Rolling back to v4.4.0 has worked still to restore things again.

  3. antonreshetov commented on Mar 10, 2026

    @antonreshetov
    Member

    Latest version is 4.7.1

  4. antonreshetov commented on Mar 10, 2026

    @antonreshetov
    Member

    Try to remove storage key in ~/Library/Application Support/massCode/v2/preferences.json

  5. rtpHarry commented on Mar 10, 2026

    @rtpHarry
    Author

    Sorry, yes I meant the 4.7.1.

    I think I glanced at this when I was flipping between tabs:

    Image

    OK I have gone into the json, removed the storage key.

    For debugging reference this is what it looked like before:

    {
    	"storagePath": "/Users/matthewharris/Library/CloudStorage/OneDrive-Personal/Documents2/massCode",
    	"apiPort": 4321,
    	"language": "en",
    	"theme": "auto",
    	"editor": {
    		"wrap": true,
    		"fontFamily": "SF Mono, Consolas, Menlo, Ubuntu Mono, monospace",
    		"fontSize": 12,
    		"tabSize": 2,
    		"trailingComma": "none",
    		"semi": false,
    		"singleQuote": true,
    		"highlightLine": false,
    		"highlightGutter": false,
    		"matchBrackets": false
    	},
    	"storage": {
    		"engine": "markdown",
    		"vaultPath": null
    	},
    	"markdown": {
    		"presentationScale": 1.3,
    		"codeRenderer": "highlight.js"
    	},
    	"backup": {
    		"path": "/Users/matthewharris/massCode/backups",
    		"enabled": true,
    		"interval": 6,
    		"maxBackups": 5,
    		"lastBackupTime": 1773140305834
    	},
    	"backupPath": "/Users/matthewharris/massCode/backups",
    	"screenshot": {
    		"background": false,
    		"gradient": [
    			"#D02F98",
    			"#9439CA"
    		],
    		"darkMode": true,
    		"width": 600
    	}
    }

    Installed 4.7.1, run the sudo command.

    Opened up and... GLORY! It has worked this time.

    Thanks for the tip.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions