Skip to content

fix: report import errors from coder runs#5086

Open
Kcstring wants to merge 1 commit intoAider-AI:mainfrom
Kcstring:fix-importerror-coder-run-crash
Open

fix: report import errors from coder runs#5086
Kcstring wants to merge 1 commit intoAider-AI:mainfrom
Kcstring:fix-importerror-coder-run-crash

Conversation

@Kcstring
Copy link
Copy Markdown

Summary

  • catch ImportError around coder.run() entry points in main()
  • report dependency/import failures as user-facing errors with the existing install docs link instead of crashing with a traceback
  • add a regression test for the --message path

Testing

  • python3 -m pytest tests/basic/test_main.py -k "message_import_error_is_reported or main_message_adds_to_input_history"
  • python3 -m ruff check aider/main.py tests/basic/test_main.py

Fixes #5051

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 this pull request may close these issues.

Uncaught ImportError in _types.py line 36

1 participant