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

Feature request: play nice with external editing #1533

Closed
jbellis opened this issue Sep 14, 2024 · 6 comments · May be fixed by #1544
Closed

Feature request: play nice with external editing #1533

jbellis opened this issue Sep 14, 2024 · 6 comments · May be fixed by #1544
Labels
enhancement New feature or request question Further information is requested

Comments

@jbellis
Copy link
Contributor

jbellis commented Sep 14, 2024

Issue

My aider workflow is

  1. Ask aider to make a change
  2. Review changes, often I make changes to what Claude came up with
  3. Repeat

Currently I have to /drop and re-/add files that I changed in my IDE. Could aider automatically reload files that changed on disk since its last edit? I'm happy to take a stab at this.

Version and model info

Aider v0.56.0

@fry69
Copy link
Contributor

fry69 commented Sep 14, 2024

That should already be unnecessary. aider loads all files that are part of the context before sending them to the LLM fresh from the disk. They do not get stored in memory. So if you make changes outside aider, they will be reflected the next time you send a prompt to the LLM.

@jbellis
Copy link
Contributor Author

jbellis commented Sep 15, 2024

I guess it needs to check earlier then, because the changes are definitely not visible for tab completion unless I manually drop and add.

@fry69
Copy link
Contributor

fry69 commented Sep 15, 2024

The changes may not be visible to autocomplete, but the files get read from disk before they get sent to the LLM. You definitely do not need to /drop and /add before sending a new prompt to the LLM.

As long as the files are part of the repository, aider will see and know them. If possible, commit your changes after editing them from outside before you switch to aider again.

@jbellis
Copy link
Contributor Author

jbellis commented Sep 15, 2024

You're right, it's reloading before sending to the LLM. Only autocomplete gets confused.

@paul-gauthier
Copy link
Collaborator

You could also just press ENTER in aider to start a new blank prompt. That will refresh the autocompleter.

@fry69 fry69 added enhancement New feature or request question Further information is requested labels Sep 22, 2024
@paul-gauthier
Copy link
Collaborator

I'm going to close this issue for now, but feel free to add a comment here and I will re-open. Or feel free to 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
enhancement New feature or request question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants