Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad CPU type in executable #866

Open
thesyntaxinator opened this issue Aug 26, 2024 · 3 comments
Open

Bad CPU type in executable #866

thesyntaxinator opened this issue Aug 26, 2024 · 3 comments

Comments

@thesyntaxinator
Copy link

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
Copy link

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

@ronanmccoy
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants