Troubleshooting and known limits
Identify the failing stage before changing configuration or contracts. Preserve the exact command, cwd, project file, veradic --version output, output and status. A diagnostic code is a more reliable starting point than an abbreviated message.
Installation and tools
| Symptom | Investigation and repair |
|---|---|
| veradic cannot be found | Inspect PATH or use absolute installed path; Stack build and installed prefixes differ |
| Dynamic library cannot load | Keep bin/veradic with its lib/verada bundle; inspect external LLVM and macOS run paths; rebuilding one file alone may not repair a moved bundle |
| GHC not found/private extra-path | Use the documented local Stack config and matching compiler; source repository config is maintainer-specific |
| LLVM binding will not build | Ensure llvm-config is LLVM21 and the matching headers/libraries are installed; keep vendored binding/config consistent |
| B7007 solver unavailable | Check the server/shell's PATH or use --z3 with a real executable; optional fallbacks do not replace startup Z3 |
| B7008 link/C failure | Verify selected cc, project-relative c-sources, C syntax/symbol names, ABI and platform dependencies |
| Debug executable exists but build reports failure | Inspect dsymutil result and retain matching object/debug artifacts; use explicit new output paths |
A successful --help does not show that proofs and builds work: follow the installation smoke test.
Project and proof
| Symptom | Investigation and repair |
|---|---|
| Nothing to check / B7006 | Supply files or correct current-directory/explicit project and nonrecursive source-dirs |
| B1003 missing unit | Check unit/file convention, parent/spec/body requirements and search directories |
| Duplicate/mismatched unit | Separate originals and translations; do not include multiple definitions for one unit |
| check passes, prove fails | Types/flow passed; repair the reported contract/runtime obligation or weak invariant |
| Unknown/B5115 | Read notes, specification and loops, then select justified budget; not a confirmed failing execution |
| Unsatisfiable precondition warning | Review caller responsibility and vacuity; proof success behind an impossible premise is not useful application evidence |
| Advisory does not bypass an error | It changes proof outcomes, not legality/flow/ownership rules |
| Cached result surprises after tool/header changes | Isolate the XDG cache and use --no-cache; remove project objects as needed; certificates are separate |
B8012 after run |
run in a project used the proofs the cache holds and kept the rest at run time; run veradic prove, let the editor prove, or give --proof full |
A precondition suggested by the compiler may exclude the failing inputs by changing the API. Check that the requirements permit excluding them before applying the fix. A proof against an incorrect imported contract cannot protect against the foreign implementation.
Runtime, REPL and editor
Native/JIT storage, task/file-table and secondary-stack limits are real; see platform limits. A program that appears hung after main may be waiting for library tasks. JIT foreign-fault recovery is not rollback or a security boundary. Use native debugging for an OS signal.
A failed REPL write can leave an object undefined; recreate the state with :drop or :reset. The REPL's exit status does not summarize the proof errors of its inputs. Vibe files are left as written by veradic format; use a Python formatter.
In an editor, missing-unit errors usually mean the file is outside its project's source directories. Edits are checked as you type; a clean check is proved a second later (or on save, with proof.trigger set to save). If navigation is missing, first fix the blocking syntax error. See diagnosing editor problems.
JSON consumers must select supported output combinations; build/run/file tools can append text to the diagnostic array, and an invalid command line (B7003) is reported in human form. The stream table and schema define the machine interface.
Useful reports
For a new issue, provide a minimal complete project, C/support files if needed, exact command and cwd, veradic --version output, mode/budget/environment, fresh-cache comparison, expected and actual result, and full diagnostic code/output. Never include secrets from application data. Report B9001 as an internal compiler/JIT problem with that reproducer.