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

Ignore Office lock files #151

Open
pu-238 opened this issue Dec 29, 2022 · 1 comment
Open

Ignore Office lock files #151

pu-238 opened this issue Dec 29, 2022 · 1 comment

Comments

@pu-238
Copy link

pu-238 commented Dec 29, 2022

I've noticed that when I'm running RGA on a folder it's hitting the lock files created by Word when a file is open and the preprocessor fails.

Chapter 4/~$cture4.docx: preprocessor command failed: '"/usr/local/bin/rga-preproc" "Chapter 4/~$cture4.docx"':
-------------------------------------------------------------------------------
adapter: pandoc
couldn't unpack docx container: Did not find end of central directory signature
Error: subprocess failed: ExitStatus(unix_wait_status(16128))
-------------------------------------------------------------------------------
@phiresky
Copy link
Owner

phiresky commented Nov 22, 2023

You can exclude files with normal rg methods (.ignore, .gitignore or -g '!~$*').

I'll rename this issue since maybe we might want to exclude files office lock files starting with ~$ by default. But maybe not, not sure.

Also not sure if this issue still happens with a current pandoc version.

@phiresky phiresky changed the title Ignore Feature Ignore Office lock files Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants