Database locked:
- Another indexer is writing to the database
- Wait or kill zombie processes:
killall index-c index-ts - If persists, delete
code-index.db, (andcode-index.db-*if present) and re-index
No files being indexed:
- Check file extensions:
cat <language>/config/file-extensions.txt - Check ignore list:
cat <language>/config/ignore_files.txt - Run with
--verboseto see preflight checks
Daemon not updating:
- Check if running:
ps aux | grep index-c - Restart:
killall index-c && ./index-c ./src & - Use
--oncemode if daemon is problematic
Too many results:
- Add context filter:
-i func var - Add file filter:
-f .cor-f src/% - Exclude noise:
-x noise - Use definition filter:
--def - Use
--limitand--limit-per-fileto see samples first
No results found:
- Try with wildcards:
qi '*symbol*' - Verify file indexed:
qi '*' -f filename.c --limit 1 - Check if symbol is filtered (qi will output a notice for words in stopwords.txt)
Missing symbols:
- Symbol might be filtered (stopword, keyword, or too short)
- Try wildcards:
qi *symbol* - Check keywords:
cat <language>/config/<language>-keywords.txt
undefined reference to ts_language_c:
- Run
./configurefirst, thenmake clean && make
No such file: shared/config/stopwords.txt:
- Config files missing
- Run
sudo make installor verify local config files exist
Warning: ENABLE_C redefined:
- Run
./configureagain, thenmake clean && make
# Check version
qi --version
./index-c --version
# Verbose output
./index-c ./src --verbose --once
# Test with minimal example
echo 'int test() { return 42; }' > /tmp/test.c
./index-c /tmp/test.c
qi test