You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Two edits to the same file are broken, if the first edit changes line numbers #6
Basically if there's two edits to the same file, and the first edit changes a number of lines (e.g. changes 3 lines into 2), the second edit doesn't seem to take this into account, and applies the changes wrongly.
P.S. What an amazing tool. It's incredible. Thank you!
actually, maybe the problem is that my autoformatter formatted a file after commit or something like this, which broke the editing. maybe the tool could automatically refresh the files
Thanks for trying out aider and for reporting the issue.
I haven't seen a problem like you are describing. It might help if you looked in .aider.chat.history.md and pulled out the part of the conversation where you had an issue. But I understand if you'd rather not share that data.
The tool does watch for edits to the files and always ensures that it passes the latest file contents to GPT.
Any chance you were changing the file in your editor at the same time GPT was typing a response back at you? There is a possible race condition if you change the file after GPT starts responding, but before it finishes sending you all its edits.
Activity
valyagolev commentedon May 23, 2023
actually, maybe the problem is that my autoformatter formatted a file after commit or something like this, which broke the editing. maybe the tool could automatically refresh the files
paul-gauthier commentedon May 24, 2023
Thanks for trying out aider and for reporting the issue.
I haven't seen a problem like you are describing. It might help if you looked in
.aider.chat.history.mdand pulled out the part of the conversation where you had an issue. But I understand if you'd rather not share that data.The tool does watch for edits to the files and always ensures that it passes the latest file contents to GPT.
Any chance you were changing the file in your editor at the same time GPT was typing a response back at you? There is a possible race condition if you change the file after GPT starts responding, but before it finishes sending you all its edits.
valyagolev commentedon May 24, 2023
sounds unlikely, but well, maybe? i'll try to reproduce / explore the logs if this happens again
paul-gauthier commentedon May 29, 2023
I'm going to close this issue for now. Please feel free to re-open or file a fresh issue if you're able to reproduce the problem.
aider: Added Gemfile for Jekyll site setup.