amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

[BUG] Unexpected read index errors

Open mr-lee opened this issue 1 year ago • 2 comments

Image

The tool seems to self-recover - but these look worth looking into.

mr-lee avatar Mar 23 '25 21:03 mr-lee

Any steps to reproduce?

aseemxs avatar Mar 26 '25 20:03 aseemxs

This happens to me when doing refactoring/larger amounts of code.

My workaround is to type: after removing lines, ensure you adjust the start line of your next read

We should probably add to both the fs_write and fs_read tools a description of the effects of adding/removing/editing lines and that line numbers will adjust, and have it take into account both added and removed lines.

We could also have the results of the fs_write tool including the number of lines added/removed and where, to help the LLM understand how the files are moving around.

jsamuel1 avatar May 03 '25 23:05 jsamuel1