Troubleshooting
This guide addresses common issues you might encounter while using noidea.
Installation Issues
noidea Command Not Found
Problem: After installation, running noidea
results in "command not found".
Solutions:
-
Check if the binary is in your PATH:
-
If not found, verify the installation location:
-
Add the installation directory to your PATH if needed:
Installation Fails with Permission Error
Problem: ./install.sh
fails with permission errors.
Solution: Run with sudo or specify a user-writable location:
API Key Issues
API Key Validation Fails
Problem: "API key validation error" or "Invalid API key" messages.
Solutions:
-
Verify your API key:
-
Re-enter your API key:
-
Check your internet connection and provider status.
Can't Access AI Features
Problem: AI-powered features like suggest --ai
or moai --ai
don't work.
Solutions:
-
Ensure AI features are enabled:
-
Set up your API key if you haven't already:
Git Integration Issues
Git Hooks Not Working
Problem: noidea's Git hooks (commit suggestions, Moai feedback) aren't running.
Solutions:
-
Verify hooks are installed in your repository:
-
If missing, run:
-
Ensure hooks are executable:
-
Check if hooks are bypassed:
Commit Suggestions Not Appearing
Problem: The commit message suggestion feature isn't working.
Solutions:
-
Make sure it's enabled:
-
Verify you have staged changes:
-
Try running the suggest command directly:
Performance Issues
Slow Commit Suggestions
Problem: Generating commit suggestions takes too long.
Solutions:
-
Disable full-diff mode:
-
Reduce history context:
Configuration Issues
Configuration Changes Not Applied
Problem: Changes to configuration don't seem to take effect.
Solutions:
-
Check current configuration:
-
Verify configuration file location:
-
Ensure you're using the correct method (environment variables might override file settings).
Getting More Help
If your issue isn't addressed here:
-
Check the logs for more information (if enabled):
-
Open an issue on GitHub with:
- noidea version (
noidea --version
) - OS details
- Error messages
- Steps to reproduce