Open rjlasko opened 6 hours ago
Thanks for trying aider and filing this issue.
The /lint
command will run the linter on all the "dirty" files which have been added to the chat. From your comments, it sounds like you tried to run it when there were no files with uncommitted changes (dirty files).
You can have aider help with linting in a few ways:
aider --lint
to have aider run the linter named files or dirty files in the repo and offer to fix errors./lint
inside a chat, which will run the linter on named files, or dirty files added to the chat or dirty files in the repo.
Issue
Hello! I have been successfully using
aider
to do some minor development of an Ansible project. I am very interested in using its promoted linting capabilities, as I have a TON that aren't worth my time but would be perfect for AI to take care of. Sadly, this seems not to be working for me. 😞Issue: Trying to use
/lint
withansible-lint
seems to do nothing, when asking to lint the files added to the chat. I am likely doing something wrong, or altogether don't know what I am doing, but it may also be a genuine problem. (#2270 makes me suspect the latter)Additionally....
There are no "unstaged" changes in the repository. Invoking
/run ANSIBLE_ASK_VAULT_PASS=false ansible-lint -c ansible/.ansible-lint
within anaider
session gives an expected output:Here is my
aider.conf.yml
And here is some other information, if it is helpful.
And here is the
ansible
dir:Not sure what is issue, and would be very thankful for some help.
Be kind, and thanks again.
Version and model info
Aider v0.64.1 Main model: openai/gpt-4o with diff edit format Weak model: gpt-4o-mini Git repo: ../.git with 589 files Repo-map: using 1024 tokens, auto refresh
I am using MacOS Sonoma Running
aider
from within an IntelliJ terminal, but also get the same behavior from MacOS's vanilla Terminal application.