Troubleshooting Guide
Quick Diagnostics
specifyx check # Verify installation and requirements
specifyx config validate # Check configuration
specifyx --version # Show version info
specifyx run --list # Check project structure
Installation Issues
Command Not Found
# Check installation
uv tool list | grep specifyx
pipx list | grep specifyx
# Reinstall
uv tool install specifyx # Recommended
pipx install specifyx # Alternative
uvx specifyx # Run without install
Python Version Issues
SpecifyX requires Python 3.11+. Check with python --version
and install newer version if needed:
uv python install 3.11 # Using uv
pyenv install 3.11.5 # Using pyenv
Permission Issues
# Fix PATH issues
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Use user install
pip install --user specifyx
Configuration Issues
Invalid Configuration
Error: Invalid branch pattern
or Configuration validation failed
Fix: Check .specify/config.toml
syntax:
[project]
name = "my-project"
[branching]
patterns = ["feature/{feature-name}", "main"]
validation_rules = ["lowercase_only"]
Template Errors
Error: Template not found
or Jinja2 syntax error
Fix:
- Check template exists in
.specify/templates/
- Validate Jinja2 syntax
- Reset templates:
rm -rf .specify/templates && specifyx init --here
Project Issues
Git Repository Required
Error: Not a git repository
Fix: Initialize git repo: git init && git add . && git commit -m "Initial commit"
Branch Creation Failures
Error: Branch already exists
or Invalid branch name
Fix:
- Use unique branch names
- Check branch naming patterns in config
- Delete existing branch:
git branch -D branch-name
Command Execution
Script Not Found
Error: Script 'xyz' not found
Fix:
- List available scripts:
specifyx run --list
- Check
.specify/scripts/
directory - Regenerate scripts:
specifyx init --here
Execution Failures
Error: Scripts fail to run
Fix:
- Check Python dependencies:
pip install -r requirements.txt
- Verify script permissions:
chmod +x .specify/scripts/*
- Check script syntax manually
Performance Issues
Slow Operations
- Template rendering: Reduce template complexity
- Large projects: Use
.specifyignore
to exclude files - Network issues: Check internet connection for updates
Platform-Specific
Windows
- Use WSL2 for best compatibility
- Install Python via Microsoft Store or python.org
- Check PATH includes Python and Scripts directories
macOS
- Install via Homebrew:
brew install python@3.11
- May need to install Xcode Command Line Tools
Linux
- Install Python dev packages:
apt install python3.11-dev
- Check
$HOME/.local/bin
is in PATH
Getting Help
Collect Diagnostics
specifyx check --verbose # Detailed system info
specifyx --version # Version info
python --version # Python version
uv --version # UV version (if used)
Log Files
Check ~/.cache/specifyx/logs/
for detailed error logs.
Support
- GitHub Issues for bugs
- Check Documentation for guides
- Include diagnostic output when reporting issues