Skip to content

[BUG] config set max_file_size Silently Accepts Zero #204

@xyz080125

Description

@xyz080125

Project

vgrep

Description

In commands.rs, setting max_file_size to 0 via config is accepted without validation. This would cause all files to be skipped during indexing with no warning.

Error Message

Debug Logs

System Information

OS: Any
Rust Version: 1.75+

Screenshots

No response

Steps to Reproduce

  1. Run vgrep config set max-file-size 0
  2. Run vgrep index
  3. Observe no files being indexed

Expected Behavior

Reject zero or warn that no files will be indexed

Actual Behavior

Silently accepts the value, causing all files to be skipped

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvalidValid issuevgrep

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions