Open xiaoniu-578fa6bff964d005 opened 4 months ago
Describe the bug
rga --rga-adapters=zip --rga-accurate doesn't work for zip file on macOS.
rga --rga-adapters=zip --rga-accurate
To Reproduce
Attach example file: new.zip
Run command: RUST_LOG=debug rga --rga-adapters=zip --rga-accurate --rga-no-cache -l 2018 Output
rg: new.zip: preprocessor command failed: '"/opt/homebrew/bin/rga-preproc" "new.zip"': ------------------------------------------------------------------------------- [2024-03-06T16:00:29Z DEBUG ripgrep_all::config] Config: {"$schema":"./config.v1.schema.json","accurate":true,"adapters":["zip"],"cache":{"disabled":true},"custom_adapters":[]} [2024-03-06T16:00:29Z DEBUG ripgrep_all::preproc] path (hint) to preprocess: ".../test/new.zip" [2024-03-06T16:00:29Z DEBUG ripgrep_all::adapters] Chosen available adapters: zip [2024-03-06T16:00:29Z DEBUG ripgrep_all::preproc] Archive recursion depth: 0 [2024-03-06T16:00:29Z DEBUG ripgrep_all::preproc] mimetype: "application/octet-stream" [2024-03-06T16:00:29Z DEBUG ripgrep_all::preproc] Chose adapter 'postprocprefix' because of matcher Fast(FileExtension("default")) .../test/new.zip adapter: postprocprefix Error: during preprocessing Caused by: 0: run_adapter(.../test/new.zip) 1: No cache?
Screenshots If applicable, add screenshots to help explain your problem.
Operating System and Version macOS 14.2.1
Output of rga --version ripgrep-all 0.10.6
rga --version
Other related bug: aahancoc/tree_magic/issues/6 I find that mimetype is correct on Linux.
Describe the bug
rga --rga-adapters=zip --rga-accurate
doesn't work for zip file on macOS.To Reproduce
Attach example file: new.zip
Run command: RUST_LOG=debug rga --rga-adapters=zip --rga-accurate --rga-no-cache -l 2018 Output
Screenshots If applicable, add screenshots to help explain your problem.
Operating System and Version macOS 14.2.1
Output of
rga --version
ripgrep-all 0.10.6Other related bug: aahancoc/tree_magic/issues/6 I find that mimetype is correct on Linux.