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

node_modules/vscode-ripgrep/bin/rg ENOENT #42219

Closed
aliev opened this issue Jan 26, 2018 · 22 comments
Closed

node_modules/vscode-ripgrep/bin/rg ENOENT #42219

aliev opened this issue Jan 26, 2018 · 22 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug search Search widget and operation issues verified Verification succeeded
Milestone

Comments

@aliev
Copy link

aliev commented Jan 26, 2018

/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1225 ERR spawn /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg ENOENT: Error: spawn /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg ENOENT, at exports._errnoException (util.js:1050:11), at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32), at onErrorNT (internal/child_process.js:367:16), at _combinedTickCallback (internal/process/next_tick.js:80:11), at process._tickCallback (internal/process/next_tick.js:104:9)

  • VSCode Version: 1.19.2
  • OS Version: OSX 10.13.3
@roblourens
Copy link
Member

Can you tell me whether a file exists there at /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg? And what are the file attributes (ls -l '/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg')?

@roblourens roblourens added the info-needed Issue requires more information from poster label Jan 26, 2018
@aliev
Copy link
Author

aliev commented Jan 26, 2018

@roblourens

➜  server git:(feature/SS-1529) ✗ ls -l /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg
-rwxr-xr-x@ 1 aliev  staff  2469424 Jan 10 08:08 /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg
➜  server git:(feature/SS-1529) ✗

@roblourens
Copy link
Member

When do you see that error? Does cmd+p work? Does text search work?

@aliev
Copy link
Author

aliev commented Jan 26, 2018

When I'm trying to use cmp+p search I see error:

screen shot 2018-01-27 at 12 26 26 am

Text search works. Also search (Shift+CMD+F works)

Go to symbol works but shows the same error.

@roblourens
Copy link
Member

roblourens commented Jan 26, 2018

@chrmarti Any ideas?

@majg0
Copy link

majg0 commented Jan 27, 2018

+1 also having this since a week or two.

Only appears in my C# project (javascript works fine).

Works in insiders build.

@jasonlfunk
Copy link

I am also having this issue.

ls -l /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg
-rwxr-xr-x@ 1 jasonlfunk  staff  2469440 Jan 25 02:52 /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg

@yaronlevi
Copy link

+1 For having this problem

@roblourens
Copy link
Member

Did it just show up after the 1.19.3 update? Can you try reinstalling or, see whether it works in Insiders?

@roblourens
Copy link
Member

And the binary itself seems to exist with the correct permissions. Please try just running it from the command line. /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg

@jasonlfunk
Copy link

It just started happening recently, last few days. I am running 1.19.3. I don't know for sure if it was because of the update.

Running the command manually seems to work fine. (Though, at the moment, the error has went away for me. I can't get it to trigger.)

@triestpa
Copy link

This is happening to me too, but only within multi-root workspaces. The CMD-P file search prompt is having trouble finding files and displays the node_modules/vscode-ripgrep/bin/rg ENOENT error whenever a file is opened using the CMD-P prompt. If I open the project directory on its own (instead of opening code using the .code-workspace file), the error does not appear.


macOS High Sierra - 10.13.2
VSCode - 1.19.3

@chrmarti
Copy link
Contributor

Is anyone seeing this on another OS/version than High Sierra?

Since ls -l is showing an @, could everyone run it with -@ to show extended attributes:

ls -l -@ /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg

@majg0
Copy link

majg0 commented Jan 29, 2018

Using High Sierra

> ls -l -@ /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg
-rwxr-xr-x  1 mg  staff  2469440 Jan 25 02:52 /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg

Although...

> ls -l /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg
-rwxr-xr-x  1 mg  staff  2469440 Jan 25 02:52 /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg

I.e. I don't have any extended file attributes.

@jasonlfunk
Copy link

jasonlfunk commented Jan 29, 2018

ls -l -@ /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg
-rwxr-xr-x@ 1 jasonlfunk  staff  2469440 Jan 25 02:52 /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg
        com.apple.quarantine         57

Looks like we might have found the cause.

I'm on 10.13.2.

@chrmarti
Copy link
Contributor

Does removing that attribute help?

sudo xattr -d com.apple.quarantine /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/node_modules/vscode-ripgrep/bin/rg

@hryanjones
Copy link

Just mentioning that I'm also getting this same problem with the same symptoms on Ubuntu 16.04:

  • can ls that file and it seems to have appropriate permissions
  • can run the file
  • this only occurs when opening from a .code-workspace file
    • I'm just going to work-around by opening differently for now
  • VSCode Version 1.19.3

@roblourens
Copy link
Member

roblourens commented Jan 31, 2018

@hryanjones Does this affect quickopen (ctrl+p), or search (ctrl+shift+f) or both? (please check that it's getting results from all files, not just open ones).

How many folders are included in your workspace?

@hryanjones
Copy link

Only affects quickopen, not search and 719 directories (excluding anything in soft links).

$ find src -type d | wc -l
719

@roblourens
Copy link
Member

roblourens commented Jan 31, 2018

Thanks, I just meant, how many folders are in your code-workspace file? Because we spawn a separate rg process for each one, and that's the only interesting difference between how quickopen and text search use rg that I can think of.

@hryanjones
Copy link

Ah, I hadn't actually inspected that file. When I did I found that there were 4 and also some of those folders no longer exist. When I deleted the ones that don't exist it now appears to be working fine.

@roblourens
Copy link
Member

roblourens commented Jan 31, 2018

Oh, I can repro with a workspace folder that doesn't exist. Thanks!

@roblourens roblourens added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Jan 31, 2018
@chrmarti chrmarti self-assigned this Feb 1, 2018
@chrmarti chrmarti added this to the February 2018 milestone Feb 2, 2018
@roblourens roblourens added the search Search widget and operation issues label Feb 15, 2018
@jrieken jrieken added the verified Verification succeeded label Mar 1, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug search Search widget and operation issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

9 participants