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

How to find out what lint command aider is running? #3541

Open
max-sixty opened this issue Mar 14, 2025 · 1 comment
Open

How to find out what lint command aider is running? #3541

max-sixty opened this issue Mar 14, 2025 · 1 comment
Labels
question Further information is requested

Comments

@max-sixty
Copy link

Issue

As of the latest version, after editing a config.fish file, aider runs something that claims there's an error in the file, and then goes about fixing it.

Tokens: 15k sent, 719 received. Cost: $0.06 message, $0.28 session.
Applied edit to .config/fish/config.fish

# Fix any errors below, if possible.


## See relevant line below marked with █.

.config/fish/config.fish:
...⋮...
 131│if status --is-interactive
 132│
...⋮...
 487│    function __git_fzf_git_stash -d "fzf on git stashes"
...⋮...
 490│        git stash list --color=always \
 491│            # We seem to need delta explicitly, since git will write without using
 492│            # delta if it's not a tty.
 493█            | SHELL=fish fzf -m --ansi --no-sort \
 494│            --preview "git stash show -p (echo {} | rg '$pattern' -o) | delta" \
 495│            --bind=ctrl-p:"become(git stash pop (echo {} | rg '$pattern' -o) > /dev/tty)" \
 496│            | rg $pattern -o \
...⋮...

Here are the configs with lint in them:

  auto-lint:         True
  --lint-cmd:        []
  - auto_lint: True
  - lint: False
  - lint_cmd: []

How can I figure out what linter is being run? It happens to be wrong!

Thank you!

Version and model info

Aider v0.77.0
Main model: anthropic/claude-3-7-sonnet-20250219 with diff edit format, 31.2k think tokens, infinite output
Weak model: anthropic/claude-3-5-haiku-20241022
Git repo: .git with 43 files
Repo-map: using 4096 tokens, auto refresh

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue.

It's probably running the built in tree-sitter parser to check syntax.

You can either turn off linting or set the linter for fish to be a no-op with --lint-cmd "fish: true"

@github-actions github-actions bot added the question Further information is requested label Mar 15, 2025
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