Repository navigation
fix(engine): report config.toml parse errors instead of using defaults - #4416
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A
config.tomlthat fails to parse no longer leaves the user guessing. The engine keeps the parser's message (file, line and column) and reports it:rustcode doctorfailsconfig-loadwith the message and a hint; a broken project.rustcode/config.tomlgets its ownproject-configrow._rustcode/settings/get(a full read) carriesconfigIssues, and Settings shows a warning notice at the top of every page.The file is still never rewritten while invalid.
Changelog
Settings and
rustcode doctornow say when config.toml could not be read, with the line to fix, instead of silently using defaults.Testing
cargo fmt --all -- --check,scripts/check-comments.py,scripts/check-rust-size.py,bun run check. New unit tests inconfig/load_issues.rs,doctor.rs,acp/settings.rsandconfigIssues.test.ts; Rust tests run in CI.Closes #4371