class
AmberCLI::Documentation::Troubleshooting
- AmberCLI::Documentation::Troubleshooting
- Reference
- Object
Overview
Troubleshooting
Common issues and their solutions.
Database Connection Issues
Problem: Connection unsuccessful error
Solution:
- Verify database server is running
- Check connection string in environment configuration
- Ensure database exists (run
amber database create)
Generation Failures
Problem: Template not found errors Solution:
- Verify template files exist in expected locations
- Check generator configuration syntax
- Ensure template variables are properly defined
Watch Mode Issues
Problem: Files not being watched Solution:
- Check file patterns in
.amber.yml - Verify files exist in specified directories
- Use
amber watch --infoto see current configuration
Build Failures
Problem: Crystal compilation errors Solution:
- Run
shards installto ensure dependencies are installed - Check for syntax errors in generated files
- Verify all required files are present
Plugin Issues
Problem: Plugin not found or loading errors Solution:
- Verify plugin is properly installed
- Check shard.yml dependencies
- Ensure plugin is compatible with current Amber version
Getting More Help
- Check the Amber Framework documentation
- Join the Crystal community
- Report issues on GitHub