show command not work in fedora35
mylabzhen opened this issue · 2 comments
`Enter a vgrep command: grep "struct page {" ./
Index File Line Content
0 arch/microblaze/include/asm/io.h 14 #include <linux/mm.h> /* Get struct page {...} */
1 include/linux/mm_types.h 72 struct page {
2 tools/testing/radix-tree/regression1.c 48 struct page {
3 tools/testing/radix-tree/regression2.c 63 struct page {
4 tools/virtio/linux/kernel.h 37 struct page {
Enter a vgrep command: show 1
WARN[0026] strconv.Atoi: parsing "\x1b[32m72\x1b[m": invalid syntax`
[root@fedora linux]# echo $EDITOR
vim
[root@fedora linux]# rpm -qa | grep vgrep
vgrep-2.5.1-3.fc35.x86_64
Thanks for reaching out.
The issue has already been fixed with vgrep v2.6.0 (see #169). It's caused by a behavioral change in git - quite unfortunate.
The best workaround at the moment is to dnf install ripgrep
.
I'll consider creating a backport to release v2.5.2 for Fedora 35.
I created v2.5.6 (https://github.com/vrothberg/vgrep/releases/tag/v2.5.6) so that distribution can pick up the fixes. I'll try to bump it for F35.