todo-tree icon indicating copy to clipboard operation
todo-tree copied to clipboard

Bad CPU type in executable

Open thesyntaxinator opened this issue 1 year ago • 3 comments

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?

thesyntaxinator avatar Aug 26 '24 06:08 thesyntaxinator

I'm seeing the same thing

  • Cursor: v0,40,4
  • Todo Tree: v0.0.226
  • macOS: Sonoma 14.6.1
  • MacBook Pro: 2020 (stop laughing!) w/16GB Screenshot 2024-09-18 at 3 40 43 PM

mgleavitt avatar Sep 18 '24 22:09 mgleavitt

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

ronanmccoy avatar Sep 20 '24 06:09 ronanmccoy

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! 😎

boodaah3d avatar Nov 18 '24 00:11 boodaah3d