paul-gauthier / aider

aider is AI pair programming in your terminal

Home Page:https://aider.chat/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terminal output in VSCode is broken

jankowtf opened this issue · comments

Hi there,

and first of: thanks a LOT for creating this awesome AI helper! It's really like having your senior developer live right in your Git repo - truly amazing!

I did notice, though, that the output in the VSCode terminal is "broken" in the sense that it repeatedly lists the same chunks of prose and code over and over again. I think it happens each time there's code involved:

image

Thanks for trying aider and reporting this issue.

You might want to try running with --no-pretty. The install instructions mention this helps in VSCode:
https://aider.chat/docs/install.html#add-aider-to-your-editor-optional

I asked aider to disable pretty if it detects that it is running inside a VSCode terminal.

I've merged a fix into the main branch. You can get it by installing the latest version from github:

python -m pip install git+https://github.com/paul-gauthier/aider.git

If you have a chance to try it, let me know if it works better for you.

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

@paul-gauthier Any plans for a permanenet fix for this?

As far as I can tell the problem is that vscode doesn't provide a fully capable terminal.

Aider should be turning off fancy output when run inside vscode. Is that not working for you?

As far as I can tell the problem is that vscode doesn't provide a fully capable terminal.

Aider should be turning off fancy output when run inside vscode. Is that not working for you?

hmmm... so it's a limitation in the vscode terminal vs aider. I was thinking it might be related to the rich library, so I was hoping it would be fixed soon.

aider does turn off the fancy output, which works as a workaround; however, it makes the output hard to read, so I'm not a big fan of it.

You can always run aider in a real terminal window beside your vscode window.