Analysis
Analysis Issues
Section titled “Analysis Issues”No Files Found / Empty Graph
Section titled “No Files Found / Empty Graph”Symptoms: “0 files analyzed”, empty import graph, no metrics computed.
Causes & solutions:
-
Wrong directory:
Terminal window pwdarxo analyze --path /path/to/project -
Excluded by patterns — Check
.arxo.yaml; avoidexclude: ["**/*"]. Usedata.import_graph.excludeand fix overly broad exclusions. -
Unsupported file types — Arxo parses
.ts,.tsx,.js,.jsx,.mjs, and.py. Ensure you have source files in these languages. -
node_modules — Exclude in config:
data:import_graph:exclude: ["**/node_modules/**"]
Analysis Too Slow
Section titled “Analysis Too Slow”Symptoms: Analysis takes >5 minutes on small projects.
Solutions:
-
Exclude test/build directories:
data:import_graph:exclude: ["**/test/**", "**/tests/**", "**/dist/**", "**/build/**"] -
Use caching — First run is slow; subsequent runs use cache. Ensure cache is not disabled.
-
Clear corrupted cache:
Terminal window arxo cache clear
High Memory Usage
Section titled “High Memory Usage”Symptoms: Process killed, OOM errors.
Solutions:
- Exclude large dependencies (e.g.
node_modules,vendor). - Analyze in parts:
arxo analyze --path ./frontendandarxo analyze --path ./backend.
Parsing Errors
Section titled “Parsing Errors”Error: “Failed to parse file: src/example.ts”
Causes & solutions:
- Invalid syntax — Fix with native tools:
tsc --noEmit,python -m py_compile file.py,cargo check. - Unsupported syntax — Exclude problematic files in config.
- Encoding — Ensure files are UTF-8:
file -I src/example.ts.
Next steps
Section titled “Next steps”- Troubleshooting — Overview
- Policy & Config — Violations and config