Skip to content

fix(search): pass db file path instead of directory to setupIndexer#75

Merged
aeneasr merged 1 commit intomainfrom
worktree-fix-72
Apr 1, 2026
Merged

fix(search): pass db file path instead of directory to setupIndexer#75
aeneasr merged 1 commit intomainfrom
worktree-fix-72

Conversation

@aeneasr
Copy link
Copy Markdown
Member

@aeneasr aeneasr commented Apr 1, 2026

No description provided.

runSearch was calling setupIndexer with the raw indexRoot directory
instead of the SQLite db file path computed by config.DBPathForProject.
SQLite cannot open a directory and failed with:
  exec "PRAGMA journal_mode=WAL": unable to open database file

Also add os.MkdirAll for the db directory (matching the pattern in
runIndex) and a red/green regression test.

Closes #72

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aeneasr aeneasr enabled auto-merge (squash) April 1, 2026 15:46
@aeneasr aeneasr merged commit 81cb4db into main Apr 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant