Project
vgrep
Description
There's no command to clean up index entries for files that no longer exist. If files are deleted outside the watcher, their entries remain in the database forever, causing:
- Wasted storage
- Stale search results
- Confusing "file not found" when opening results
Error Message
Debug Logs
System Information
- Bounty Version: 0.1.0
- OS: Ubuntu 24.04 LTS
- Rust: 1.75+
Screenshots
No response
Steps to Reproduce
# Index a directory
vgrep index
# Delete some files outside vgrep (watcher not running)
rm some_file.rs
# Search
vgrep "function in deleted file"
# Returns results for deleted files!
# No way to clean up
vgrep clean # Command doesn't exist
vgrep gc # Command doesn't exist
Expected Behavior
vgrep index --clean removes stale entries
- Or separate
vgrep clean command
- Watcher should verify files on startup
- Periodic cleanup in long-running server
Actual Behavior
- Stale entries persist forever
- No cleanup command
- Search returns non-existent files
- Manual database editing required
Additional Context
No response
Project
vgrep
Description
There's no command to clean up index entries for files that no longer exist. If files are deleted outside the watcher, their entries remain in the database forever, causing:
Error Message
Debug Logs
System Information
Screenshots
No response
Steps to Reproduce
Expected Behavior
vgrep index --cleanremoves stale entriesvgrep cleancommandActual Behavior
Additional Context
No response