Vscode: rg process taking up all my CPU

Created on 26 May 2020  路  8Comments  路  Source: microsoft/vscode




  • VSCode Version: 1.45.1
  • OS Version: MacOS Catalina 10.15.4

Steps to Reproduce:

  1. Install VScode
  2. Install Node

Wasn't sure where to put this

Something is taking up all my CPU through a process called rg
Screenshot 2020-05-26 at 16 19 26

I ran a sample of the process here

which appears to mention
/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg

So not sure how I can debug this further.

needs more info

Most helpful comment

Just to provide an update here I did disable "search.followSymlinks": false as per the doc above this seemed to have relieved my issue with long running rg processes. However I would like to point out with monorepos becoming more popular especially with lerna, should probably look to improving this process in the editor in future iterations.

All 8 comments

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

This is used by search, so either you triggered a text search or file search in vscode, or an extension did, and it's taking an extremely long time to complete. Do any tips in here help? https://github.com/microsoft/vscode/wiki/Search-Issues#slow-search-rg-running-for-a-long-time-or-consuming-lots-of-cpumemory

I too am experiencing this same issue on a mac os running catalina 10.15.5 where i will find 3 - 4 rg processes running high CPU usage and draining the battery. This is on VS Code version 1.45.1

Same here. rg process takes 100% cpu.
Osx 10.15.5
VScode: 1.45.1
image
image

Just to provide an update here I did disable "search.followSymlinks": false as per the doc above this seemed to have relieved my issue with long running rg processes. However I would like to point out with monorepos becoming more popular especially with lerna, should probably look to improving this process in the editor in future iterations.

"search.followSymlinks": false solved my issue too, thx

Same issue, same fix.

I can confirm, same issue and same solutions work

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shanalikhan picture shanalikhan  路  3Comments

DovydasNavickas picture DovydasNavickas  路  3Comments

omidgolparvar picture omidgolparvar  路  3Comments

sirius1024 picture sirius1024  路  3Comments

trstringer picture trstringer  路  3Comments