Skip to content

fix: restore invalid config error reporting #6679

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

Merged
merged 1 commit into from
Jul 18, 2025

Conversation

fbricon
Copy link
Contributor

@fbricon fbricon commented Jul 17, 2025

17000f4 broke error configuration reporting, i.e. if a config file contains invalid YAML (according to YAML parsing rules or the validation schema), no error is reported on the Continue view. The error is swallowed in a catch block while trying to parse the content as markdown, which always returns a result.

This PR fixes this issue, by checking, in the event YAML parsing fails, we don't fall back to markdown parsing if the config file ends with yaml or yml.


Summary by cubic

Fixed a bug where invalid YAML config files did not show error messages in the Continue view. Now, errors are reported if a YAML or YML config file fails to parse, instead of silently falling back to markdown parsing.

  • Bug Fixes
    • Restored error reporting for invalid YAML in config files.
    • Added tests to verify correct error handling for invalid YAML content.

@fbricon fbricon requested a review from a team as a code owner July 17, 2025 14:36
@fbricon fbricon requested review from RomneyDa and removed request for a team July 17, 2025 14:36
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jul 17, 2025
Copy link
Collaborator

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I ran into this recently

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Jul 18, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 18, 2025
@RomneyDa RomneyDa merged commit 1c874e4 into continuedev:main Jul 18, 2025
71 of 73 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Jul 18, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jul 18, 2025
@sestinj
Copy link
Contributor

sestinj commented Jul 22, 2025

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm This PR has been approved by a maintainer released size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants