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

config: can't read empty confg #3447

Open
krhubert opened this issue Mar 5, 2025 · 3 comments
Open

config: can't read empty confg #3447

krhubert opened this issue Mar 5, 2025 · 3 comments
Labels
question Further information is requested

Comments

@krhubert
Copy link

krhubert commented Mar 5, 2025

Issue

Steps to reproduce

touch ~/.aider.conf.yml
cd repo/
aider

Error

aider: error: The config file doesn't appear to contain 'key: value' pairs (aka. a YAML mapping). yaml.load('/home/user/.aider.conf.yml') returned type 'NoneType' instead of 'dict'.

Version and model info

aider 0.75.2

@voxmenthe
Copy link

I had this same issue, but once I put the .aider.conf.yml file with the right name into the location it expected, and made sure it had at least one setting it worked.

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue.

Is there a reason you want to launch aider with an empty config file?

@krhubert
Copy link
Author

krhubert commented Mar 8, 2025

Is there a reason you want to launch aider with an empty config file?

No really, I found the same workaround as @voxmenthe pointed and also I switched to using cli flags.

The story full story: I tested aider and I set only one value subtree-only: true. Later when I worked with a different repo I commented this line out and got the error.

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

3 participants