Open Ruin0x11 opened 4 years ago
I tested with the following:
find-file-noselect-1: File is not readable:...
counsel-rg
returns results for the second file, while for the first file, a single Permission denied (os error 13)
is shown.
This behavior seems correct to me.
This is my setup:
counsel-rg
in a folder with one large accessible file and one directory will all access permissions revoked.Some fancy additional flags you want to tell us about? Post the corresponding rg ...
invocation as well please.
counsel-rg-base-command
is "rg --with-filename --no-heading --line-number --color never %s ."
, if that's what you mean.
When I run rg
standalone from cmd
, this is the output:
C:\Users\kuzuki\build\test>rg HOP3_at
./zxc: アクセスが拒否されました。 (os error 5)
source.hsp
8204: goto *HOP3_at
8234:*HOP3_at
I don't have RIPGREP_CONFIG_PATH
set in my environment.
If
rg
called bycounsel-rg
returns an error code, it will discard any incremental results it found and displayError code 2
instead, even if it found matches for files it did have access to.This usually happens if some of the files in the
rg
directory cannot be accessed byrg
because of permissions issues on some subset of the files. However I can still userg
on the console and get a list of valid results anyways (interspersed with error messages). You can even see these incremental results incounsel-rg
so long as it's still searching, but it discards them all when it finishes because of the error. Now a single unreadable file in the entire project can rendercounsel-rg
inoperable.