-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
tree-sitter needs a C++ compiler to compile native parser modules.
Solution:
-
Linux:
sudo apt install build-essential -
macOS:
xcode-select --install - Windows: Install "Desktop development with C++" via the Visual Studio Installer
After installing the toolchain, reinstall:
npm uninstall -g codebase-vis
npm install -g codebase-visSolution: Use one of:
# Option 1: Use npx instead
npx codebase-vis <command>
# Option 2: Fix npm permissions
sudo npm install -g codebase-vis
# Option 3: Use a version manager (recommended)
nvm install 20 && nvm use 20
npm install -g codebase-visError: listen EADDRINUSE :::3000
Solution: Use a different port:
codebase-vis serve --port 4000Error: graph.json not found in codebase-out/
Solution: Run codebase-vis generate first to create the graph data.
Generated: 0 files
Solution:
- Check your
.agentignorefile — you might be excluding the target directory - Run with
--verboseto see which files are being processed - Verify your project has files with supported extensions (
.js,.ts,.py,.cpp,.html,.css,.rs,.go,.java) - Check if files are larger than 2 MB (they're skipped automatically)
The graph loads but appears empty.
Solutions:
- Zoom out — the nodes might be clustered
- Check the community legend — some communities might be toggled off
- Check if dependencies/entities filters are hiding everything
- Run
codebase-vis query <any-file>to verify the graph has data
No path found between source and target
Solution: The two files have no dependency relationship. Try different files, or use query to see each file's connections.
Error: 401 Unauthorized
Solution: Your Groq API key is missing or invalid.
- Run
codebase-vis explain --resetto re-enter your key - Or set
GROQ_API_KEYenvironment variable
Error: 429 Too Many Requests
Solution: You're hitting rate limits.
- Lower
--rpm(default 30) - Lower
--concurrency(default 2) - Run
codebase-vis explain --retryto retry only failed clusters
Check the browser console (F12) for errors.
Solutions:
- Make sure
graph.jsonis in the same directory asgraph.html - If opening directly (not via
serve), some browsers blockfetch()fromfile://protocol — usecodebase-vis serveinstead - Clear browser cache and reload
The ForceAtlas2 physics take a few seconds to settle. If it's still messy:
Solutions:
- Let the physics simulation run longer (it stabilizes over time)
- Drag nodes to manually adjust
- Zoom in/out to find a good viewing level
Solution: Delete .cache.json in codebase-out/ and re-run generate. The cache will be rebuilt from scratch.
Solution: Delete codebase-out/.cache.json and re-run generate. A fresh cache will be created.
codebase-vis clean # Deletes codebase-out/Then re-run codebase-vis generate.
codebase-vis --versionOpen an issue at github.com/Arham-Qureshi/codebase-vis/issues.