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

Terminal output in VSCode is broken #124

Closed
jankowtf opened this issue Jul 18, 2023 · 7 comments
Closed

Terminal output in VSCode is broken #124

jankowtf opened this issue Jul 18, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@jankowtf
Copy link

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

@paul-gauthier
Copy link
Collaborator

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

@paul-gauthier
Copy link
Collaborator

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.

@paul-gauthier paul-gauthier added the bug Something isn't working label Jul 19, 2023
@paul-gauthier
Copy link
Collaborator

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

@fahmad91
Copy link
Contributor

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

@paul-gauthier
Copy link
Collaborator

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?

@fahmad91
Copy link
Contributor

fahmad91 commented Dec 18, 2023

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.

@paul-gauthier
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants