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

Option to output to stdout/stderr instead of console #733

Closed
caseymcc opened this issue Jun 25, 2024 · 2 comments
Closed

Option to output to stdout/stderr instead of console #733

caseymcc opened this issue Jun 25, 2024 · 2 comments
Labels
question Further information is requested

Comments

@caseymcc
Copy link
Contributor

caseymcc commented Jun 25, 2024

Issue

I am currently modifying the InputOutput class to output to stdout/err when a command line option --stdout is provided. I am working on this to see if I can get better functionality with vscode extensions (the default terminal there does not provide output) and I am having to use node-pty to talk to aider but it does not support some of the current console functionality.

All that to say is that in making changes I have seen a few other places in the code that creates a new console and/or uses io.console directly. I was thinking of adding functions in InputOuput for all those random calls and replace the calls with io.func calls. I am also looking at adding some kind of <tag>, maybe json, or something to the output going to stdout to make it easier to parse what is being sent and received and identify diffs, errors, etc...

Any ideas and direction for this would be appreciated.

Version and model info

No response

@paul-gauthier
Copy link
Owner

This is probably out of scope for aider. But I do hope to refactor the scripting api to make it easier to do what you're asking about. Not in the exact way you propose though.

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

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.

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

No branches or pull requests

2 participants