Code Review Issues
Issue: "Failed to parse review result"
Cause: LLM didn't return valid JSON
Solution:
Use verbose mode to see raw response:
bashgcop-rs -v review changesCheck your custom prompt (if using one):
- Ensure it explicitly requests JSON format
- Provide exact JSON schema example
Try different model:
bash# Some models handle JSON better gcop-rs --provider openai review changesAdjust temperature:
tomltemperature = 0.1 # Lower = more consistent output
Git Issues
Issue: "No staged changes found"
Cause: Nothing added to git staging area
Solution:
bash
# Stage your changes first
git add <files>
# Or stage all changes
git add .
# Then run gcop
gcop-rs commitIssue: "Not a git repository"
Cause: Current directory is not a git repo
Solution:
bash
# Initialize git repository
git init
# Or run gcop from within a git repository
cd /path/to/your/git/repo