Skip to content

Terminal output in VSCode is broken #124

Closed

Description

@jankowtf

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

Activity

  1. paul-gauthier commented on Jul 18, 2023

    @paul-gauthier
    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

  2. paul-gauthier commented on Jul 19, 2023

    @paul-gauthier
    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.

  3. paul-gauthier commented on Jul 20, 2023

    @paul-gauthier
    Collaborator

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

  4. fahmad91 commented on Dec 18, 2023

    @fahmad91
    Contributor

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

  5. paul-gauthier commented on Dec 18, 2023

    @paul-gauthier
    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?

  6. fahmad91 commented on Dec 18, 2023

    @fahmad91
    Contributor

    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.

  7. paul-gauthier commented on Dec 18, 2023

    @paul-gauthier
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions