Project
vgrep
Description
The file watcher in Local mode doesn't actually re-index files when they change. While the initial index_all() works correctly, the process_files() function called for file changes only prints "(pending)" but never actually re-indexes the files. This makes the watcher essentially useless in Local mode.
Error Message
No error - just silently doesn't work.
Debug Logs
System Information
- Bounty Version: 0.1.0
- OS: Ubuntu 24.04 LTS
- Rust: 1.75+
Screenshots
No response
Steps to Reproduce
- Configure vgrep for local mode:
vgrep config set mode local
- Start the watcher:
vgrep watch
- Initial indexing completes successfully
- Modify a file in the watched directory
- Observe the watcher prints
[~] modified filename.rs (pending)
- The file is NEVER actually re-indexed
- Search results remain stale
Expected Behavior
In Local mode, file changes should be indexed using the local embedding engine, similar to how Server mode uses index_file_server().
Actual Behavior
- Initial
index_all() works correctly for Local mode
process_files() only prints "(pending)" for Local mode
- Files are never re-indexed after changes
- Search results become stale and outdated
- The "(pending)" message implies future action that never happens
Additional Context
No response
Project
vgrep
Description
The file watcher in Local mode doesn't actually re-index files when they change. While the initial
index_all()works correctly, theprocess_files()function called for file changes only prints "(pending)" but never actually re-indexes the files. This makes the watcher essentially useless in Local mode.Error Message
No error - just silently doesn't work.Debug Logs
System Information
Screenshots
No response
Steps to Reproduce
vgrep config set mode localvgrep watch[~] modified filename.rs (pending)Expected Behavior
In Local mode, file changes should be indexed using the local embedding engine, similar to how Server mode uses
index_file_server().Actual Behavior
index_all()works correctly for Local modeprocess_files()only prints "(pending)" for Local modeAdditional Context
No response