lsd-rs / lsd-rs/lsd

should improve the configuration file error message

Open
#458 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.