Skip to content

Handle empty error description and errors in DefaultTemplateBuilder #1073

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ch097711
Copy link

This PR fixes #1052 by ensuring that detailed build error messages are retained when generating fixer prompts.

Changes:

  • Prevent errors from being cleared if error_desc is empty but errors has content.
  • Default error_desc to an empty string if None.
  • Default errors to an empty list if None.

This avoids the “Unexpected empty error message” warning.

Ensures that the detailed error messages extracted from build logs
are preserved and passed to the LLM when generating a fixer prompt,
even if `error_desc` is empty. This prevents the "Unexpected empty
error message" warning
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.

Empty error_desc and errors lead to empty fixer_problem.txt during compilation fix
1 participant