Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

htm extension causes errors in pandoc adapter #230

Open
vvvvvx opened this issue Jun 4, 2024 · 0 comments
Open

htm extension causes errors in pandoc adapter #230

vvvvvx opened this issue Jun 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@vvvvvx
Copy link

vvvvvx commented Jun 4, 2024

Describe the bug

when I run "rga -o --rga-adapters=pandoc search-key-words", a lots of failed msg occur like below:

rg: Documents/Documents/Personal/飞信/Misc/Space/tab/forward.htm: preprocessor command failed: '"/usr/bin/rga-preproc" "Documents/Documents/Personal/\xe9\xa3\x9e\xe4\xbf\xa1/Misc/Space/tab/forward.htm"':

/home/user/文档/Documents/Documents/Personal/飞信/Misc/Space/tab/forward.htm adapter: pandoc
/home/user/文档/Documents/Documents/Personal/飞信/Misc/Space/tab/forward.htm.txt adapter: postprocprefix
Unknown input format htm
Error: copying adapter output to stdout

Caused by:
0: subprocess: Command { std: "pandoc" "--from=htm" "--to=plain" "--wrap=none" "--markdown-headings=atx", kill_on_drop: false }
1: ExitStatus(unix_wait_status(5376))

To Reproduce

Attach example file:

Run command:
cmd: rga -o --rga-adapters=pandoc search-key-words

Output

rg: Documents/Documents/Personal/飞信/Misc/Space/tab/forward.htm: preprocessor command failed: '"/usr/bin/rga-preproc" "Documents/Documents/Personal/\xe9\xa3\x9e\xe4\xbf\xa1/Misc/Space/tab/forward.htm"':

/home/user/文档/Documents/Documents/Personal/飞信/Misc/Space/tab/forward.htm adapter: pandoc
/home/user/文档/Documents/Documents/Personal/飞信/Misc/Space/tab/forward.htm.txt adapter: postprocprefix
Unknown input format htm
Error: copying adapter output to stdout

Caused by:
0: subprocess: Command { std: "pandoc" "--from=htm" "--to=plain" "--wrap=none" "--markdown-headings=atx", kill_on_drop: false }
1: ExitStatus(unix_wait_status(5376))
Screenshots
image

If applicable, add screenshots to help explain your problem.

Operating System and Version
Artix Linux

Output of rga --version
ripgrep-all 0.10.6

@vvvvvx vvvvvx added the bug Something isn't working label Jun 4, 2024
@phiresky phiresky changed the title rg preprocessor command failed: '"/usr/bin/rga-preproc" htm extension causes errors in pandoc adapter Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant