aider icon indicating copy to clipboard operation
aider copied to clipboard

Code gets added to the end of the file (main()) instead of inside the body of the code

Open lockmeister opened this issue 1 year ago • 1 comments

Issue

Fairly often, code gets inserted into the main function at the end of the program instead of where it should be in the body of the program.

Version and model info

Aider version: latest (also happened with the last few versions too) LLM: Claude Sonnet 3.5

lockmeister avatar Jul 27 '24 10:07 lockmeister

Thanks for trying aider and filing this issue. This doc may be helpful:

https://aider.chat/docs/troubleshooting/edit-errors.html

paul-gauthier avatar Jul 28 '24 10:07 paul-gauthier

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.

paul-gauthier avatar Jul 30 '24 16:07 paul-gauthier