Gruntfuggly / todo-tree

Use ripgrep to find TODO tags and display the results in a tree view
Other
1.46k stars 142 forks source link

Bad CPU type in executable #866

Open thesyntaxinator opened 3 months ago

thesyntaxinator commented 3 months ago

When starting Cursor (VSCode based IDE) on an Intel Mac after installing TODO Tree I get the below error: Todo-Tree: /bin/sh: /Applications/Cursor.app/Contents/Resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg: Bad CPU type in executable

Any ideas?

mgleavitt commented 2 months ago

I'm seeing the same thing

ronanmccoy commented 2 months ago

Also having the same issue in Cursor. Restarted both the extension and the Cursor IDE a couple times and I'm still getting the same error "Bad CPU type in executable".

"About Cursor" info:

Version: 0.40.4
VSCode Version: 1.91.1
Commit: 63dae81aea2c3fc079420fe72578a8eef26ba870
Date: 2024-09-05T02:52:05.660Z
Electron: 29.4.0
ElectronBuildId: undefined
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin x64 24.0.0

MacOS: Sequoia 15.0 Processor: 2.3Ghz 8-core intel core i9 TodoTree: v0.0.225

boodaah3d commented 1 week ago

On my mac mini m4, I got the same error but I figured out the work-around.

If you look in that binary directory, you'll see along side the rg binary is a rgArm binary.

In the settings, under Extensions > Todo Tree > Ripgrep, you can fill in Location of your version of ripgrep.

Enter: /Applications/Cursor.app/Contents/Resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rgArm

and you should be good to go! 😎