You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SOLVED] Global Search and Replace doesn't work; node.js spawn ENOENT error #1907
That's odd, vscode-ripgrep is supposed to download ripgrep as part of the postinstall. When you installed code-server were there any errors about downloading rg?
Something that might work to fix it would be to try running yarn in the vscode-ripgrep directory and see if it downloads rg.
I installed it and simlinked rg inside the bin dir /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/node_modules/vscode-ripgrep/bin
That makes sense! It might make sense to try and fix this on our end even if it's an upstream issue since we list FreeBSD in our install script and docs. Or possibly we can get a PR merged upstream.
Yeah I looked into that actually we should be easy to do at this side as a post yarn install (npm is not working for me but I assume it would be the same) that said I was actually gonna submit a GHI on MS side and point to the port
Activity
code-asher commentedon Jul 24, 2020
That's odd,
vscode-ripgrepis supposed to download ripgrep as part of the postinstall. When you installed code-server were there any errors about downloadingrg?Something that might work to fix it would be to try running
yarnin thevscode-ripgrepdirectory and see if it downloadsrg.Re-installing code-server might also work.
mike-pt commentedon Jul 25, 2020
I had troubles with npm but yearn worked fine no errors, also search and replace work fine infile just not global.
I'll try the suggestion
mike-pt commentedon Jul 25, 2020
The bin folder was empty but running yarn (and yarn instal) didn't download it either:
I wonder if it cause there's no binary for FreeBSD
mike-pt commentedon Jul 25, 2020
Yeah I think that might be it:
https://github.com/microsoft/ripgrep-prebuilt/releases/tag/v12.1.1
mike-pt commentedon Jul 25, 2020
There's a port though :)
https://www.freshports.org/textproc/ripgrep/
I installed it and simlinked rg inside the bin dir
/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/node_modules/vscode-ripgrep/bin[-]Global Search and Replace doesn't work; node.js spawn ENOENT error[/-][+][SOLVED] Global Search and Replace doesn't work; node.js spawn ENOENT error[/+]code-asher commentedon Jul 27, 2020
That makes sense! It might make sense to try and fix this on our end even if it's an upstream issue since we list FreeBSD in our install script and docs. Or possibly we can get a PR merged upstream.
mike-pt commentedon Jul 27, 2020
Yeah I looked into that actually we should be easy to do at this side as a post yarn install (npm is not working for me but I assume it would be the same) that said I was actually gonna submit a GHI on MS side and point to the port
nhooyr commentedon Dec 8, 2020
Should be fixed now!