Troubleshooting
Common issues and how to resolve them.
KB didn't generate / stuck scanning
If the knowledge base isn't generating or appears stuck:
Check the output panel:
Common causes:
Try a force reindex:
Run "Aspect Code: Force Reindex (Clear Cache)" from the Command Palette to clear cached analysis and start fresh.
No files appear / empty KB
If no files appear in the dependency graph or the KB is empty:
Check file types:
Aspect Code currently analyzes: TypeScript (.ts, .tsx), JavaScript (.js, .jsx), Python (.py), Java (.java), and C# (.cs).
Check workspace root:
The extension analyzes files from the workspace root. If your code is in a subdirectory, open that folder directly in VS Code.
Check .gitignore:
Files matching patterns in .gitignore may be excluded from analysis. Check if your source files are accidentally ignored.
Check for errors:
Run "Aspect Code: Copy Debug Info" and check the output for any error messages.
Monorepo detection issues
For large monorepos:
Scope to specific directories:
Performance tips:
Multiple workspaces:
If you have a VS Code multi-root workspace, Aspect Code analyzes each workspace root separately.
How to fully remove Aspect Code
To completely remove Aspect Code:
1. Uninstall the extension:
2. Remove generated files (optional):
Delete any generated files you don't want to keep:
# Remove KB folder
rm -rf .aspect/
# Remove assistant instruction files (if generated)
rm -f CLAUDE.md
rm -f AGENTS.md
rm -rf .cursor/rules/aspectcode.mdc
# For copilot-instructions.md, you may want to edit rather than delete
# if you have other content in that file3. Clean up .gitignore (optional):
Remove any Aspect Code entries from your .gitignore if they were added.
Where logs are / how to report a bug
View logs:
aspectcode.devLogs in settingsCopy debug info:
Run "Aspect Code: Copy Debug Info" to copy diagnostic information including:
Report a bug:
- What you expected to happen
- What actually happened
- Steps to reproduce
- Debug info (without any sensitive data)
Contact directly:
Email asa@aspectcode.com for support.
Instruction files not updating
If instruction files aren't updating after regeneration:
Check configured assistants:
Run "Aspect Code: Configure AI Assistants" to ensure your assistants are selected.
Check instruction mode:
Make sure the instruction mode isn't set to "Off". Check the panel or run "Aspect Code: Enable Safe Mode".
Manual regeneration:
Click the refresh button in the panel or run "Aspect Code: Generate Instruction Files" from the Command Palette.
Check file permissions:
Ensure VS Code has write permission to the generated file locations.