-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Description
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
None - missing feature.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 existExpected Behavior
vgrep index --cleanremoves stale entries- Or separate
vgrep cleancommand - 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