Describe the bug
Description
When upgrading from MassCode v3.x to v4.7.1 on Windows 11, the installer overwrites the existing massCode.db database file located at the same library path, resulting in complete data loss. No backup, migration, or warning prompt was presented during installation.
Two years of code snippets were wiped out in seconds. This was devastating.
Steps to Reproduce
- Have MassCode v3.x installed with an existing library at a custom path (or default path)
- Confirm the library path contains a valid
massCode.db with user data
- Download and run the MassCode v4.7.1 installer (
.exe) from GitHub
- Proceed with default installation, do not modify the library path
- Launch MassCode v4.7.1
Expected Behavior
The installer should either:
- Detect the existing database and offer a migration option, or
- Prompt the user to back up the old database before proceeding, or
- Create a backup (e.g.,
massCode.db.backup or massCode_old.db) before overwriting
Actual Behavior
The existing massCode.db was silently overwritten with a new, empty database. No warning, no backup, no migration.
Environment
| Item |
Details |
| OS |
Windows 11 (22H2 / 23H2) |
| Old MassCode version |
3.x.x (exact minor version not remembered) |
| New MassCode version |
4.7.1 |
| Library path (both old and new) |
D:\MyCodeBase_Local\massCode |
| Installation method (old) |
Standard installer, default path |
| Installation method (new) |
.exe installer downloaded from GitHub releases, default installation, library path unchanged |
Recovery Attempts (unsuccessful)
- Windows 11 Recycle Bin
- Everything full disk search (
massCode.db, massCode, .db)
- Manual search in Documents, AppData, ProgramData
- EaseUS paid data recovery software
Additional Context
- No backup or migration prompt was shown during installation
- No third-party backup tools were used (e.g., Windows Backup, File History)
- The user was not aware that upgrading would destroy existing data
Suggested Fix
At minimum, the installer should:
- Detect an existing
massCode.db at the target library path before overwriting
- Display a clear warning
- Offer to create a backup (e.g., copy to
massCode.db.pre-v4)
- Optionally, provide migration logic from v3.x schema to v4.x
Severity
Critical – Permanent data loss for users upgrading without manual backup.
To reproduce
- Have MassCode v3.x installed with an existing library at
D:\MyCodeBase_Local\massCode (contains old massCode.db with user data)
- Download and run MassCode v4.7.1 installer (.exe) from GitHub Releases
- Proceed with default installation, do not modify the library path
- Launch MassCode v4.7.1
- Observe that the library is now empty - all previous code snippets are gone
App Version and Architecture
4.7.1 (x64)
System info
System:
OS: Windows 11 10.0.22631
CPU: (32) x64 AMD Ryzen 9 7945HX with Radeon Graphics
Memory: 4.31 GB / 15.69 GB
Validations
Describe the bug
Description
When upgrading from MassCode v3.x to v4.7.1 on Windows 11, the installer overwrites the existing
massCode.dbdatabase file located at the same library path, resulting in complete data loss. No backup, migration, or warning prompt was presented during installation.Two years of code snippets were wiped out in seconds. This was devastating.
Steps to Reproduce
massCode.dbwith user data.exe) from GitHubExpected Behavior
The installer should either:
massCode.db.backupormassCode_old.db) before overwritingActual Behavior
The existing
massCode.dbwas silently overwritten with a new, empty database. No warning, no backup, no migration.Environment
D:\MyCodeBase_Local\massCode.exeinstaller downloaded from GitHub releases, default installation, library path unchangedRecovery Attempts (unsuccessful)
massCode.db,massCode,.db)Additional Context
Suggested Fix
At minimum, the installer should:
massCode.dbat the target library path before overwritingmassCode.db.pre-v4)Severity
Critical – Permanent data loss for users upgrading without manual backup.
To reproduce
D:\MyCodeBase_Local\massCode(contains old massCode.db with user data)App Version and Architecture
4.7.1 (x64)
System info
System: OS: Windows 11 10.0.22631 CPU: (32) x64 AMD Ryzen 9 7945HX with Radeon Graphics Memory: 4.31 GB / 15.69 GBValidations