Repository navigation
[Bug]: Unable to use massCode v4. Sqlite3 errors. #623
Copy link
Copy link
Closed
Labels
Description
Describe the bug
I can't add a new snippet or add a new folder. I can open other windows like Settings.
Console output:
localhost:4321/folders/tree:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
localhost:4321/snippets/:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
localhost:4321/tags/:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
localhost:4321/folders/tree:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
localhost:4321/snippets/:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
localhost:4321/tags/:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
localhost:4321/folders/tree:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
index-Y0iWi8WW.js:64 HTTPError: Request failed with status code 500 Internal Server Error: GET http://localhost:4321/folders/tree
at a (index-Y0iWi8WW.js:64:9657)
at async uc._retry (index-Y0iWi8WW.js:64:11370)
at async Ia (index-Y0iWi8WW.js:64:18819)
at async k (Main-D4dg-pog.js:879:96512)
Ia @ index-Y0iWi8WW.js:64
localhost:4321/snippets/:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
index-Y0iWi8WW.js:64 Uncaught (in promise) HTTPError: Request failed with status code 500 Internal Server Error: GET http://localhost:4321/snippets/
at a (index-Y0iWi8WW.js:64:9657)
at async uc._retry (index-Y0iWi8WW.js:64:11370)
at async nr (index-Y0iWi8WW.js:64:21690)
at async B (Main-D4dg-pog.js:879:96582)
localhost:4321/tags/:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
index-Y0iWi8WW.js:64 HTTPError: Request failed with status code 500 Internal Server Error: GET http://localhost:4321/tags/
at a (index-Y0iWi8WW.js:64:9657)
at async uc._retry (index-Y0iWi8WW.js:64:11370)
at async q_ (index-Y0iWi8WW.js:64:63109)
q_ @ index-Y0iWi8WW.js:64
index.html#/:1 [Deprecation] Custom state pseudo classes have been changed from ":--radix-select-trigger-width" to ":state(radix-select-trigger-width)". See more here: https://github.com/w3c/csswg-drafts/issues/4805
I'm also seeing a strange error under Settings > Storage. If I try to delete the database I get the following error (I've installed the mac intel dmg):
Error invoking remote method 'db:clear': Error: dlopen(/Applications/massCode.app/Contents/Resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node, 0x0001): tried: '/Applications/massCode.app/Contents/Resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/massCode.app/Contents/Resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node' (no such file), '/Applications/massCode.app/Contents/Resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64'))
To reproduce
- Install massCode
- Open massCode
- Try to add a new snippet or create a new folder -> nothing happens.
- Things like Settings open
App Version and Architecture
4.2.0 (mac intel)
System info
macOS Sonoma 14.7.4 (intel)Validations
- Follow our Code of Conduct
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Reactions are currently unavailable
Activity
antonreshetov commentedon Oct 25, 2025
According to the error
better_sqlite3 (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')), you used an arm build to install on intel.nafarinha commentedon Oct 25, 2025
I tried installing massCode in two different ways:
brew install masscodehence my bug report, I installed the x86_64 version on an intel-based macOS but I'm getting an error related to arm64. I'm not experienced, but how could I open the arm64 UI in an intel-based macOS?
nafarinha commentedon Oct 25, 2025
@antonreshetov please could you reopen the issue? You missed a few details in the bug description, namely that I tested the x86-64 versions available on homebrew and the dmg in this repo, and not the arm64 version.
antonreshetov commentedon Oct 25, 2025
To be honest, I really regret giving in to the general "request" to use sqlite3 instead of a json structure as a database. And now I'm getting these errors saying that the native module didn't compile properly for the OS, etc. Nothing but problems. I'm already thinking about dropping sqlite3 to hell.
[-][Bug]: massCode opens the UI but nothing works on intel-based macOS[/-][+][Bug]: Unable to use massCode v4. Sqlite3 errors. [/+]antonreshetov commentedon Oct 26, 2025
Discuss - #624
rolandBoost commentedon Oct 28, 2025
I have the same issue. See my post: #627
Freshly install cause i'm new to massCode. tried 4.2.0 as 4.1.0.
macOS Sequoia 15.4.1 (intel)
antonreshetov commentedon Oct 28, 2025
Try the latest release https://github.com/massCodeIO/massCode/releases/tag/v4.2.1
rolandBoost commentedon Oct 28, 2025
Same issue. Can't create folders and snippets
Version 3.12.1 works
nafarinha commentedon Oct 28, 2025
Can confirm, the issues persist on 4.2.1.
antonreshetov commentedon Oct 28, 2025
Well, then I can't help you.
rolandBoost commentedon Oct 28, 2025
Lol. At least your honest ;-)
nafarinha commentedon Oct 28, 2025
Thanks anyway for your effort. I'll use the latest v3, hopefully you'll have an eureka moment and you'll smash the pesty bug.
antonreshetov commentedon Oct 29, 2025
I just updated the file in the release for macOS Intel. I tested it on my old Intel-based Mac and it worked. The only thing I encountered was that I had to select a different path for the storage in the application settings, and I still don't understand why.
Try - https://github.com/massCodeIO/massCode/releases/tag/v4.2.1
rolandBoost commentedon Oct 29, 2025
Hi,
The new release works.
I changed the storage path, removed the app and downloaded the latest one. This was a different one as yesterday. Installed the dmg and all is working now.
Many thanks for your effort!
t-franz commentedon Oct 29, 2025
I can confirm the last release (massCode-4.2.1.dmg) works after changing the storage path. Thank you!
nafarinha commentedon Oct 29, 2025
The Oct 29th update for version 4.2.1 also did the trick for me. massCode is now working on my intel mac. Thanks Anton for not giving up.
antonreshetov commentedon Oct 29, 2025
I don't know what kind of strange case you have. As I wrote earlier, I tested it on my old Intel-based Mac and everything worked. Several other people above also confirmed that the application works. In any case, I think I'll close this issue as fixed.
Did you change the storage path in app settings?
nafarinha commentedon Oct 29, 2025
The storage path I'm using is
~/massCode.I'm assuming it's the same bug that the other two users were also experiencing.
I just double checked and install the earlier 4.2.1 (
38fb4f) and I can replicate all the issues reported (the sqlite masscode.db is in the storage path).Then, I installed the 4.2.1 from Oct 29th (
10d77c) and it works without any of the problems reported.From my side it's fixed, you may go ahead and close the case. Thanks