Skip to content
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

<Source> Tags Visible : Search & Replace Blocks Parsing Fails #2498

Closed
KagemniKarimu opened this issue Nov 30, 2024 · 8 comments
Closed

<Source> Tags Visible : Search & Replace Blocks Parsing Fails #2498

KagemniKarimu opened this issue Nov 30, 2024 · 8 comments
Labels
question Further information is requested stale

Comments

@KagemniKarimu
Copy link

KagemniKarimu commented Nov 30, 2024

Issue

When Aider is suggesting changes, as of recent upgrades to v 65.1, I no longer get properly formatted diffs when using bash prompts.

For example:

<source>
<<<<<<< SEARCH
# AI Assistant
export AIDER_VENV="$NAPATA_ENV/aider-env"
export MEDJAT_AIDER_HISTORY="$NAPATA_HOME/.aider.chat.history.md"
export MEDJAT_AIDER_INPUT="$NAPATA_HOME/.aider.input.history"
=======
# AI Assistant
export AIDER_VENV="$NAPATA_ENV/aider-env"  # This is correct as-is
export AIDER_HISTORY="$NAPATA_HOME/.aider.chat.history.md"
export AIDER_INPUT="$NAPATA_HOME/.aider.input.history"
>>>>>>> REPLACE
</source>

As you can see ^^ , source tags are visible in all my output, and thus formatting is not applied:

image

Version and model info

Aider v0.65.1
Model: claude-3-5-sonnet-20241022 with diff edit format, infinite output
Weak Model: claude-3-5-haiku-20241022
Git repo: .git with 525 files
Repo-map: using 1024 tokens, auto refresh
Linux fedora-workstation 6.11.8-300.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 14 20:37:39 UTC 2024 x86_64 GNU/Linux

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue.

This is because you are editing file which contain triple backticks. In this case aider can't use them to format its own output.

@KagemniKarimu
Copy link
Author

Ah, I see. I was wondering what could possibly be the cause and I knew Bash had something to do with it.
I was using it for godot script in previous versions so I didn't have this issue.

I am a huge fan of Aider and the consistency in your response time and the attention to detail is extremely admirable 💯 🥇 Thanks for all you do 🔥

@KagemniKarimu
Copy link
Author

@paul-gauthier Actually, I just verified that some of the files in question do not seem to contain triple backticks? Do you have any idea what else could be causing Aider to struggle with the formatting ?

@KagemniKarimu
Copy link
Author

In these cases Aider will show inactive formatting with backticks:
image
instead of the source tags being visible.

@paul-gauthier
Copy link
Collaborator

Can you show me the entire output? What does /settings tell you about the pretty setting?

@KagemniKarimu
Copy link
Author

Running /settings generates:

- pretty: True

Well - I went to start a new Aider session to generate some sample output. Of couse, rebooting Aider caused the issue to dissipate. 😄 Maybe the original theory about backticks is more comprehensive than thought (i.e. when a file breaks the formatting of the agent - it breaks the formatting for that entire chat session?). Admittedly, that was the longest session I ever did with aider, it spanned several files, received warning about unnecessary files in context, and was on-and-off at it for about 3-4 hrs.

I can provide more comprehensive logs from my Aider history if you would like to troubleshoot further.

@paul-gauthier paul-gauthier added the question Further information is requested label Dec 2, 2024
Copy link

I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, I will close it in 7 days.

Note: A bot script made these updates to the issue.

@github-actions github-actions bot added the stale label Dec 17, 2024
Copy link

I'm closing this issue because it has been stalled for 3 weeks with no activity. Feel free to add a comment here and we can re-open it. Or feel free to file a new issue at any time.

Note: A bot script made these updates to the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

2 participants