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

What shell is best to work with Aider? #755

Open
ErykCh opened this issue Jun 30, 2024 · 4 comments
Open

What shell is best to work with Aider? #755

ErykCh opened this issue Jun 30, 2024 · 4 comments
Labels
question Further information is requested

Comments

@ErykCh
Copy link

ErykCh commented Jun 30, 2024

Issue

The /add method works very slowly for me, listing and filtering work very slowly.

I work on a computer with a fast processor and I have 64 gigs of RAM and an SSD drive. So I guess the problem is in the shell?

Version and model info

Aider v0.40.7-dev
Models: openrouter/anthropic/claude-3.5-sonnet with diff edit format, weak model openrouter/anthropic/claude-3-haiku
Git repo: .git with 36 files
Repo-map: using 2028 tokens

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

Aider should work quickly in a repo with only 36 files. It is known to be a bit slow on large repos with hundreds of files or more.

@ErykCh
Copy link
Author

ErykCh commented Jul 3, 2024

I started running it from zsh shell and it seems to be a bit faster

simple test

/add and just type spacebar and how many seconds does it take for the cursor to move, for me it takes 3

/add and a random string of characters on the keyboard, it takes about 3 seconds to print something

which means that if I enter the wrong class name, I have to wait 3 seconds until I see result of backspace

@paul-gauthier
Copy link
Owner

I just made a change which improved this significantly.

The change is available in the main branch. You can get it by installing the latest version from github:

python -m pip install --upgrade 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.

@ErykCh
Copy link
Author

ErykCh commented Jul 4, 2024

Yes, it works much better. Thank you very much for fixing it.
Now there is about a 3 second delay but only the first time you use /add. So what could be improved is to load all the information asynchronously after startup to make the first use of /add faster.

But not to be too beautiful :-( I again encountered the same problem described below.

Previously I thought it might have something to do with my environment. But apparently it's on Aider's side. It can loop endlessly.

I don't have a deterministic description of how to trigger this. I just write the correct version of the class and then after typing when it stops finding matching ones, than I click backspace and want to write the next characters again and then Aider gets stuck. It gets into an infinite loop. Ctrl+C breaks this loop and you can continue typing.

Here it stucked on Cha and after selecting Ctrl+C it added the Cha file to the main directory.

image

This stuck also happened to me several times on earlier versions. Now I have the version: v0.42.1-dev

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