Common Issues
Error: No project is currently selected
Error: No project is currently selected
Problem: You see the error message:Solution: Initialize a new project or switch to an existing one:Why this happens: Adist needs an active project context to perform searches and other operations.
LLM features not working (No API key)
LLM features not working (No API key)
Problem: Commands like For OpenAI:For Ollama (local, no API key needed):
query, chat, or reindex --summarize fail with API key errors.Solution: Configure your LLM provider and set the appropriate API key:For Anthropic Claude:Add the export command to your
~/.bashrc, ~/.zshrc, or equivalent to persist the API key across sessions.No documents found matching your query
No documents found matching your query
Problem: Search returns no results even though you know the content exists.Solution: Try these steps:
-
Check if project is indexed:
Look for your project and verify it’s been indexed.
-
Reindex the project:
- Verify file types are supported: Adist indexes common file types (.md, .txt, .js, .ts, .py, .go, etc.). If your files use uncommon extensions, they may not be indexed.
-
Try different search terms:
- Use specific keywords from your files
- Try file path searches:
adist get "filename.js" - Use broader terms if specific ones don’t work
Project not found error
Project not found error
Problem: Advanced troubleshooting:
✘ Current project not found or ✘ Project not foundSolution: List all projects and verify the project exists:Permission denied errors
Permission denied errors
Problem: Errors about file permissions when indexing or reading files.Solution:
-
Check directory permissions:
Ensure you have read access to the files you’re trying to index.
-
Verify Adist config directory permissions:
-
Fix permissions if needed:
Ollama connection failed
Ollama connection failed
Problem: Cannot connect to Ollama for local LLM features.Solution:
-
Check if Ollama is running:
-
Start Ollama if not running:
-
Verify model is installed:
-
Pull a model if needed:
-
Reconfigure Adist:
Streaming mode issues
Streaming mode issues
Problem: Code highlighting broken or strange characters when using
--stream flag.Solution: This is expected behavior. Streaming mode shows real-time responses but has limited code highlighting.Use default mode for better formatting:Configuration file corrupted
Configuration file corrupted
Problem: Adist behaves erratically or shows unexpected errors.Solution: View and verify your configuration:Reset configuration (WARNING: This removes all projects):After resetting, reinitialize your projects:
Installation Issues
npm install -g adist fails
npm install -g adist fails
Problem: Cannot install Adist globally.Solution:
-
Check Node.js version:
Ensure you have Node.js installed. Adist requires Node.js v14 or higher.
-
Use correct npm permissions:
-
Clear npm cache:
Command not found: adist
Command not found: adist
Problem: After installation,
adist command is not recognized.Solution:-
Check if npm global bin is in PATH:
-
Add npm global bin to PATH:
-
Reload your shell:
-
Alternative: Use npx:
Performance Issues
Indexing is very slow
Indexing is very slow
Problem: Initial indexing takes a long time.Why this happens: Large projects with thousands of files can take time to index, especially with
--summarize enabled.Solutions:-
Index without summaries first:
-
Use Ollama for faster local summarization:
-
Exclude large directories:
Add a
.gitignorefile to your project. Adist respects.gitignorepatterns and won’t index excluded files.
Search results are slow
Search results are slow
Problem: Searches take too long to return results.Solution:
-
Reindex with block-based method:
Block-based indexing provides faster, more precise searches.
- Use more specific queries: More specific search terms return faster results than broad terms.
-
Check project size:
Very large projects may benefit from being split into multiple smaller projects.
Getting Help
If you encounter an issue not listed here, please:
- Check the GitHub repository for known issues
- Submit a new issue with details about your problem
- Include your operating system, Node.js version, and Adist version (
adist --version)
Useful Debug Commands
When reporting issues, include output from these commands:Related Resources
- Installation Guide - Getting started with Adist
- CLI Commands - Full command reference
- Configuration - LLM and project configuration
- GitHub Issues - Report bugs and request features