hide-org / hide

🤖 Headless IDE for AI agents
https://hide.sh
MIT License
112 stars 5 forks source link

Possible bug in ListFiles when dealing with ico files #101

Closed prabhuteja12 closed 1 week ago

prabhuteja12 commented 1 week ago

Hi!

I have a project that contains a few .ico files, and creating the project files with them causes the error

Error reading file /doc/_static/favicon_old.ico: Failed to create lines from content: bufio.Scanner:
 token too long" projectId=...

I got around this by adding ignorePatterns = append(ignorePatterns, "*.ico") but I guess this needs to be fixed differently. The same project has a both of svg, pngs but they don't seem to cause any issues.

I don't know any Go to suggest fixes for this. But reporting this hoping that this is a simple fix.

Thanks!

artmoskvin commented 1 week ago

Hi! Thanks for reporting, I'm looking at it now.

prabhuteja12 commented 1 week ago

Thank you for the quick fix!

artmoskvin commented 1 week ago

@prabhuteja12 thanks again for reporting it! Let us know how it works. The current solution is more like a hotfix. We'll plan for a better solution tomorrow.

artmoskvin commented 1 week ago

@prabhuteja12 btw I started a Discord server today if you need more help or just want to chat :) https://discord.gg/xPqnDpjm