paul-gauthier / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
12.72k stars 1.23k forks source link

Highlighting breaks for unclear reasons #773

Closed mikehearn closed 19 hours ago

mikehearn commented 2 days ago

Issue

It was working and then, suddenly, it wasn't. But aider can still extract patches and do the work - it's just not highlight output properly, on neither the web nor console versions. Maybe it's related to the files I added to the chat? Restarting doesn't help.

image image

Version and model info

Aider v0.41.0 Models: claude-3-5-sonnet-20240620 with diff edit format, weak model claude-3-haiku-20240307 Git repo: .git with 2,041 files

paul-gauthier commented 2 days ago

Ya, this can happen if the file you are editing contains triple-backticks. Aider has to switch to another fencing mechanism, which won't render pretty in the chat.

paul-gauthier commented 19 hours ago

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.