Skip to content

[Bug]: Unable to use massCode v4. Sqlite3 errors.  #623

@nafarinha

Description

@nafarinha

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

  1. Install massCode
  2. Open massCode
  3. Try to add a new snippet or create a new folder -> nothing happens.
  4. Things like Settings open

App Version and Architecture

4.2.0 (mac intel)

System info

macOS Sonoma 14.7.4 (intel)

Validations

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