Coder Social home page Coder Social logo

Bug when starting aider about aider HOT 9 CLOSED

jan-koch avatar jan-koch commented on June 18, 2024
Bug when starting aider

from aider.

Comments (9)

paul-gauthier avatar paul-gauthier commented on June 18, 2024 1

The bug you show in your screenshots TypeError: replace() argument 1 must be str, not None is fixed in the latest version in the main branch. It's because you are running aider without providing an OpenAI API key. The fixed version will print a proper explanation of what's wrong.

But you do need to provide an OpenAI API key. Perhaps you have an aider.conf.yml file in one directory/repo but not the other?

The change is available in the main branch. You can get it by installing the latest version from github:

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

If you have a chance to try it, let me know if it works better for you.

from aider.

jan-koch avatar jan-koch commented on June 18, 2024 1

The missing .aider.conf.yaml was the culprit!

from aider.

paul-gauthier avatar paul-gauthier commented on June 18, 2024

Thanks for trying aider and filing this issue.

Can you share the full command line you used to invoke aider? Or even better, also share the output when you add --verbose to the command line.

from aider.

jan-koch avatar jan-koch commented on June 18, 2024

from aider.

jan-koch avatar jan-koch commented on June 18, 2024

I think this error is related to the Github repository. Upon further inspection, it works in one branch of the repository but not in another branch.

I've tried merging the branch where aider loads into the one where aider doesn't load, but that didn't fix it.

image

from aider.

jan-koch avatar jan-koch commented on June 18, 2024

Here's a screenshot of running aider --verbose and aider --help commands in the broken branch of the repository.

image

from aider.

paul-gauthier avatar paul-gauthier commented on June 18, 2024

Are you using unusual git features, maybe like worktrees?

from aider.

jan-koch avatar jan-koch commented on June 18, 2024

No. I am just using one branch for production (that's broken with aider) and one for development (thankfully aider is working there lol)

from aider.

paul-gauthier avatar paul-gauthier commented on June 18, 2024

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.

from aider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.