Early Adopter Program Troubleshooting Guide¶
Common Issues and Solutions¶
This guide helps early adopters quickly resolve common issues encountered during the pilot program.
Installation & Setup Issues¶
Issue: usl command not found after installation¶
Symptoms:
Solutions: 1. Check if npm global bin is in PATH:
npm config get prefix
# Add to ~/.zshrc or ~/.bashrc:
export PATH="$PATH:$(npm config get prefix)/bin"
source ~/.zshrc
-
Reinstall USL CLI:
-
Use npx instead:
Issue: VSCode extension not working¶
Symptoms: No syntax highlighting, autocomplete, or error checking
Solutions: 1. Verify extension is installed:
- Install manually:
- Open VSCode
- Go to Extensions (Cmd/Ctrl+Shift+X)
- Search "USL"
-
Install "USL Language Support"
-
Reload VSCode:
-
Cmd/Ctrl+Shift+P → "Reload Window"
-
Check language mode:
- Open .usl file
- Bottom right corner should show "USL"
-
If not, click and select "USL"
-
Check extension logs:
- View → Output → Select "USL Language Server"
Issue: Database connection failed¶
Symptoms:
Solutions: 1. Check PostgreSQL is running:
# macOS
brew services list | grep postgresql
# Linux
systemctl status postgresql
# Docker
docker ps | grep postgres
-
Start PostgreSQL:
-
Verify connection string:
-
Check firewall/network:
Compilation Errors¶
Issue: Entity 'X' not found¶
Symptoms:
Solutions: 1. Check import statement:
-
Verify file structure:
-
Check entity definition:
-
Clear cache and rebuild:
Issue: Circular dependency detected¶
Symptoms:
Solutions: 1. Refactor to remove cycle: - Extract common types to separate file - Use forward declarations - Restructure relationships
- Example fix:
// Before (circular) // user.usl entity User { posts: [Post] relation(user_id) } // post.usl import user entity Post { author: User relation(user_id) } // After (no cycle) // types.usl entity User { /* basic fields */ } entity Post { /* basic fields */ } // relationships.usl extend User { posts: [Post] relation(user_id) } extend Post { author: User relation(user_id) }
Issue: Type mismatch errors¶
Symptoms:
Solutions: 1. Check field types:
-
Use type conversion:
-
Fix validation:
Runtime Errors¶
Issue: Authentication errors¶
Symptoms:
Solutions: 1. Check JWT secret is set:
-
Verify token format:
-
Check token expiration:
-
Debug token:
Issue: Permission denied errors¶
Symptoms:
Solutions: 1. Check user role:
-
Verify permission rules:
-
Debug current user:
Issue: Database query errors¶
Symptoms:
Solutions: 1. Run migrations:
-
Check schema is up-to-date:
-
Reset database (dev only):
-
Verify field name:
Performance Issues¶
Issue: Slow compilation times¶
Symptoms: usl build takes > 30 seconds
Solutions: 1. Enable incremental compilation:
- Reduce file count:
- Combine small entities into larger files
-
Remove unused imports
-
Clear cache:
-
Check for circular dependencies:
Issue: Slow API response times¶
Symptoms: API requests take > 1 second
Solutions: 1. Enable query logging:
-
Add database indexes:
-
Use pagination:
-
Enable caching:
-
Optimize queries:
Deployment Issues¶
Issue: Build fails in CI/CD¶
Symptoms: Works locally, fails in CI
Solutions: 1. Check Node version:
# .github/workflows/deploy.yml
- uses: actions/setup-node@v3
with:
node-version: '18' # Match your local version
-
Install dependencies:
-
Set environment variables:
-
Check build script:
Issue: Docker container won't start¶
Symptoms:
Solutions: 1. Check logs:
-
Verify environment variables:
-
Use docker-compose:
-
Health check:
Discord & Support Issues¶
Issue: Not receiving Discord notifications¶
Solutions: 1. Check notification settings: - Right-click channel → Notification Settings - Enable for @mentions and important channels
- Check server mute:
- Right-click server icon → Notification Settings
-
Unmute server
-
Enable desktop notifications:
- User Settings → Notifications
- Enable Desktop Notifications
Issue: Can't find help in Discord¶
Solutions: 1. Use search:
- Check pinned messages:
-
Click pushpin icon (top right)
-
Use proper channel:
-
help - Technical questions¶
-
feedback - Feature requests¶
-
bugs - Bug reports¶
-
emergency - Production issues only¶
Getting More Help¶
When to Ask for Help¶
Ask immediately if: - Production system down - Security vulnerability - Data loss risk - Complete blocker (can't proceed)
Ask within 24 hours if: - Compilation error you can't solve - Deployment failure - Performance degradation - Feature confusion
Ask during office hours if: - General questions - Best practices - Architecture review - Learning new features
How to Ask Good Questions¶
✅ Good Question:
**Issue**: Getting "Entity 'Post' not found" error
**Code**:
// api/feed.usl
import entities.post
api FeedAPI {
GET "/feed" {
posts = Post.all() // ← Error here
}
}
**Error**:
Error: Entity 'Post' not found in scope
at api/feed.usl:5:13
**What I've tried**:
- Verified Post.usl exists in entities/
- Tried different import syntax
- Ran `usl clean && usl build`
- Checked docs on imports
**Environment**:
- USL v1.0.5
- macOS 14.2
- Node 18.16.0
❌ Bad Question:
Support Channels Priority¶
- Search first: Discord, Docs, GitHub Issues
- Discord #help: Most questions
- Office Hours: Complex questions, architecture
- Email: Sensitive issues
- 1-on-1: Strategic discussions
- Emergency: Production-critical only
Useful Commands¶
Diagnostic Commands¶
# Check USL version
usl --version
# Check environment
usl env:check
# Analyze project
usl analyze
# Check dependencies
usl deps:check
# Database status
usl migrate:status
# Run health check
usl health
Debug Mode¶
# Verbose output
usl build --verbose
# Debug logging
usl dev --log-level=debug
# Trace compilation
usl build --trace
Reset Commands (Development Only)¶
# Clean build artifacts
usl clean
# Reset database
usl db:reset
# Clear cache
usl clean --cache
# Fresh start
usl clean && usl db:reset && usl migrate && usl build
Still Stuck?¶
- Check Discord #help channel
- Attend Office Hours (Tuesday/Thursday)
- Email early-adopters@usl.dev
- Schedule 1-on-1 for complex issues
- Tag @emergency for production issues
Remember: We want you to succeed! Don't hesitate to ask for help.
Last Updated: January 15, 2026