-
Notifications
You must be signed in to change notification settings - Fork 3.6k
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Editing does not work on lines that contain \n #3650
Comments
Interesting! So it may be a claude problem to some extent. But actually @shubhamofbce it didn't really work with gpt-4o either, because gpt-4o deleted the newlines entirely (which was not requested). |
I see the problem now, It removed the newlines(\n) completely. I will take a look at this once i get some time. |
Awesome, thanks! |
I think this may also be fixed if @RajWorking can implement a |
Then we can assign this to @RajWorking and I will look into something else. |
This is being worked on by @RajWorking |
I am working on this. Thanks! |
@neubig - this issue is important to get fixed asap, imo. Earlier today I was running ~15 instances of the Aider bench (which previously also failed) and was wondering why the As raised in this very issue, the LLM (Sonnet) action:
OBSERVATION with error (sorry, but the formatting gets a bit disrupted here):
|
Ah, I see the issue with '\n'. But the indentation is actually correct? |
It was a formatting issue in the comment, changed some triple-backticks, looks little better now 😄 |
Is there an existing issue for the same bug?
Describe the bug
I have found an easy-to-reproduce error in our editing pipeline that should be a big win if we can fix it: editing seems to break on lines that contain
\n
.Here's an example:
Edit the file multiline_print.py to add a markdown link to https://github.com/All-Hands-AI/OpenHands around the word "OpenHands".
multiline_print.py.txt
Current OpenHands version
Installation and Configuration
make build; make run
Model and Agent
Operating System
Mac OS
Reproduction Steps
No response
Logs, Errors, Screenshots, and Additional Context
Part of #3231
The text was updated successfully, but these errors were encountered: