the_silver_searcher icon indicating copy to clipboard operation
the_silver_searcher copied to clipboard

ag just printing "truncated file: Success" when searching ~120M gzip files

Open Avinm opened this issue 6 years ago • 7 comments

Running ag -z "searchStr" file.gz results in just the output ag: truncated file: Success on some Unix systems (3.2.45-0.6 x86_64). Running the same search on the same file on OSX yields matches and line numbers as expected. What could be the issue?

Avinm avatar Jun 04 '18 08:06 Avinm

I've noticed this happens with ag-2.1 but not with ag-2.0.

Gautham avatar Aug 07 '18 06:08 Gautham

I'm also experiencing this. I will attempt to downgrade to 2.0 to see if it resolves the issue for me.

bjeanes avatar Aug 28 '18 03:08 bjeanes

Yep, 2.0 works. FWIW I was working off a build from master (as of today) building as per https://gist.github.com/steamedbuninvasion/68734672222ea181ca27e589a3ea6587 for AWS Linux. Doing a git checkout 2.0.0 and re-building resulted in a binary that searched compressed files correctly.

bjeanes avatar Aug 28 '18 04:08 bjeanes

I still experience this as well: I use version 2.1 on CentOS 6.

halloleo avatar Aug 23 '21 02:08 halloleo

@halloleo : I switched to using ripgrep to work around this. Seems to be more actively maintained.

Avinm avatar Aug 23 '21 18:08 Avinm

Still happening with version 2.2.0 on Ubuntu bullseye/sid.

GarrettAlbright avatar Jul 29 '22 20:07 GarrettAlbright

Still happening with version 2.2.0 on Ubuntu bullseye/sid.

Also running in that issue on Debian 10

Mazorius avatar Nov 03 '23 20:11 Mazorius