Skip to content

[Regression 1.122.0] Bundled ripgrep binary path changed, breaking extensions that resolve rg via vscode.env.appRoot (Todo-Tree, Roo Code/Zoo Code) #318691

Closed as not planned

Description

@Hibrix-net

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.122.0 (6a49527, x64, user setup)
  • OS Version: Windows 11 x64

Steps to Reproduce:

  1. Update VS Code to 1.122.0
  2. Open any extension that resolves VSCode's bundled ripgrep via vscode.env.appRoot
    (e.g. Todo-Tree, Roo Code / Zoo Code codebase indexing)
  3. Extension fails with: Failed to find vscode-ripgrep / Could not find ripgrep binary

Root cause: VSCode 1.122.0 changed the internal directory structure — the bundled rg.exe
is now located at:
resources/app/<commitHash>/resources/app/node_modules/@vscode/ripgrep-universal/bin/win32-x64/rg.exe

Previous versions placed it at:
resources/app/node_modules/@vscode/ripgrep/bin/win32-x64/rg.exe

Extensions resolving ripgrep via vscode.env.appRoot + standard relative paths no longer
find the binary. System-installed ripgrep (rg in PATH) is also not used as fallback.

Confirmed affected extensions: Todo-Tree, Zoo Code (Roo Code fork) codebase indexing
Workaround: None fully working. Installing ripgrep system-wide via Chocolatey
(choco install ripgrep) does not fix extensions that rely on the bundled binary path.

Activity

  1. Hibrix-net commented on May 28, 2026

    @Hibrix-net
    Author

    Update: found a workaround.

    The new path in 1.122.0 is:
    resources/app/<commitHash>/resources/app/node_modules/@vscode/ripgrep-universal/bin/win32-x64/rg.exe

    Workaround — copy the binary to the legacy path extensions expect:

    mkdir "%LOCALAPPDATA%\Programs\Microsoft VS Code<commitHash>\resources\app\node_modules@vscode\ripgrep\bin"
    copy "%LOCALAPPDATA%\Programs\Microsoft VS Code<commitHash>\resources\app\node_modules@vscode\ripgrep-universal\bin\win32-x64\rg.exe" "%LOCALAPPDATA%\Programs\Microsoft VS Code<commitHash>\resources\app\node_modules@vscode\ripgrep\bin\rg.exe"

    Restart VS Code after.

  2. bitray commented on May 28, 2026

    @bitray

    Same issue as me... And Zoo Code can not access the server

  3. lmartininwg commented on May 28, 2026

    @lmartininwg

    same issue here in macos

  4. tdanh2k commented on May 28, 2026

    @tdanh2k

    This happened to me, but inside a devcontainer

  5. gitenstuff commented on May 28, 2026

    @gitenstuff

    I confirm the same issue with todo-tree

  6. Praying commented on May 28, 2026

    @Praying

    Same Questions

  7. dmitrivMS commented on May 28, 2026

    @dmitrivMS
    Collaborator
  8. hediet commented on May 28, 2026

    @hediet
    Member

    This needs to be fixed in the extensions.
    An extension must not depend on the internal node_modules folder (or any internals/undocumented API) of VS Code, or it might break just like this one day.

    Until vscode offers ripgrep api support, extensions should ship their own ripgrep exec (e.g. by bundling @vscode/ripgrep-universal).

    This is unfortunate for Todo-Tree which does not seem to be maintained anymore, but also a good opportunity to use GitHub Copilot to create a new extension.

  9. 8 remaining items

  10. Franky1 commented on Jun 2, 2026

    @Franky1

    Unfortunately you have to add the full absolute path to the ripgrep location setting.
    It does not work to just add rg, even if ripgrep is in your PATH settings.
    That means it isn’t platform-independent nor device-independent.

  11. Rafdal commented on Jun 4, 2026

    @Rafdal

    I've fixed the issue in Ubuntu 24.04 installing the ripgrep package systemwide and configuring the Todo-Tree extension to use it.

    First, install the package:

    sudo apt update && sudo apt install ripgrep

    Run the following command to find the exact package location after installation:

    which rg

    Then, add the following line in your VSCode settings.json file with the path returned by the previous command, in my case:

    "todo-tree.ripgrep.ripgrep": "/usr/bin/rg"

    VSCode shouldn't show the error again after restart.

    This worked for me, thanks!!!

  12. nigelp commented on Jun 4, 2026

    @nigelp

    Ran into this this morning. (Windows 11) Searched my system for rg.exe and found a bunch of them. Added C:\Users\USERNAME\AppData\Local\Programs\cursor\resources\app\node_modules\@vscode\ripgrep\bin\rg.exe to the ripgrep location setting in VSCode and all is well again.

    Thanks for this. I'm on Windows 10. Any idea how I can fix this location issue? I found my location at C:\Users\User\AppData\Local\Microsoft\WinGet\Links\rg.exe, but I have no idea how to update the vscode location setting. Thanks.

  13. Franky1 commented on Jun 4, 2026

    @Franky1

    nigelp See my comment above:
    #318691 (comment)

  14. nigelp commented on Jun 4, 2026

    @nigelp

    Thanks very much. Claude actually gave me a symlink kludge workaround script, which seems to have fixed the problem.

  15. ch097711 commented on Jun 5, 2026

    @ch097711

    for vscode 1.123.0, Ubuntu 22.04

    sudo mkdir -p /usr/share/code/resources/app/node_modules/@vscode/ripgrep/bin

    sudo ln -s /usr/share/code/resources/app/node_modules/@vscode/ripgrep-universal/bin/linux-x64/rg /usr/share/code/resources/app/node_modules/@vscode/ripgrep/bin/rg

    work for roo code, kilo code

  16. Hibrix-net commented on Jun 5, 2026

    @Hibrix-net
    Author

    Roo code FIX For mac os M series (VS code Version: 1.122.1)

    Make directory mkdir -p "/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/@vscode/ripgrep/bin"

    link ripgrep from darwin-arm64 to new fodler ln -s "/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/@vscode/ripgrep-universal/bin/darwin-arm64/rg" "/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/@vscode/ripgrep/bin/rg"

    Don't use Roo Code anymore, it's archived. Use the actively maintained fork, Zoo Code, instead: https://github.com/Zoo-Code-Org/Zoo-Code

  17. 3750gustavo commented on Jun 5, 2026

    @3750gustavo

    Roo code FIX For mac os M series (VS code Version: 1.122.1)
    Make directory mkdir -p "/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/@vscode/ripgrep/bin"
    link ripgrep from darwin-arm64 to new fodler ln -s "/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/@vscode/ripgrep-universal/bin/darwin-arm64/rg" "/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/@vscode/ripgrep/bin/rg"

    Don't use Roo Code anymore, it's archived. Use the actively maintained fork, Zoo Code, instead: https://github.com/Zoo-Code-Org/Zoo-Code

    Does zoo-code brought back the xml tool call suport? I am stuck on a old build of roocode because of that

  18. Hibrix-net commented on Jun 5, 2026

    @Hibrix-net
    Author

    Roo code FIX For mac os M series (VS code Version: 1.122.1)
    Make directory mkdir -p "/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/@vscode/ripgrep/bin"
    link ripgrep from darwin-arm64 to new fodler ln -s "/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/@vscode/ripgrep-universal/bin/darwin-arm64/rg" "/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/@vscode/ripgrep/bin/rg"

    Don't use Roo Code anymore, it's archived. Use the actively maintained fork, Zoo Code, instead: https://github.com/Zoo-Code-Org/Zoo-Code

    Does zoo-code brought back the xml tool call suport? I am stuck on a old build of roocode because of that

    Yes, that's been addressed in the latest releases. Please migrate to Zoo Code, Roo Code is no longer an option.

  19. nigelp commented on Jun 12, 2026

    @nigelp

    The trouble with all of this is I have to repeat whatever fix I use every time VS Code updates. So I've now disabled updates, which is not an ideal situation, but I'm sick to death of having to deal with this problem.

  20. thatmacguy commented on Jun 14, 2026

    @thatmacguy

    I ran into the same issue on macOS (Apple Silicon) with VS Code 1.124.2 and Roo Code 3.54.0.
    In my case, Roo would hang indefinitely at "API Request..." for any workspace, and the Developer Console showed:
    Error: Could not find ripgrep binary
    The existing discussion about VS Code's ripgrep layout changes pointed me in the right direction, so I dug a little further into Roo's extension code to understand what it was looking for.
    It appears Roo is checking for a ripgrep binary directly under:
    node_modules/@vscode/ripgrep/bin/rg
    However, my VS Code installation contains:
    node_modules/@vscode/ripgrep/bin/darwin-arm64/rg
    The binary exists and is executable, but there is no bin/rg at the location Roo expects.
    As a test, I created a symlink:
    node_modules/@vscode/ripgrep/bin/rg
    →
    node_modules/@vscode/ripgrep/bin/darwin-arm64/rg
    After reloading the VS Code window, Roo immediately started working normally and was able to analyze project files again.
    I'm not certain whether this affects all Apple Silicon installations or only some VS Code versions, but hopefully the path difference helps narrow down the root cause.

  21. Hibrix-net commented on Jun 15, 2026

    @Hibrix-net
    Author

    I ran into the same issue on macOS (Apple Silicon) with VS Code 1.124.2 and Roo Code 3.54.0. In my case, Roo would hang indefinitely at "API Request..." for any workspace, and the Developer Console showed: Error: Could not find ripgrep binary The existing discussion about VS Code's ripgrep layout changes pointed me in the right direction, so I dug a little further into Roo's extension code to understand what it was looking for. It appears Roo is checking for a ripgrep binary directly under: node_modules/@vscode/ripgrep/bin/rg However, my VS Code installation contains: node_modules/@vscode/ripgrep/bin/darwin-arm64/rg The binary exists and is executable, but there is no bin/rg at the location Roo expects. As a test, I created a symlink: node_modules/@vscode/ripgrep/bin/rg → node_modules/@vscode/ripgrep/bin/darwin-arm64/rg After reloading the VS Code window, Roo immediately started working normally and was able to analyze project files again. I'm not certain whether this affects all Apple Silicon installations or only some VS Code versions, but hopefully the path difference helps narrow down the root cause.

    As I said above: "Don't use Roo Code anymore, it's archived. Use the actively maintained fork, Zoo Code, instead: https://github.com/Zoo-Code-Org/Zoo-Code"

  22. nigelp commented on Jun 23, 2026

    @nigelp

    Thanks very much. Very clear guide. :)

  23. Swor71 commented on Jul 4, 2026

    @Swor71

    For Todo-tree, I found that you don't have to copy the executable, instead just go to vscode settings, find Todo-tree › Ripgrep: Ripgrep setting and simply point it to the new location.

  24. locked and limited conversation to collaborators on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*caused-by-extensionIssue identified to be caused by an extension

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions