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

Aider lint command breaks when using nested string with spaces #2752

Closed
aweis89 opened this issue Jan 2, 2025 · 0 comments · Fixed by #2753
Closed

Aider lint command breaks when using nested string with spaces #2752

aweis89 opened this issue Jan 2, 2025 · 0 comments · Fixed by #2753

Comments

@aweis89
Copy link
Contributor

aweis89 commented Jan 2, 2025

Issue

The lint command has different command processing logic then other commands (e.x. the test command) which doesn't allow for spaced string processing. For example the following command isn't parsed correctly:

$ aider --lint --lint-cmd '/bin/sh -c "echo failed && exit 0"'

Aider v0.70.1.dev33+g904b9315
Model: deepseek/deepseek-chat with diff edit format, infinite output
Git repo: .git with 425 files
Repo-map: using 1024 tokens, files refresh
# Fix any errors below, if possible.

## Running: /bin/sh -c "echo failed && exit 0" aider/linter.py

failed: -c: line 0: unexpected EOF while looking for matching `"'
failed: -c: line 1: syntax error: unexpected end of file

## See relevant line below marked with █.

aider/linter.py:

Version and model info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant