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

Binary file generation instead of plain text in python projects #13

Open
ileosebastian opened this issue Oct 3, 2024 · 2 comments
Open

Comments

@ileosebastian
Copy link

I used the npx ai-digest command and for some reason it is generating a binary file instead of a markdown file.

image

@khromov
Copy link
Owner

khromov commented Oct 4, 2024

👋 It sounds like the isBinaryFile check is failing on some file in your project:

const isBinary = await isBinaryFile(filePath);

Would you be able to create a minimal reproduction to figure out which file (and its extension) that is causing this? Potential culprit would be any binary files that you have in your project that are either generated or present in your project. You can also try "Open Anyway" and visually look for the binary file that gets incorrectly added.

Related to this, __pycache__ and other Python-specific artifacts are filtered out by default:

// Python

@khromov
Copy link
Owner

khromov commented Oct 9, 2024

@ileosebastian Did you manage to narrow it down to any specific file causing issues?

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