I’m trying to get the explain code to run on PHP files. Cody will explain every file in the directory but one, which is about 8600 lines of PHP. I’ve tried to include the file explicitly and by opening the file and using using current file. Always responds with “No files found.”
I’ve tried specifying a smaller range in the file. Still fails.
All other files work as expected.
If I delete lines, I get a different response.
Along with “I don’t see any code context provided about an r.php file to analyze. Once you share the relevant code”
It works as expected when I cut the file down to 2,400 lines. That’s not a viable option since one function that I want to analyze in this script is about 4,000 lines long!
This is Golang Build #GO-243.21565.208, Cody plugin v7.1.0. I’ve tried Deep Cody and Claude 3.5 Sonnet. Both react the same. I’ve even tried renaming this particular file.
Additional note: when I try selecting text, Cody shows the bits with a line striking them out.
One fewer line and the strike goes away.
And hovering over the strike explains the issue:
That’s what eventually led me to understand what was happening. So the info is there, it just feels like the “No files found” tooltip should be updated.
Try not to inlude the entire file if you only need a part of it.
In the last images, I see two references to the same file ‘r.php’ here. Cody will count first the entire and tries counting the selected parts additionally.
Leave out the first file mention chip and only use the selected part.
I understand about retrying with less context. Please don’t miss the point about the bug. Cody shouldn’t say that a file isn’t found when it is found and it exceeds some internal size threshold. Cody shouldn’t say that a file isn’t found when you select only 18 lines from a large file.