Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] ripgrep patch in vscode package breaks some extensions depending on @vscode/ripgrep
@ 2024-11-08 17:30 loukamb
  0 siblings, 0 replies; only message in thread
From: loukamb @ 2024-11-08 17:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1813 bytes --]

New issue by loukamb on void-packages repository

https://github.com/void-linux/void-packages/issues/52958

Description:
### Is this a new report?

Yes

### System Info

Void 6.11.6_1 x86_64 GenuineIntel uptodate rrFFFF

### Package(s) Affected

vscode-1.91.1_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

Extensions such as [Todo Tree](https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree) import [`@vscode/ripgrep`](https://github.com/microsoft/vscode-ripgrep) to perform searches across files. The tool should be able to locate `ripgrep` through the `@vscode/ripgrep` import.

### Actual behaviour

![Error](https://i.imgur.com/g4BF1xq.png)

[This error occurs because the vscode template patches out `@vscode/ripgrep` and points vscode to the locally installed `ripgrep`.](https://github.com/void-linux/void-packages/blob/adf5868b326b4d03376db0fecbadf0982cda3673/srcpkgs/vscode/template#L39) This works for vscode itself, but _not_ for extensions that make use of `@vscode/ripgrep`. The template cannot remove `@vscode/ripgrep` from installed extensions, so an alternative must be found.

### Steps to reproduce

1. Install latest version of `vscode`
2. Install [Todo Tree](https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree)
3. Observe as the extensions fails to locate `@vscode/ripgrep`

You can duct-tape fix this behavior by going in Todo Tree's settings and manually pointing the extention to `/usr/bin/rg`. However, in my opinion, this should _not_ happen, and this problem, in my experience, has only occurred on Void Linux and no other distribution. Other distributions that apply a similar patch to Void's (or sandboxes vscode) could also face this problem.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-08 17:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-08 17:30 [ISSUE] ripgrep patch in vscode package breaks some extensions depending on @vscode/ripgrep loukamb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).