CppDepend AI
Troubleshooting
First, run the command again with --verbose: it explains what it is doing.
| What you see | What to do |
|---|---|
| "CppDepend not found" (exit code 3) | Run cppdepend-ai from the CppDepend folder, where it is found automatically: do not move or copy the program. If you really must run it from elsewhere, add --cppdepend-dir "<your CppDepend folder>" to the command |
| "Project not found" (exit code 2) | Add --project MyApp.cdproj, or run the command from the folder of your project (or below it) |
analyze --run complains about the license |
Your CppDepend license must allow running analyses on this machine and for this user |
analyze shows old results |
Without --run it only re-reads the latest analysis. Build your code, then add --run |
status says "stale" right after you edited a file |
Normal: the results describe the code at the time of the analysis. Run analyze --run again |
diff is empty, or says there is no baseline |
Define a baseline in your CppDepend project. Until then use maxTotalIssues in the quality gate |
query says the query does not compile |
The message lists the errors. Try the query in CppDepend first |
query times out |
Add --timeout 120, narrow the query, or limit the rows |
| Hotspots show no change history | git is not installed or not in your PATH, the clone is shallow (CI: use the full history), or there is no recent commit |
| "Globalization-invariant mode" error | A setting of your environment forces it: remove the DOTNET_SYSTEM_GLOBALIZATION_INVARIANT environment variable. On Linux or in a container, install the ICU library (libicu) |
The assistant says cppdepend-ai is not found |
The CppDepend folder is not in your PATH. Run init again with the full path to the program: "C:\CppDepend\cppdepend-ai.exe" init |
The assistant ignores the results
- Did you run
cppdepend-ai initin this repository? DoesAGENTS.mdmention CppDepend? - Does your assistant read
AGENTS.md? Claude Code needsCLAUDE.md(created byinit), Gemini CLI needs a setting: see your assistant's page. - Are there results? Run
cppdepend-ai status. - Ask once explicitly: "Read cppdependai/summary.json and tell me the worst issues." If that works but the assistant never does it by itself, it is not loading
AGENTS.md(point 2). - Is your assistant allowed to run
cppdepend-ai? Check for a declined approval prompt or a sandbox that blocks programs.
Asking for help
Send us the output of cppdepend-ai --version, the command you ran, the error message (run it with --verbose), and the file manifest.json from the cppdependai folder.
Good practice
- The results contain names from your code. Your assistant must treat them as information, never as instructions.
- Do not commit the
cppdependaifolder. Do commitAGENTS.mdandcppdepend-ai.gate.json, and review changes to them like code: they steer your assistant.
