aider icon indicating copy to clipboard operation
aider copied to clipboard

added hashes to a folder name

Open aldoyh opened this issue 1 year ago • 4 comments

Hello guys,

Thank you for such an amazing tool.

I've just started "knowing" how to use it, but whenever I add a certain folder using the /add lib\ it adds 3 hashes to it, is this intentional or can be fixed?

Screenshot 2024-09-21 at 11 54 22

Aider version: 0.56.0 Python version: 3.10.14 Platform: macOS-14.6.1-arm64-arm-64bit Python implementation: CPython Virtual environment: No OS: Darwin 23.6.0 (64bit) Git version: git version 2.46.1

Aider v0.56.0 Model: mistral/mistral-large-latest with whole edit format, infinite output Git repo: .git with 224 files Repo-map: disabled Added ### lib/api/service.dart to the chat. Added ### lib/auction_details_screen.dart to the chat. Added ### lib/controllers/auction_controller.dart to the chat. Added ### lib/controllers/auth_controller.dart to the chat. Added ### lib/flip_down_timer.dart to the chat. Added ### lib/home4.dart to the chat. Added ### lib/home_alternative.dart to the chat. Added ### lib/home_screen.dart to the chat. Added ### lib/main.dart to the chat. Added ### lib/models/auction.dart to the chat. Added ### lib/models/auction.g.dart to the chat. Added ### lib/models/bid.dart to the chat. Added ### lib/models/transaction.dart to the chat. Added ### lib/models/user.dart to the chat. Added ### lib/models/user.g.dart to the chat. Added ### lib/post_list.dart to the chat. Added ### lib/screens/auction_details_screen.dart to the chat. Added ### lib/screens/profile_screen.dart to the chat. Added ### lib/user.dart to the chat. Added ### lib/views/auction_carousel.dart to the chat. Added ### lib/views/auction_list.dart to the chat. Added ### lib/widgets/auctions_closed.dart to the chat. Added ### lib/widgets/flip_down_timer.dart to the chat. Added ### lib/widgets/inactive_auctions_list.dart to the chat. Added ### lib/widgets/main_web_nav.dart to the chat. Added lib/api/service.dart to the chat. Added lib/auction_details_screen.dart to the chat. Added lib/controllers/auction_controller.dart to the chat. Added lib/controllers/auth_controller.dart to the chat. Added lib/flip_down_timer.dart to the chat. Added lib/home4.dart to the chat. Added lib/home_alternative.dart to the chat. Added lib/home_screen.dart to the chat. Added lib/main.dart to the chat. Added lib/models/auction.dart to the chat. Added lib/models/auction.g.dart to the chat. Added lib/models/bid.dart to the chat. Added lib/models/transaction.dart to the chat. Added lib/models/user.dart to the chat. Added lib/models/user.g.dart to the chat. Added lib/post_list.dart to the chat. Added lib/screens/auction_details_screen.dart to the chat. Added lib/screens/profile_screen.dart to the chat. Added lib/user.dart to the chat. Added lib/views/auction_carousel.dart to the chat. Added lib/views/auction_list.dart to the chat. Added lib/widgets/auctions_closed.dart to the chat. Added lib/widgets/flip_down_timer.dart to the chat. Added lib/widgets/inactive_auctions_list.dart to the chat. Added lib/widgets/main_web_nav.dart to the chat. Restored previous conversation history.

aldoyh avatar Sep 21 '24 08:09 aldoyh

Thank you for filing this issue.

aider does not request or add those hashes, that is the LLM. In your case the model you are using (mistral/mistral-large-latest) may not be able to produce the correct format aider needs to work effectively. Try using a better model (current go-to recommendation is Sonnet-3.5).

See also the model leaderboard -> https://aider.chat/docs/leaderboards/

Also this documentation may be helpful -> https://aider.chat/docs/troubleshooting/edit-errors.html

fry69 avatar Sep 21 '24 09:09 fry69

@aldoyh

There is a fix in the current main branch that might help you with this problem, see here -> https://github.com/paul-gauthier/aider/commit/54cfbc4142e10dde73434accd20761bfc1ba3f1e

You can install the main branch with ->

aider --install-main-branch

# or

python -m pip install --upgrade git+https://github.com/paul-gauthier/aider.git

If you have a chance to try it, please report if it works better for you.

fry69 avatar Sep 22 '24 19:09 fry69

Thank you so much guys for your replies it did actually work just like a charm! And I did go back to the local installation of a ollama/mistral AND Mistral/Mistral also worked perfectly!

Now my question is should I stay on the current branch or should I go back to the main?

aldoyh avatar Sep 23 '24 08:09 aldoyh

As far as I know aider should automatically remind you and update to stable release once a new one is out (with the current fix included). So you should not have to do anything, but you can still update the main branch daily to get latest features (and rarely bugs).

fry69 avatar Sep 23 '24 09:09 fry69

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.

paul-gauthier avatar Oct 07 '24 20:10 paul-gauthier