should improve the configuration file error message
Open
Nobody has claimed this yet.
area/config
kind/enhancement
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
related https://github.com/Peltoche/lsd/pull/443#issuecomment-743951460
quote from comment:
For example, if we have config like this:
color: never
output:
lsd: Configuration file /Users/meain/.config/lsd/config.yaml format error, color: invalid type: string "never", expected struct Color at line 1 column 8.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the configuration parsing error with the YAML example in the issue, then trace the configuration parsing and error-reporting entry points. Done means the invalid color value produces a clearer configuration error, with behavior verified against the example; no file or test path is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100