cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Bad CPU type in executable -- vscode plugin: Todo-Tree

Open TanGuangZhi opened this issue 1 year ago • 2 comments

problem

problem screenshot image

problem content Todo-Tree: /bin/sh: /Applications/Cursor.app/Contents/Resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg: Bad CPU type in executable

operating system

image

Reproduction Steps

Install todo tree vscode plugin

extra info

image

TanGuangZhi avatar Sep 06 '24 10:09 TanGuangZhi

CleanShot 2024-09-11 at 10 09 17@2x Same issue

James-Lam avatar Sep 11 '24 02:09 James-Lam

Same issue, but It is working fine on VSCode. image image

windea avatar Sep 11 '24 12:09 windea

I also get this - only on my intel mac, everything works fine on my m1 mac (and everything works fine on vscode on both platforms)

elliotnash avatar Sep 18 '24 16:09 elliotnash

I have this issue on my Intel Mac as well

InSuperposition avatar Sep 18 '24 19:09 InSuperposition

I also have this issue on Intel MBP.

n00bvn avatar Sep 20 '24 15:09 n00bvn

I also have this issue on Intel MBP.

lonelygo avatar Sep 25 '24 05:09 lonelygo

I also have this issue on Intel MBP.

ghost avatar Oct 08 '24 01:10 ghost

I had this same issue on my Intel Mac and was able to work around it.

  1. In a terminal window run, which rg
  2. Copy the path location, for me it was /usr/local/bin/rg
  3. In your settings.json file add the following line:
"todo-tree.ripgrep.ripgrep": "{PATH_FROM_WHICH_COMMAND}"

After that you should be able to open the command palette and run Todo Tree Refresh and it should generate the tree for you.

jeffcap1 avatar Oct 08 '24 18:10 jeffcap1

I had this same issue on my Intel Mac and was able to work around it.

  1. In a terminal window run, which rg
  2. Copy the path location, for me it was /usr/local/bin/rg
  3. In your settings.json file add the following line:
"todo-tree.ripgrep.ripgrep": "{PATH_FROM_WHICH_COMMAND}"

After that you should be able to open the command palette and run Todo Tree Refresh and it should generate the tree for you.

Works for me on M2 (I had to install rg) and all the expected TODOs are listed. Thanks!

etlacker avatar Oct 12 '24 20:10 etlacker

Got the same problem..
but not sure how to open the settings.json? I have found the defaultSettings.json, but is read only.

Any idea? Am from MAC.

Vanals avatar Dec 31 '24 19:12 Vanals

Got the same problem.. but not sure how to open the settings.json? I have found the defaultSettings.json, but is read only.

Any idea? Am from MAC.

@Vanals easiest way is to use the command palette. You can open that with the keyboard shortcut command + shift + p, or using the Mac menu View > Command Palette. Once open you can then type in settings json and choose the search result that says Preferences: Open User Settings (JSON)

jeffcap1 avatar Jan 02 '25 00:01 jeffcap1