Describe the Bug
I get this error when on linux arm64:
2024-12-11 20:28:17.568 [error] TypeError: this.merkleClient.initWithRipgrepIgnore is not a function
at v.initializeMerkleTreeWithRipgrepIgnore (/vscode/cursor-server/bin/linux-arm64/a846435528b4b760494a836f96f0739889253530/extensions/cursor-retrieval/dist/main.js:2:831824)
at v.getServerStatus (/vscode/cursor-server/bin/linux-arm64/a846435528b4b760494a836f96f0739889253530/extensions/cursor-retrieval/dist/main.js:2:829724)
at v.startIndexingRepository (/vscode/cursor-server/bin/linux-arm64/a846435528b4b760494a836f96f0739889253530/extensions/cursor-retrieval/dist/main.js:2:832745)
Here’s the npm list for the linux arm64
@anysphere@ /vscode/cursor-server/bin/linux-arm64/a846435528b4b760494a836f96f0739889253530/extensions/cursor-retrieval/node_modules/@anysphere
├── @anysphere/file-service-linux-arm64-gnu@0.0.0-4cccd90d
└── @anysphere/file-service@0.0.0-4cccd90d
Steps to Reproduce
Install cursor on a devcontainer using linux on a arm64 mac
Notice that file indexing does not work
Expected Behavior
Indexing should work.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 0.43.6
VSCode Version: 1.93.1
Commit: a846435528b4b760494a836f96f0739889253530
Date: 2024-12-06T05:11:55.168Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.0.0
Additional Information
The issue is that you’re not linking the initWithRipgrepIgnore
in the linux binary but you are definitely doing it in the darwin
build – I can verify this by:
strings /Applications/Cursor.app/Contents/Resources/app/node_modules.asar.unpacked/@anysphere/file-service-darwin-universal/file_service.darwin-universal.node | grep -i initWithRipgrep
and the output is:
computeMerkleTreecomputeMerkleTreeWithRipgrepIgnoredeleteFilegetAllDirFilesToEmbedgetAllFilesgetHashesForFilesgetImportantPathsgetNextFileToEmbedgetNumEmbeddableFilesgetSplinegetSubtreeHashinitWithRipgrepIgnoreupdateFileupdateRootDirectoryFailed to get parent hashes: Failed to get commit data: Failed to get property with field `Failed to set property with field `Failed to unwrap exclusive reference of `` type from napi valuereasonmaybe_raw.egg-info.venv__pycache__.next.nuxt.cache.sass-cache.gradle.DS_Store.ipynb_checkpoints.pytest_cache.mypy_cache.lock-wscript.Python.yarn.yarn-cache.eslintcache.parcel-cache.cache-loader.nyc_output.node_repl_history.pnp.jsconstructorsrc/diff_client.rsdiffLines
vs the one installed on linux:
/vscode/cursor-server/bin/linux-arm64/a846435528b4b760494a836f96f0739889253530/extensions/cursor-retrieval/node_modules/@anysphere/node_modules/@anysphere/file-service-linux-arm64-gnu$ strings file_service.linux-arm64-gnu.node | grep -i "initWithRipgrep"
Does this stop you from using Cursor
No - Cursor works, but with this issue