Troubleshooting Guide
Solutions to common issues with IfAI.
Installation Issues
macOS: "App is damaged and can't be opened"
This is a macOS security feature.
Solution:
bash
xattr -cr /Applications/IfAI.appThen try opening the app again.
macOS: "Unidentified developer" warning
Solution:
- Right-click (or Ctrl-click) the IfAI app
- Select "Open" from the menu
- Click "Open" in the confirmation dialog
Windows: "Windows Defender SmartScreen" warning
Solution:
- Click "More info"
- Click "Run anyway"
- Or add IfAI to Windows Defender exclusions
Linux: AppImage won't run
Solution:
bash
chmod +x ifai-*.AppImage
./ifai-*.AppImageIf still not working:
bash
./ifai-*.AppImage --appimage-extract
./squashfs-root/ifaiAI Connection Issues
"Failed to connect to AI provider"
Solutions:
- Check API key in Settings (
Cmd+,) - Verify network connection
- Check provider status page:
- OpenAI: status.openai.com
- Anthropic: status.anthropic.com
- Try switching providers
"Invalid API key"
Solutions:
- Verify API key in provider dashboard
- Check for extra spaces when pasting
- Ensure key has sufficient credits/quota
- Regenerate key if needed
"Rate limit exceeded"
Solutions:
- Wait a few minutes and try again
- Upgrade your API plan
- Use a different provider
- Switch to local model (Ollama)
AI responses are slow
Solutions:
- Reduce context (fewer files)
- Switch to faster model (e.g., GPT-3.5 instead of GPT-4)
- Use local model for instant responses
- Check network speed
Performance Issues
IfAI is slow or lagging
Solutions:
- Close unused files
- Reduce AI context size
- Disable unused extensions
- Restart IfAI
- Check system resources (Activity Monitor / Task Manager)
High memory usage
Solutions:
- Close unused files
- Clear chat history
- Reduce symbol indexing scope
- Restart IfAI periodically
Editor freezes when AI is thinking
This is normal for complex operations. AI responses stream in real-time, and large files may take longer to process.
Editor Issues
Code highlighting not working
Solutions:
- Check file extension matches language
- Try "Reopen with" and select correct language
- Check if language is supported
Auto-completion not working
Solutions:
- Check file is saved
- Verify language server is running
- Try restarting IfAI
- Check Settings > Editor > Enable Auto-completion
Go to Definition not working
Solutions:
- Wait for indexing to complete (check status bar)
- Ensure file is saved
- Check if language supports navigation
- Try rebuilding symbol index:
Cmd+Shift+P> "Rebuild Index"
File & Project Issues
Files not appearing in file tree
Solutions:
- Check if folder is excluded in Settings
- Click "Refresh" in file tree header
- Reopen project folder
- Check file permissions
Can't save file
Solutions:
- Check file permissions
- Ensure disk has space
- Check if file is locked by another program
- Try "Save As" to different location
Git changes not showing
Solutions:
- Check if repository is initialized
- Click "Refresh" in file tree
- Check Settings > Git > Enable Git Integration
- Verify git is installed and in PATH
Local LLM Issues
Ollama not detected
Solutions:
- Verify Ollama is installed:
ollama --version - Check Ollama is running:
ollama list - Restart IfAI after starting Ollama
- Check IfAI Settings > AI Provider > Ollama
Local model is very slow
Solutions:
- Check if model is loaded:
ollama ps - Use smaller model (e.g., qwen2.5-coder:3b)
- Ensure sufficient RAM (8GB+ for 7B models)
- Close other applications
Out of memory errors
Solutions:
- Use smaller quantization model
- Reduce context window size
- Close other applications
- Switch to cloud provider
Crash Recovery
IfAI crashed unexpectedly
Solutions:
- Check for crash logs:
- macOS:
~/Library/Logs/IfAI/ - Windows:
%APPDATA%\IfAI\logs\ - Linux:
~/.config/IfAI/logs/
- macOS:
- Restart IfAI
- File is usually auto-saved
Recovering unsaved work
IfAI auto-saves your work. To recover:
- Open the file you were working on
- Check for
.backupfiles in project directory - Use system file history (Time Machine, etc.)
Getting Help
Still having issues?
- Check Documentation: docs
- Search Issues: GitHub Issues
- Ask Community: GitHub Discussions
- Report Bug: Create Issue
When reporting issues, please include:
- IfAI version
- Operating system
- Steps to reproduce
- Error messages or logs