Comments (13)
Okay I think I found out why it might have started doing things. I thought I had to press enter
after writing /add
, then I put in the file name. It autocompleted the file name so I assumed it was all going as expected. I then hit enter
with the file name there. I have no idea where 'factorial' came from since that word doesn't feature in any of the files.
So it wasn't clear how /add was supposed to work. Still a poor default to have it commit, IMHO.
from aider.
That aside, this seems like an awesome library. Thank you for providing it. I look forward to testing it out some more.
from aider.
Many (including me) already asked to make Aider ask the user confirmations before applying changes. But no luck until now in convincing @paul-gauthier 🤷♂️
from aider.
Many (including me) already asked to make Aider ask the user confirmations before applying changes. But no luck until now in convincing @paul-gauthier 🤷♂️
I usually add a "ask before changing" every now and then and use with --no-git
so I can just undo with ctrl/CMD+z
from aider.
Thanks for trying aider and filing this issue. This doc may be helpful:
https://aider.chat/docs/git.html
When reporting problems, it is very helpful if you can provide:
- Aider version
- LLM model you are using
- Any stack traces or error messages
- A description of what you were doing when the error happened.
Including the “announcement” lines that aider prints at startup is an easy way to share some of this helpful info.
Aider v0.37.1-dev
Models: gpt-4o with diff edit format, weak model gpt-3.5-turbo
Git repo: .git with 243 files
Repo-map: using 1024 tokens
from aider.
Well I've read all the docs now. The point is that as I was new and following through the docs from top to bottom, doing exactly as the docs told me to do, my project got messed up. Requiring knowledge further down in the docs not to mess up your project is a horrible first-use experience, which was my point.
I am actually very surprised the default is to mess with git commits without any user input.
After reading all the docs and trying it a bit more I've decided Aider isn't for me, but I still think it has great potential for those who don't want to use an IDE dedicated to AI assistance.
from aider.
Sorry to hear you aren't happy with your aider experience.
The git integration is important exactly because it protects your code from being "messed up" by aider. Git provides the ability to easily and completely undo any changes that aider makes. And aider makes this trivial with the /undo
command in the chat.
All that said, I do have the ability to disable edits without approval in the roadmap. It's being tracked in issue #649. But I expect the default behavior to remain as it is.
from aider.
I know what git is of course.
Maybe you should mention the undo command early in the docs, since I hadn't yet come across it when my repo was messed up. By the time I found it I'd already reversed it all manually.
from aider.
Probably also a good idea to warn that Aider can and will commit changes already made prior to Aider ever being run. If I knew this I wouldn't have tried it out until I'd committed my current changes that i was working on.
from aider.
@jazoom I had the same issue when starting.
Setting these environment variables helped:
AIDER_AUTO_COMMITS=False
AIDER_DRY_RUN=True
Then also start your first prompt with something like:
"Ask at least 1 clarifying question to improve with decision making before editing code for this reply and all future replies."
from aider.
Aider's use of git and the /undo
command is discussed on the main usage page in the docs:
https://aider.chat/docs/usage.html#making-changes
Which also links to the more detailed docs page about git:
https://aider.chat/docs/git.html
I also just added a hint about /undo
that is shown in the chat after every commit:
...
Applied edit to app.py
Commit 71612b3 Add a Fibonacci endpoint.
You can use /undo to revert and discard the committed changes.
So I am trying to ensure this behavior is well documented and visible to users. But your experience makes it clear that I should continue to try and do better at this.
Thank you for taking the time to share you experience. I really appreciate the feedback.
from aider.
Aider's use of git and the
/undo
command is discussed on the main usage page in the docs:
Ah. I must have missed that bit on my first reading of that page. My apologies.
I also just added a hint about
/undo
that is shown in the chat after every commit:
This likely would have saved me the (minor) headache. It'll certainly save someone in future.
Thank you for taking the time to share you experience. I really appreciate the feedback.
No worries. When you know everything about a piece of software it's difficult to view it through the eyes of a first-time user. That's why I made this issue. You may close it if you feel it has been adequately addressed.
from aider.
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.
from aider.
Related Issues (20)
- Text file loading error HOT 3
- Request: allow attachment of external files for inclusion in requests
- When using Anthropic on Vertex AI the Haiku model continuously triggers summarization errors after code generation of Sonnet 3.5 HOT 2
- [Feature] Support adding file read-only. HOT 3
- the search and replace repeats infinitely until stopped by CTRL+C HOT 4
- Code gets added to the end of the file (main()) instead of inside the body of the code HOT 1
- [FeatReq] Add support for apps and libs that require two console to develop (like Textual) HOT 1
- [FeatReq] Please add a button to kill the running process without crashing or exiting the chat HOT 1
- [FeatReq] display the web pages added to the chat with the web command, and let the user drop them
- [FeatReq] A better mapping of the project should be provided to the AI since it does not recognize sub projects. HOT 1
- [FeatReq] Ask the user to remove some files or to clear the chat history when the AI context is full instead of giving error HOT 2
- How to set litellm config? HOT 1
- authentication_error HOT 2
- Feature request: Enable Aider to move (optionally delete) files HOT 1
- Using gemma-2 causes exception HOT 2
- Feature Request - Turn chat history into Requirement and Design documents HOT 3
- Unexpected error: litellm.InternalServerError: AnthropicException - Overloaded HOT 4
- OCaml scm file doesn't parse
- [FeatReq] Add a Tasklist to Aider HOT 1
- [Feature request] Add the support for addition of a custom message to LLM prompts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aider.